LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   *BSD (https://www.linuxquestions.org/questions/%2Absd-17/)
-   -   how to save bash history between reboots? (https://www.linuxquestions.org/questions/%2Absd-17/how-to-save-bash-history-between-reboots-519913/)

Kropotkin 01-16-2007 03:03 PM

how to save bash history between reboots?
 
Hi all,

How does one preserve the bash history between reboots? This seems on by default under Linux but not the case under FreeBSD. I added "HISTSIZE=500" to .bash_profile, but that doesn't appear to be enough.

Thanks.

FnordPerfect 01-16-2007 03:28 PM

IIRC, you have to set a filename in HISTFILE. if this variable is not set at all, history is not saved upon logout.

I bet, there are also some other ways to achieve this..


All times are GMT -5. The time now is 10:30 PM.