|
My Understanding
As I understand it, history -c clears the history from the shell environment. It does not clear the .bash_history file. It probably clears the environment variable and then re-reads the .bash_history file as the last step.
Use history -w to overwrite the .bash_history file with the current environment. You can also use history -cw to clear the shell history and then overwrite the .bash_history file.
;
|