In every open bash shell (you may have multiple terminals open):
history -c
history -w
Why:
As noted above, history -c empties the file ~/.bash_history.
It is important to note that bash shell does not immediately flush
history to the bash_history file. So, it is important to (1) flush the
history to the file, and (2) clear the history, in all terminals. That's what the commands above do.
Comments
Post a Comment