xain Asked: 2010-05-02 07:07:11 +0800 CST2010-05-02 07:07:11 +0800 CST 2010-05-02 07:07:11 +0800 CST History in linux terminal 772 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? linux terminal 2 Answers Voted Dennis Williamson 2010-05-02T07:56:13+08:002010-05-02T07:56:13+08:00 I'm assuming you're using Bash. Try this command at Bash prompt: shopt -p histappend If it says: shopt -u histappend then add this line in your ~/.bashrc: shopt -s histappend Best Answer Kevin M 2010-05-02T08:41:02+08:002010-05-02T08:41:02+08:00 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
~/.bashrc
:What are the permissions on ~/.bash_history? Can your user modify it?
Alternatively, are you exiting out of the previous window first?