I have been playing too many puzzle games lately. This trivia question just popped into my head:
What command will never appear in a .bash_history file?
Unfortunately, I seem to have disproven the answer I originally had. I wonder if there are others? My original answer was going to be “unset HISTFILE”, but I can make it show up in my .bash_history file:
unset HISTFILE export HISTFILE=/home/kees/.bash_history
© 2008, Kees Cook. This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License.