Hack 55. Control the total number of lines in the history using HISTSIZE

by Ramesh

Append the following two lines to the .bash_profile and relogin to the bash shell again to see the change. In this example, only 450 command will be stored in the bash history.

# vi ~/.bash_profile

HISTSIZE=450
HISTFILESIZE=450

Comments on this entry are closed.

Previous post:

Next post: