Clear Bash command history in Fedora, CentOS, Redhat

FREQUENTLY ASKED QUESTIONS (Linux)
Q. How to delete/clear bash command line history in Redhat, Fedora,CentOS ?

If you do not want to keep a history of of all your previously entered commands in linux? The below Commands will clear your entire bash command history in your machine.
[root@server ~]# history -c

or

[root@server ~]# rm -rf ~/.bash_history

Was this helpfull ?

0 comments:

Related Posts Plugin for WordPress, Blogger...

 
Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | Bluehost Coupons