Oct 162009
 

‘spacebar’ command
This is sample output – yours may be different.

$ echo this goes to history
this goes to history

$ echo this wont go to history
this wont go to history

$ history
1 echo this goes to history
2 history

Prepending one or more spaces to your command won’t be saved in history.
Useful for passwords on the commandline.
Tested on BASH.

 Posted by at 12:37 pm

 Leave a Reply