La página personal de Juan Gabriel Covas
Edit the .bashrc file at your home directory. Change HISTSIZE and HISTFILESIZE to something big:
.bashrc
HISTSIZE=1000000000 HISTFILESIZE=1000000