How to delete your commands history in UNIX

Each time when you enter a command on UNIX command line prompt, corresponding its history entry is created. There is a command to delete history from your UNIX account to boost systems privacy.

Following command will flash out all the history entries from UNIX account.

  • First log into your UNIX system using your username and password. 

To display all the previous entries which were created earlier, type “history” and press “Enter.”

Now type “history -c” and press “Enter.”  All history of previous commands will flush out.

Using this command you can delete all commands history in UNIX / LINUX operating system.

Remove History from linux

Basic UNIX/LINUX Commands

How to Add and Delete User, Get Memory Information and Partition Information

 You can get more information about history command, by typing “man history” at command prompt.

Leave a Comment

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

Scroll to Top
Scroll to Top