Y
Hacker News
new
|
ask
|
show
|
jobs
by
rammark
4767 days ago
If you put 'histcontrol=ignorespace' or 'histcontrol=ignoredups' in your ~/.bashrc file it will not record commands that begin with a space [1]. I believe that 'ignoreboth' is the default on many Linux distros.
[1]:
http://www.linuxjournal.com/content/using-bash-history-more-...
1 comments
joosters
4767 days ago
You still shouldn't enter these kinds of commands on a multi-user machine, because anyone running 'ps' will see the commandline arguments.
link