Comments on How to Clear Bash History on Linux
If you’ve ever used the command line on a Linux machine, chances are you’ve got a long history of commands logged. If you want to clear this history, there are a few simple steps that can help you do just that.
1 Comment(s)
Add comment
Comments
By: Pete
Don't forget that placing a space prior to any command will avoid adding it into the history at all.
It might be a good idea to require at least 5 characters in a command to be added as well. Nobody needs 50 'ls' or 'mv' commands saved, right? man bash has all the details.