Bash history is recorded in the ~/.bash_history
file. We can clear this file using the command > ~/.bash_history
However bash also holds a copy of history in memory. We can clear bash history completely by running the following command:
> ~/.bash_history && history -cw
Comments
Add comment
Double
15, Aug, 2016
Nice!