I'm trying to clear the history of commands that have been run on Terminal, I found an article which said I can do it with rm ~/.bash_history
However, I am still able to see the previous commands that I've ran by pressing the up arrow
bashcommand lineterminal
I'm trying to clear the history of commands that have been run on Terminal, I found an article which said I can do it with rm ~/.bash_history
However, I am still able to see the previous commands that I've ran by pressing the up arrow
Best Answer
The correct command is
history -c
, as shown in the picture below.