How to make certain command not to show up with “history”?

How to make certain command not to show up with “history”?

Sometime you need to hide some command from history so that noone knows what you have done to the system. Here is simple tips to do so.

$(space)rm testfile 

Just use one space before any command it won’t showup while checking “history” command.
Check yourself if it works or not.
Enjoy Linux.

 

 

Leave a Reply

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