On Sat, 13 Sep 2003 10:54:19 -0700
Mark Knecht <[EMAIL PROTECTED]> wrote:

> On Sat, 2003-09-13 at 09:05, Mikhail P. wrote:
> > In bash it is variable $HISTSIZE
> > 
> > e.g. "export HISTSIZE=150"
> > will limit it to 150 lines.
> > 
>    Yes, thanks. I had seen the HISTSIZE & HISTFILESIZE valiables in the
> sert command, but I was wondering where those are set for root in a
> default installation of Gentoo. Are they built in at that size and have
> to be overridden? Or are they in some default configuration file
> somewhere else on the system.
> 

man bash tells me that the default bash history size is 500 lines, and a set | grep 
HISTSIZE tells me 500, so I assume that the default is unmodified in the bash ebuild 
(if it can be).  

Note that places to look for default shell configuration includes /etc/skel/ (stuff 
that gets copied when a new user is added) and /etc/profile (typically system wide 
shell config stuff).  If you want to change HISTSIZE or other bash variables for 
everyone, change /etc/profile.  If you want only to change it for root, change root's 
.bashrc or .bash_profile.

Cheers,
Anthony.

--
[EMAIL PROTECTED] mailing list

Reply via email to