Re: what happens when bash_history reaches its limit?



John Thompson <john@xxxxxxxxxxxxxxxxxxxxx> writes:

On 2006-10-18, notbob <notbob@xxxxxxxxxxx> wrote:

Nope. Like one poster said, FIFO. Why do you want to know? A
security concern? Many consider .bash_history a security liability.
One alternative is zsh, which purges history after each session.
Another alternative is to create a chron job to do the same thing for
bash.

Or just put "history -c" in your ~/.bash_logout script.

Or just "unset HISTFILE" in your .bashrc; from 'man bash':

-> HISTFILE
-> The name of the file in which command history is saved (see HIS-
-> TORY below). The default value is ~/.bash_history. If unset,
-> the command history is not saved when an interactive shell
-> exits.

--
Maurizio Loreti http://www.pd.infn.it/~loreti/mlo.html
Dept. of Physics, Univ. of Padova, Italy ROT13: ybergv@xxxxxxxxxx
.



Relevant Pages