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.
|
feedback
|
|
What are the permissions on ~/.bash_history? Can your user modify it? Alternatively, are you exiting out of the previous window first? | |||
|
feedback
|
|
I'm assuming you're using Bash. Try this command at Bash prompt:
If it says:
then add this line in your
| |||||||
feedback
|
;' bash: PROMPT_COMMAND: line 0:; history -a; history -n' – xain May 1 '10 at 20:57