Mailinglist Archive: opensuse (3261 mails)
| < Previous | Next > |
Re: [SLE] How to set the history length in bash?
- From: "Alan Lenton" <alan@xxxxxxxxxxx>
- Date: Mon, 2 Apr 2001 06:45:42 +0100
- Message-id: <005b01c0bb38$3c050ae0$070210ac@xxxxxxxxxxxxxxxxxxx>
The variable you want is called HISTSIZE. It's default is 500 commands -
probably a bit excessive for most people :)
You can get details of a single variable with the command
echo "$variable-name"
for example on my machine
fogg $ echo "$HISTSIZE"
500
fogg $
You can get a list of variables and their values by just typing 'set'. On my
machine ther are over 80 of them, so I'd advise using
set | less
Alan
----- Original Message -----
From: "Jonathan Wilson" <wilson@xxxxxxxxxxx>
To: <suse-linux-e@xxxxxxxxxxxx>
Sent: Monday, April 02, 2001 12:57 AM
Subject: [SLE] How to set the history length in bash?
| Anyone know how to increase bash's history length? I've done it before, I
think it's a variable, but I can't figure it out today.
|
| Also, how do you show all of your shell variables? I know it can be done but
I forget the command.
|
| ----------------------------------------------------
| Jonathan Wilson
| System Administrator
[...]
probably a bit excessive for most people :)
You can get details of a single variable with the command
echo "$variable-name"
for example on my machine
fogg $ echo "$HISTSIZE"
500
fogg $
You can get a list of variables and their values by just typing 'set'. On my
machine ther are over 80 of them, so I'd advise using
set | less
Alan
----- Original Message -----
From: "Jonathan Wilson" <wilson@xxxxxxxxxxx>
To: <suse-linux-e@xxxxxxxxxxxx>
Sent: Monday, April 02, 2001 12:57 AM
Subject: [SLE] How to set the history length in bash?
| Anyone know how to increase bash's history length? I've done it before, I
think it's a variable, but I can't figure it out today.
|
| Also, how do you show all of your shell variables? I know it can be done but
I forget the command.
|
| ----------------------------------------------------
| Jonathan Wilson
| System Administrator
[...]
| < Previous | Next > |