LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 07-12-2006, 03:22 AM   #1
Hitboxx
Senior Member
 
Registered: Mar 2006
Location: India
Distribution: Fedora
Posts: 1,562
Blog Entries: 3

Rep: Reputation: 68
Clear previous commands in Terminal


Hi mates,

A primitive query but how to clear the previous commands in terminal which is accessed by using up/down arrow keys?

Thanks
 
Old 07-12-2006, 03:30 AM   #2
spooon
Senior Member
 
Registered: Aug 2005
Posts: 1,755

Rep: Reputation: 51
exit the shell and open another one, and then edit the ~/.bash_history file
 
Old 07-12-2006, 03:37 AM   #3
Hitboxx
Senior Member
 
Registered: Mar 2006
Location: India
Distribution: Fedora
Posts: 1,562

Original Poster
Blog Entries: 3

Rep: Reputation: 68
Thanks mate. Another invaluable tip. But is there some way to automate that process instead of editing everytime?
 
Old 07-12-2006, 04:03 AM   #4
spooon
Senior Member
 
Registered: Aug 2005
Posts: 1,755

Rep: Reputation: 51
Code:
history -c
will clear the entire history i think

and i think putting something like
Code:
unset HISTFILE
in your .bashrc will not keep a history altogether
 
1 members found this post helpful.
Old 07-12-2006, 07:20 AM   #5
Hitboxx
Senior Member
 
Registered: Mar 2006
Location: India
Distribution: Fedora
Posts: 1,562

Original Poster
Blog Entries: 3

Rep: Reputation: 68
Wow thanks again man
 
1 members found this post helpful.
  


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
making a script that opens terminal and enter commands into that terminal Cinematography Linux - General 8 12-16-2008 10:34 AM
In a terminal window, How do you 'backup" to a previous file? sleekmason Linux - Software 4 05-06-2006 11:28 AM
going through previous bash commands corrupts console text? juanbobo Linux - Software 1 08-30-2005 10:24 AM
How to clear cached commands Kedelfor Linux - Newbie 1 01-20-2004 03:35 PM
Can ash recall previous commands? Scerj Linux - General 0 06-06-2001 02:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration