LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 01-14-2003, 09:32 PM   #1
Allen614
Member
 
Registered: Dec 2002
Location: Plains
Distribution: Slackware 13
Posts: 465

Rep: Reputation: 30
Terminal Command History?


How do you go about clearing your command history? (Cntrl-P and Cntrl-N)
 
Old 01-14-2003, 09:55 PM   #2
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86; Gentoo PPC; Gentoo Sparc64; FreeBSD; OS X; Solaris
Posts: 3,731
Blog Entries: 4

Rep: Reputation: 66
method 1: cat /dev/null > ~/.bash_history
method 2: rm ~/.bash_history && touch ~/.bash_history
 
Old 01-14-2003, 10:08 PM   #3
Allen614
Member
 
Registered: Dec 2002
Location: Plains
Distribution: Slackware 13
Posts: 465

Original Poster
Rep: Reputation: 30
Or just edit the .bash-history file and take out the trash. Thanks bud,my brain damage is setting in early tonight.
 
Old 01-14-2003, 11:35 PM   #4
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86; Gentoo PPC; Gentoo Sparc64; FreeBSD; OS X; Solaris
Posts: 3,731
Blog Entries: 4

Rep: Reputation: 66
Exactly, I just like to think up as many creative ways to do things as I can...
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Gnome terminal command history problem ssrini *BSD 1 07-26-2005 09:55 AM
History command amer_58 Linux - General 5 06-24-2005 12:26 PM
command line history begby Linux - Software 7 03-12-2005 01:58 AM
Command history? King4lex Linux - Newbie 4 09-03-2004 08:35 PM
terminal history logging alue Linux - General 4 03-15-2002 01:59 AM


All times are GMT -5. The time now is 10:24 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