//View Tip #179
Similar Tips
» Change extension of files in the current directory
» Permanent bash history
» Vi mode in bash
» Remove empty directories
» Find occurrences of a string in a large code base without firing

 

Latest tips by RSS
Click here to subscribe
Follow Shell-Fu on Twitter
Click here to follow
Follow Shell-Fu on identi.ca
Click here to follow
Disable history for a particular account in bash with:

(in home dir)

rm .bash_history

ln -sf /dev/null .bash_history


View Comments »



Comments 

Add your comment

CAPTCHA

No HTML allowed. URLs will be linked with nofollow attribute. Whitespace is preserved.

this is idiotic, use the shell variables that are meant to control how history works.

man bash
Posted 2009-02-11 04:38:11
Steve
-1

Use "unset HISTFILE" in your .bashrc instead.
Posted 2009-02-21 20:53:20

Home Latest Browse Top 25 Random Hall Of Fame Contact Submit