Never lose a command again: How to set up unlimited Bash history – howtogeek.com
I’ve lost count of how many times I’ve needed to reuse a command, only to find that it’s no longer in my Bash history. But the default history settings store only a limited number of commands, so important ones can disappear when you need them most.