variable
HISTFILESIZE
Limit saved history lines; distinct from entry count. The fixture sets the value but does not test truncation at this limit.
Formal Syntax & Structure
bash syntaxbash
HISTFILESIZE=20Return Value
line limit
Limit saved history lines; distinct from entry count. The fixture sets the value but does not test truncation at this limit.
Working Example
Example Snippetbash
HISTFILE="$PWD/history.txt"HISTSIZE=20HISTFILESIZE=20history -chistory -s 'printf demo'history -s 'printf example'history -w "$HISTFILE"cat "$HISTFILE"