Last Updated: February 25, 2016
·
692
· dandrews

Set the total number of lines in bash history with HISTSIZE

In your .bash_profile file, modify the HISTFILESIZE variable to save more or less lines from your command line history. For example, save 2500 commands from your bash history.

> emacs ~/.bash_profile
HISTSIZE=2500
HISTFILESIZE=2500