LinuxQuestions.org
Visit the LQ Articles and Editorials section
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-21-2006, 02:50 AM   #1
syssyphus
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 01:43 AM.
 
Old 01-21-2006, 03:02 AM   #2
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,160

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

Rep: Reputation: 30
try type to retrive the history

Quote:
!n
 
Old 01-21-2006, 03:40 AM   #4
syssyphus
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 01:44 AM.
 
Old 01-21-2006, 04:01 AM   #5
carl0ski
Member
 
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 08:13 PM.
 
  


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


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

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration