[svlug] "History Eraser Button" in bash?

Marc Merlin marc_news at valinux.com
Sat May 6 20:27:51 PDT 2000

On mer, mai 03, 2000 at 06:25:56 -0400, Jeff Rose wrote:
> Brute force/"newbie" method:
> Delete/edit '/.bash_history '... then logout/login to clear the memory
> cache!

On mer, mai 03, 2000 at 04:04:12 -0700, kmself at ix.netcom.com wrote:
> After leaving your sign on the cracked box:
>    $ cat /dev/null > ~/.bash_history

(which you can simply write as 
> ~/.bash_history

However, this doesn't work, the shell will save your history after it exits.

hence the:
exec vi .bash_history

Microsoft is to software what McDonalds is to gourmet cooking
Home page: http://marc.merlins.org/ (friendly to non IE browsers)
Finger marc_f at merlins.org for PGP key and other contact information

More information about the svlug mailing list