I am trying to increase the size of my history in bash. I have the following in my ~/.bash_profile
# Control the command history
export HISTFILESIZE=10000
export HISTSIZE=10000
export HISTCONTROL=ignoredups:erasedups
But, when I echo $HISTSIZE
I always get 50
. Am I missing something? Is there some command that my sys admin put in a higher config file that could prevent HISTSIZE from being changed?
Best Answer
Many distributions seem to have
.bash_profile
check.bashrc
somewhere inside of it. Could your.bashrc
be sourced sometime later and set aHISTSIZE
of 50?