I want to get my bash command history as many as possible, I find ./bash_history only contains most recent two thousands lines, does it mean the ones before that is lost forever? Is there anyway to get it back.
Thanks a lot. Roy987
I want to get my bash command history as many as possible, I find ./bash_history only contains most recent two thousands lines, does it mean the ones before that is lost forever? Is there anyway to get it back.
Thanks a lot. Roy987
I'm afraid your past history is lost forever. But you can preserve it in the future. Increasing $HISTSIZE
and $HISTFILESIZE
helps, but if you really want to keep all your commands forever, check out this tip.