How to Clear bash / SSH / Terminal command history in Linux

All Linux command ssh terminal

You might need to wipe off the command history that you’ve executed in your linux system for various reason. Normally when logged into the bash / SSH terminal – if the Up Arrow key is pressed – previously executed commands are shown. To completely delete the history type the following command:

# history -c
# history -w

 

Leave a Reply

Your email address will not be published. Required fields are marked *