Linux Articles

How To Clear Commands History From Terminal In Linux

                                  How To Clear Commands History  From Terminal In Linux

In Linux based operating systems like Ubuntu and centos,Fedora most of users execute commands from Terminal.Similarly in Mac machine also there is option to execute commands from the terminal.In some cases this commands storage trouble to users when someone log and check the previous history.

Other users can easily track the previous commands from the terminal using history command.

How To Clear Commands History  From Terminal In Linux

Here is the simple step to avoid this kind of recorded commands.Simple enter the below commands that will erase the previous history.

                                                        history -c

How To Clear Commands History  From Terminal In Linux01

All the history is generally stored in ~/.bash_history file but using this commands entries will erase.

Tags:History,Linux History,Commands History,History save,Tmp,Temp files,Cache files

About the author

admin

Add Comment

Click here to post a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.