I want to clear all before command from history of my server. I use history -c it seems all things are cleared but when I ssh to the server,all commands are still there.
How can I clear them permanently?
|
|
|
To clear the bash history completely on the server. You can open terminal and type Other alternative way is to link On my Ubuntu 12.10 box, The history comes back when I login back. I guess because the history entries has a copy in the memory and it will flush back to the file when you log out. The following command worked for me.
|
|||||||||||
|
|
Another way to do this is deleting the |
|||
|
|
|
There's another much simpler one: running |
||||
|
|
|
What to do: In every open bash shell (you may have multiple terminals open):
Why:
As noted above, |
|||
|
|