LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 05-08-2007, 07:56 AM   #1
gawain
Member
 
Registered: Dec 2006
Location: Italy -Rome
Distribution: Slackware 11.0
Posts: 55

Rep: Reputation: 15
empty out the history


Hi.

I'd like to empty out the history of the bash. Any idea how I can do, or which is the file where the history is stored?

Thanks
 
Old 05-08-2007, 08:03 AM   #2
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
.bash_history is what you're looking for and it's in your home directory.
 
Old 05-08-2007, 08:34 AM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
man history
 
Old 05-09-2007, 01:50 AM   #4
gawain
Member
 
Registered: Dec 2006
Location: Italy -Rome
Distribution: Slackware 11.0
Posts: 55

Original Poster
Rep: Reputation: 15
Thanks.
Now I know wht I couldn't see it.
Quote:
history -c
empties it out
 
  


Reply



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
history junaid18183 Linux - General 14 11-07-2009 07:01 AM
Download history and copy history? inverted.gravity Linux - Newbie 1 02-21-2006 12:31 PM
history saipraveen Linux - Newbie 5 06-10-2005 07:04 PM
Gentoo VNC, empty dialog box !! "Question" window is empty ! TheHushedCaskeT Linux - Software 0 02-01-2005 10:14 PM
How to find back "history" database after "history -c" ? san_lss Linux - Newbie 1 01-07-2004 11:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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