I am working on a x86 target running fedora 9.
Whenever I reboot it, my history returns to some state, and I do not have commands I did in the sessions before the reboot.
What I have to change to have updated history I had before reboot?
feedback
|
This question came from our site for professional and enthusiast programmers.
|
Which history? bash-history? If you're losing bash history and you have multiple sessions at a time, it's because each session is overwriting the other sessions' history. You probably want to tell bash to not overwrite the history each time, but rather to append to it. You can do this by modifying your .bashrc to run You can also increase the size of your history file by exporting HISTSIZE to be a large-ish number (it's in bytes, so 100000 should be plenty). | |||
|
feedback
|
|
Good answer to this question is here: http://linuxcommando.blogspot.com/2007/11/keeping-command-history-across-multiple.html | |||
feedback
|