I'm using this in my .bashrc
since 2 years now, and never noticed any problem...until recently.
I noticed that the .bash_eternal_history
, which was more than 40k lines, suddenly gets truncated on new login, down to a couple hundreds lines.
I tried checking HISTSIZE
and HISTFILESIZE
but it was still returning nothing (which I assume mean it doesn't have any limits)
I'm aware of this other post that mentions that unset
ting those variables is preferred, but in this other one, it doesn't seem to always be the case.
I found an alternative (didn't tried it yet) such as this one.
I'm using Ubuntu's default .bashrc
, with HISTSIZE
and HISTFILESIZE
commented, since already part of the defaults (so that it doesn't interfere with the snippet mentioned above).
Other related posts I consulted:
- history list in bash always truncated to 5000 lines at new login
- Is there a way to set the size of the history list in bash to more than 5000 lines?
I didn't yet tried the alternative I mentioned above, and so I'm curious if there could be other reasons for this to happen, outside what I found in the mentioned posts.