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.
Working in AWS I created an instance of Ubuntu 14.04 and noticed the history was not preserved between login sessions. Further investigation showed the .bash_history file did not exist. Why was a .bash_history not created?
My bash history is working fine, except that it's too short.
HISTSIZE and HISTFILESIZE are set to 16k, yet I've only ever seen about 1000 entries in my history file. Currently the oldest command in it seems to be about a week old, which roughly coincides with my last reboot. It may be that the history file isn't surviving reboots.
How can I modify the contents of my bash_history file? What values or variables control how long the history lasts? Are there any other things I can change to provide finer control of my BASH history??