LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 06-10-2005, 12:56 PM   #1
saipraveen
Member
 
Registered: Jun 2005
Location: Hyderabad
Posts: 35

Rep: Reputation: 15
history


How can i clear the history of commands typed in the console
 
Old 06-10-2005, 01:04 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,396

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
to clear it, you would just delete ~/.bash_history, but to not use it in the first place, run somethign like "export HISTSIZE=0" or "export HISTFILE=/dev/null", normally by adding either command to your .bashrc file.
 
Old 06-10-2005, 01:04 PM   #3
securehack
Member
 
Registered: Sep 2003
Location: United States
Distribution: Slackware 10.1, Debian 3.0, WinXProSP1, Fedora Core 3
Posts: 425

Rep: Reputation: 30
Look in .bash_history, usually in /. Open it up and delete the inards of the file.

Or type in history -c

--Abid Kazmi
 
Old 06-10-2005, 01:05 PM   #4
securehack
Member
 
Registered: Sep 2003
Location: United States
Distribution: Slackware 10.1, Debian 3.0, WinXProSP1, Fedora Core 3
Posts: 425

Rep: Reputation: 30
Ahh moderator got there before me!! Ugh.. =P

--Abid Kazmi
 
Old 06-10-2005, 01:14 PM   #5
saipraveen
Member
 
Registered: Jun 2005
Location: Hyderabad
Posts: 35

Original Poster
Rep: Reputation: 15
Thanks
 
Old 06-10-2005, 07:04 PM   #6
securehack
Member
 
Registered: Sep 2003
Location: United States
Distribution: Slackware 10.1, Debian 3.0, WinXProSP1, Fedora Core 3
Posts: 425

Rep: Reputation: 30
Hahahaha. =P No problem.

--Abid Kazmi
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
history junaid18183 Linux - General 14 11-07-2009 07:01 AM
about history jackandking Programming 1 12-18-2004 02:10 PM
How to find back "history" database after "history -c" ? san_lss Linux - Newbie 1 01-07-2004 11:53 AM
History file juno Linux - General 1 01-07-2003 01:26 AM
History neohybrid1 Linux - General 1 12-03-2002 04:53 AM


All times are GMT -5. The time now is 05:05 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration