How To Clear Linux History File Easily?

RSS
EMAIL
FACEBOOK
FACEBOOK
GOOGLE
GOOGLE
https://www.poftut.com/clear-linux-history-file-easily/
PINTEREST
PINTEREST
INSTAGRAM

Linux history file is the name suggest the history of the linux system. The commands run on shell is stored in to th history file. History file is generally located at users home directory with name .bash_history

Print History File

We will print our current user history file. Our current user is root by the way.

As we see there is history command

Remove History File With rm

We can directly remove history file like below with rm command.

Clear History File with history command

We can remove history with history command parameters. This will clear history list

RSS
EMAIL
FACEBOOK
FACEBOOK
GOOGLE
GOOGLE
https://www.poftut.com/clear-linux-history-file-easily/
PINTEREST
PINTEREST
INSTAGRAM

LEARN MORE  How To Generate Self Signed Certificates

You may also like...

Leave a Reply

Your email address will not be published.

Enjoy this blog? Please spread the word :)