‘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.
Was this post helpful?
Let us know if you liked the post. That’s the only way we can improve.