Like so many Linux things, you can customize your Bash history settings. They're easily customized, with just a few variables for you to configure. This article details those, though it ended up pretty long. Meh... Long is good, I suppose. I didn't meander too far from the topic. Everything is fairly concise, but it took more words than normal to explain everything I felt needed to be explained.
So, if you want to mess around with your Bash history settings, you can do that. Why? Because, of course, you can. This is Linux. You can customize anything if you're willing to put the work in.
Playing With Your Bash History • Linux Tips
Your Linux computer, assuming it's 'normal' will retain the commands you typed in the terminal and this is your Bash history.
linux-tips.us
So, if you want to mess around with your Bash history settings, you can do that. Why? Because, of course, you can. This is Linux. You can customize anything if you're willing to put the work in.