Bronze 1288813801 learn To keep all your shell history even when running multiple shells add two lines to your .bashrc; shopt -s histappend and PROMPT_COMMAND="history -a;$PROMPT_COMMAND" You may also want to increase the value of HISTSIZE. Bronze 1288813842 forget Bronze 1288813871 learn To keep all your shell history when running multiple shells: add two lines to your .bashrc; shopt -s histappend and PROMPT_COMMAND="history -a;$PROMPT_COMMAND" You may also want to increase the value of HISTSIZE. llua 1492017701 forget llua 1492017806 learn To keep all your shell history when running multiple shells: add two lines to your .bashrc; shopt -s histappend and PROMPT_COMMAND="history -a;$PROMPT_COMMAND" You may also want to increase the value of HISTSIZE and change HISTFILE. llua 1492017993 forget llua 1492018169 learn http://mywiki.wooledge.org/BashFAQ/088 -- How can I avoid losing any history lines?