HISTSIZE
HISTSIZE is a shell variable that controls the number of commands kept in the interactive shell's command history for the current session. It determines how many recent commands are stored in memory and available for recall with the up-arrow key or history expansion.
In practice, as new commands are entered, they are added to the in-memory history until the total
Persistent history across sessions is controlled separately by HISTFILE and HISTFILESIZE. The default history file is
Usage typically involves setting these in startup files such as ~/.bashrc or /etc/profile. For example: HISTSIZE=1000;
In other shells, such as Zsh, HISTSIZE serves a similar role but may be complemented by additional