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
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I’m afraid your past history is lost forever. But you can preserve it in the future. Increasing
$HISTSIZEand$HISTFILESIZEhelps, but if you really want to keep all your commands forever, check out this tip.