Both ~/.bash_history and ~.bash_history-XXXXX.tmp are 65536 lines long,
as specified by $HISTFILESIZE.
~/.bash_history-XXXXX.tmp contain older commands and doesn't contain
more recent commands, as expected.
After manual removal of ~/.bash_history-XXXXX.tmp after some time new
tmp file emerges.
Related environment variables:
HISTCONTROL=ignoredups:ignorespace:erasedups
HISTFILE=/home/dimich/.bash_history
HISTFILESIZE=65536
HISTSIZE=65536
Related shell options:
cmdhist on
histappend on
histreedit off
histverify off
lithist off
Repeat-By: regular bash usage.
--
With best regards,
Dmytro Bagrii