To clear history Bash in Linux

If you want to clear the history of commands executed on our server, we can do this in a very fast way.
The following command will remove the story so that bash.

What do these commands?

Komenda 'cat’ empties file .bash_history currently logged in user.
Command “history -c” clean the history for the current user session.
Command “exit” the current session ends.

How useful this post was?

Click on the star, to evaluate it!

Average grade / 5. number of votes:

So far, no votes! Be the first to rate this post.