4 ms·
If you also find little or no use for .bash_history, you can do this: rm ~/.bash_history ln -s ~/.bash_history /dev/null (There's probably some .bashrc se
by DaveInTucson 14y ago
If you also find little or no use for .bash_history, you can do this:
rm ~/.bash_history
ln -s ~/.bash_history /dev/null
(There's probably some .bashrc setting that turns off history, but I'm making it a goal in my life to know as little about bash configuration as I possibly can.)
- niggler 14y ago$ unset HISTFILE The manpage for bash has many hidden gems
- IgorPartola 14y agoOne other cool thing: if your command starts with a space, it will not be logged to bash_history. For example: $ echo 'this is logged' $ echo 'this is not logged'