LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 08-01-2009, 08:15 AM   #1
MasterOfTheWind
Member
 
Registered: Jul 2004
Distribution: Arch, Debian sid, Kubuntu, Slackware 11
Posts: 324

Rep: Reputation: 30
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


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

Thanks in advance
 
Old 08-01-2009, 08:50 AM   #2
colucix
Moderator
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,508

Rep: Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957
Quote:
Originally Posted by MasterOfTheWind View Post
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
 
Old 08-01-2009, 08:57 AM   #3
MasterOfTheWind
Member
 
Registered: Jul 2004
Distribution: Arch, Debian sid, Kubuntu, Slackware 11
Posts: 324

Original Poster
Rep: Reputation: 30
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.
 
  


Reply

Tags
bash, history, ubuntu


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Bash history delete command from bash itself ashishag Linux - Software 6 05-02-2010 03:39 AM
Where's my bash history? subnet_rx Red Hat 6 02-07-2007 06:35 PM
need someone to look into this bash history bytez Linux - General 7 10-16-2006 10:26 PM
bash history slowly Linux - General 2 11-12-2004 11:35 AM
Bash History ukndoit Linux - Security 2 10-16-2003 09:02 AM


All times are GMT -5. The time now is 07:26 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration