View the Most Wanted LQ Wiki articles.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 12-18-2004, 03:34 AM   #1
Registered: Dec 2004
Posts: 92

Rep: Reputation: 15
about history

if I up two bash at the same time,
only one of the command history will be recorded
(actually ,I think it's the last-closed one)
how could I remain all the bash's history?
Old 12-18-2004, 02:10 PM   #2
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,042
Blog Entries: 11

Rep: Reputation: 907Reputation: 907Reputation: 907Reputation: 907Reputation: 907Reputation: 907Reputation: 907Reputation: 907
By re-writing bash to save the history after each command
and appending it, rather than reading the lot and writing it
on exit/logout.

You could have a play with the histappend shopt, I've
never used it myself, and I'm not sure what it does :)


Last edited by Tinkster; 12-18-2004 at 02:14 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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
history junaid18183 Linux - General 14 11-07-2009 07:01 AM
history saipraveen Linux - Newbie 5 06-10-2005 07:04 PM
How to find back "history" database after "history -c" ? san_lss Linux - Newbie 1 01-07-2004 11:53 AM
History file juno Linux - General 1 01-07-2003 01:26 AM
History neohybrid1 Linux - General 1 12-03-2002 04:53 AM

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