Hack Forums
( Tutorial ) How to delete Terminal History + PICS (Linux) - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Computing (https://hackforums.net/forumdisplay.php?fid=88)
+---- Forum: Linux (https://hackforums.net/forumdisplay.php?fid=85)
+---- Thread: ( Tutorial ) How to delete Terminal History + PICS (Linux) (/showthread.php?tid=1515821)



( Tutorial ) How to delete Terminal History + PICS (Linux) - Anonymous.7654 - Jul 23, 2011

[img]http://www.veryicon.com/icon/256/System/Chakram%202/Terminal.png[/img]


Tutorial how to Delete Terminal History / Author Anonymous.7654


Why i created this Tutorial?


Most peoples who using Linux know this method,but i want help Linux Begginers,so i want create Little Tutorial about this.


So how to delete Terminal history?


Part I


First open Terminal.Now type "sudo gedit ~/.bash_history" you see many commads in TEXT Docoment,so detele all text and save,now you deleted Terminal History


Tutorial " Part I " Dont work? Read this


Part II


Come to your Home Folder,click "View" and click "Show Hidden Files"


[Image: UShky.png]


Next


[Image: UDeD9.png]


Now find file " .bash_history " And Open with Text Editor and delete all commands inside,and click save.Now you can close


[Image: IpGCF.png]


Now you deleted all Terminal History


[img]http://www.golocalmedia.com/wp-content/uploads/2010/12/button.png[/img]


Thanks for reading this Tutorial

Anonymous.7654




* - Eminent - Jul 23, 2011

Short, simple, and sweet. Nice guide; this is bound to help a couple members.


* - Amzo - Jul 23, 2011

Code
rm -rf ~/.bash_history

I just summed up your entire post


* - Anonymous.7654 - Jul 23, 2011

(Jul 23, 2011 11:38 AM)Eminent Wrote:  Short, simple, and sweet. Nice guide; this is bound to help a couple members.

Thanks for the replie Eminent.


* - nix-root - Jul 23, 2011

(Jul 23, 2011 11:39 AM)Amzo Wrote:  
Code
rm -rf ~/.bash_history

I just summed up your entire post

We could also do this for the lulz
PHP Code

<?php 
srm 
-vz ~/.bash_history 



* - Amzo - Jul 23, 2011

(Jul 23, 2011 11:53 AM)nix-root Wrote:  We could also do this for the lulz
PHP Code

<?php 
srm 
-vz ~/.bash_history 

Or we could recursively ../../../ to root with

PHP Code

<?php 
srm 
-rv ~/.*