View the Most Wanted LQ Wiki articles.
Go Back > Forums > Linux Forums > Linux - General
User Name
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.


  Search this Thread
Old 01-21-2006, 01:50 AM   #1
LQ Newbie
Registered: Aug 2005
Posts: 19

Rep: Reputation: 0
Where is the history stored (bash)?

I know that it is written to ~/.bash_history when you log out, but where is it stored before it is written there? some in-memory structure?

Last edited by syssyphus; 05-30-2007 at 12:43 AM.
Old 01-21-2006, 02:02 AM   #2
Senior Member
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,265

Rep: Reputation: 369Reputation: 369Reputation: 369Reputation: 369
I suspect it's just stored in process memory because I can't think of anywhere else.
Old 01-21-2006, 02:36 AM   #3
Registered: Aug 2003
Distribution: Slackware,Ubuntu
Posts: 389

Rep: Reputation: 30
try type to retrive the history

Old 01-21-2006, 02:40 AM   #4
LQ Newbie
Registered: Aug 2005
Posts: 19

Original Poster
Rep: Reputation: 0
Just in memory I guess, thanks anyway.

Last edited by syssyphus; 05-30-2007 at 12:44 AM.
Old 01-21-2006, 03:01 AM   #5
Registered: Sep 2004
Location: Melbourne, Victoria Australia
Distribution: Support those that support you :)
Posts: 872
Blog Entries: 12

Rep: Reputation: 30
cat !n

deletes my last 2 entries in my history

Last edited by carl0ski; 06-01-2007 at 07:13 PM.


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
Bash history file jinksys Linux - Software 2 07-30-2005 03:58 PM
NOT escaping bash history ivanatora Linux - General 3 06-07-2005 01:17 PM
history not working in bash subu_s AIX 2 12-29-2004 12:49 PM
bash history slowly Linux - General 2 11-12-2004 11:35 AM
Bash History ukndoit Linux - Security 2 10-16-2003 09:02 AM

All times are GMT -5. The time now is 07:35 PM.

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