LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Bash history is cleared without any reason? (https://www.linuxquestions.org/questions/linux-software-2/bash-history-is-cleared-without-any-reason-744351/)

MasterOfTheWind 08-01-2009 08:15 AM

Bash history is cleared without any reason?
 
Hi!

Recently my bash_history has been cleared several times without any warning or reason.

I have during the past month experienced this strange behavior twice and it occurs ONLY on my root account. The computer in question is running Ubuntu 9.04 and I am the only user.

Have never experienced this before :confused:


Could somebody help me out or suggest what might be the culprit?

Thanks in advance :)

colucix 08-01-2009 08:50 AM

Quote:

Originally Posted by MasterOfTheWind (Post 3627595)
I have during the past month experienced this strange behavior twice and it occurs ONLY on my root account.

Check if there is a .bash_logout file in /root, which maybe contains
Code:

history -c

MasterOfTheWind 08-01-2009 08:57 AM

Thank you very much for your suggestion, colucix.

Unfortunately, no, I don't have that file in /root. I should also probably mention that this box is turned on and off quite regularly (I usually power it off during the night), which means that I am logging in and out rather frequently without my history being erased.


All times are GMT -5. The time now is 09:15 PM.