LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   bash history limit (https://www.linuxquestions.org/questions/linux-newbie-8/bash-history-limit-775909/)

Latte 12-15-2009 06:14 PM

bash history limit
 
Can anyone tell me how to confirm the default limit of the history kept in .bash_history?

A Google search reveals people saying the default limit is 500 (lines? filesize in bytes?). e.g., http://www.ducea.com/2006/05/15/linu...-bash_history/

I know there is an option to set the size, using HISTSIZE in .bashrc as discussed on this site at http://www.linuxquestions.org/questi...istory-136137/ and others.

But how can I confirm the existing default without have to type command after command to see when the first command gets pushed out?

Thanks.

chrism01 12-15-2009 06:27 PM

echo $HISTSIZE

Latte 12-15-2009 06:42 PM

Quote:

Originally Posted by chrism01 (Post 3792898)
echo $HISTSIZE

Awesome, thanks. Can you tell me where that setting is stored at, too (not that I am ungrateful for your answer)?

chrism01 12-15-2009 07:46 PM

Basically, they are set in the usual login profile files eg /etc/profile http://www.linuxfromscratch.org/blfs...s/profile.html and you can override them at the user level in .bash_profile.


All times are GMT -5. The time now is 05:28 AM.