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 Cedar Creek Software http://www.cedarcreeksoftware.com Central Texas IT http://www.centraltexasit.com
On Sun, Apr 01, 2001 at 06:57:15PM -0500, Jonathan Wilson wrote:
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.
HISTSIZE=<some number> HISTFILESIZE=<some number>
Also, how do you show all of your shell variables? I know it can be done but I forget the command.
shopt -p will show some options, but I don't know how you would go about displaying all of the shell variables. - v -- Victor R. Cardona vcardona@home.com "Behold the keyboard of Kahless, the greatest Klingon code warrior that ever lived!"
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"
On Sun, 01 Apr 2001 18:57:15 -0500 wilson@claborn.net (Jonathan Wilson) wrote:
Also, how do you show all of your shell variables? I know it can be done but I forget the command.
env Geoff _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com
participants (4)
-
Alan Lenton
-
quintaq@yahoo.co.uk
-
Victor R. Cardona
-
wilson@claborn.net