Skip to main content

All Questions

1 vote
0 answers
96 views

How to find out what caused a deletion of .bash_history entries during a specific timespan (to prevent it from happening again)?

Lots of entries were missing from my ~/.bash_history. I made frequent backups of that file so I determined a timespan of a few hours during which the file must have been deleted or emptied. Which ways ...
mYnDstrEAm's user avatar
  • 4,588
2 votes
1 answer
134 views

HISTCMD does not increment normally in bash

HISTCMD displays an erratic behaviour, though I never reset it I promise (I checked all my configuration files). As a result I cannot delete the entry containing my password which I inadvertently ...
Alexandre Oberlin's user avatar
2 votes
1 answer
585 views

How to prevent missing entries in .bash_history? (Possibly due to lack of disk space)

I just noticed that a lot of entries are missing from my bash command history (the .bash_history file). I'd like to know: if there is a way to find out why commands are missing from the file (like a ...
mYnDstrEAm's user avatar
  • 4,588
3 votes
0 answers
129 views

bash multiline history with lithist option broken

i used to enable lithist option, which make bash history store in multiline, but one day, the lithist option not work. enabling lithist mean you can store multiline in one history entry. if you type ...
gholk's user avatar
  • 71
5 votes
1 answer
3k views

Terminal history is being deleted upon ending session

My ~/.bash_history is fine and has all of the previous commands that I ever typed. However, when I press the up-arrow key on the keyboard, I get nothing; the history command shows only the commands ...
A.Rahman Mahmoud's user avatar
0 votes
0 answers
83 views

Does changing one's hostname also clear the root's bash history?

I'm asking because mine is strangely short and I definitely didn't clear them. However I tried changing my username (because I got some errors which I thought were due to my hostname; tried to view ...
mYnDstrEAm's user avatar
  • 4,588