How do I determine the size of my bash history file?
-
HISTSIZE The number of commands to remember in the command history (see HISTORY below). If the value is 0, commands are not saved in the history list. Numeric values less than zero result in every command being saved on the history list (there is no limit). The shell sets the default value to 500 after reading any startup files.
Echoing the variable displays number of lines the history file can store.
$ echo $HISTSIZE 1000
© Lightnetics 2024