The variables HISTSIZE and HISTFILESIZE both seem to define the maximum number of lines in .bash_history.
"man bash" states the following:
The maximum number of lines contained in the history file. When
this variable is assigned a value, the history file is trun-
cated, if necessary, to contain no more than that number of
lines. The default value is 500. The history file is also
truncated to this size after writing it when an interactive
The number of commands to remember in the command history (see
HISTORY below). The default value is 500.
So what is the difference?
Is it sufficient to assign just one of them?
Any good link where those variables are explained?
While googling I found the following RHCE question at http://certcities.com/editorial/popq...ditorialsID=42
In the bash shell, command history is controlled by which group of the following environment variables?
A. HISTFILE, HISTSIZE, HISTFILESIZE
B. HISTFILE, HISTFILESIZE, EDITOR
C. HISTSIZE, HISTOPTIONS, EDITOR
D. HISTSIZE, HISTFILESIZE, EDITOR
My answer would rather be
E. HISTCMD, HISTFILE, HISTSIZE, HISTFILESIZE