https://gadgeteer.co.za/tweaking-history-linux-bash-shells-history-command-linux-makes-it-easy-review-and-reuse-commands/
Tweaking history on Linux - The bash shell's history command in Linux makes it easy to review and reuse commands, but there's a lot you do to control how much it remembers and how much forget