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. (This particular problem is mentioned in this question, but no solution is given)
Some relevant data:
.bash_history: -rw------- 1 aib aib 10633 Mar 22 10:56 /home/aib/.bash_history (~700 lines, oldest about a week ago) .bashrc: HISTCONTROL=ignoreboth shopt -s histappend HISTSIZE=16384 HISTFILESIZE=16384
/etc seems to mention
.bash_history apart from
apparmor (which I know next to nothing about.)
I run bash from Konsole (KDE's terminal) and rarely ever use tty1~6.
Edit: I've pinpointed an early entry's (#30) date and it's 10 days. My uptime is 11 days. It's very likely that my .bash_history file simply doesn't survive reboots.
Edit: I just did a reboot and my history file was preserved. So I can't duplicate the problem.