I'm running Ubuntu 9.1 and every time I open a terminal window, I lose the previous command's history. How can I configure it so it's kept even after rebooting? Thanks.
Tell me more
×
Server Fault is a question and answer site for
professional system and network administrators. It's 100% free, no registration required.
|
What are the permissions on ~/.bash_history? Can your user modify it? Alternatively, are you exiting out of the previous window first? |
|||
|
|
|
I'm assuming you're using Bash. Try this command at Bash prompt:
If it says:
then add this line in your
|
|||||||
|
;' bash: PROMPT_COMMAND: line 0:; history -a; history -n' – xain May 1 '10 at 20:57