Sunday, May 12, 2024
 Popular · Latest · Hot · Upcoming
0
rated 0 times [  0] [ 0]  / answers: 1 / hits: 13138  / 3 Years ago, thu, may 13, 2021, 11:09:04

I've recently upgraded from 13.04 to 13.10 and realized my terminal bash history is not surviving reboots.



cat ~/.bash_history gave me a permissions denied error.



I, possibly unnecessarily or wrongly, issued a chmod 777 ~/.bash_history to see if that would help...and although I could then cat and read some contents it contained not much of anything as far as history.



I also tried sudo rm ~/.bash_history after reading bash history not being preserved



Strangely, after doing that, I typed a few test commands, ls, ls -lah ... and upon pressing the up arrow to go back through history it contained those two commands as well as the odd history from some far off time in the past but very few results and not the hundreds of commands I typed earlier in the day.



Is there a new place bash history is stored? How can removing ~/.bash_history not get rid of the commands that are somehow lingering? I am not certain, but I believe my root bash history is acting normal. My user bash history is what's causing me trouble. Any help and guidance in tracking down and solving this problem is appreciated.


More From » bash

 Answers
0

As pathetic as it sounds, this resolved itself after a reboot. I'm not sure what that means and I hate offering a resolution with such a generic solution. Maybe a reboot is necessary after removing and recreating the ~/.bash_history I'm not sure why and nowhere did I read that was a requirement. If I find out anything more specific, I will post my findings.


[#28515] Saturday, May 15, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
alliulet

Total Points: 46
Total Questions: 109
Total Answers: 97

Location: Svalbard and Jan Mayen
Member since Sat, Oct 10, 2020
4 Years ago
;