May 18, 2008

History on Linux terminal

Sometimes, i typed a sensitive entry on Linux terminal and would like to clear history at once

player@srv:~$ sensitive enty
player@srv:~$ history -c
player@srv:~$ clear

An alternative way not to log the entry is to add a preceding space character

player@srv:~$ [space character]sensitive entry

For future reference.

1 comment: