export HISTSIZE=50000

Category: Terminal Configuration

export HISTSIZE=50000

Keep 50,000 commands in memory history

HISTSIZE controls how many commands are kept in memory during the current session. The default (500–1000) is too small for power users. Setting to 50,000+ means you can search months of history. Add to .bashrc/.zshrc.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.