Re: How to clear the command history in Red Hat Linux 8



On 30 Mar 2006 01:28:43 -0800, "Pandi K" <k.pandi.k@xxxxxxxxx> wrote:

How to clear the command history in Red Hat Linux 8


if your shell is bash and has:

.bash_logout and .bash_history

How about this as the last entry in .bash_logout

echo "rm ${HOME}/.bash_history" | at now +10 seconds


If you decide to use this then please test it first as i will not be
held responible if it clobbers someone elses .bash_history. I don't
know if $HOME is set or not, or even if the rest of the command works.

Good rm-ing

--
Benway
.



Relevant Pages