Find a cheat sheet. There are hundreds out there – you probably want one for basic terminal commands, and one for whatever package manager you’re currently using.
The history command is also great if it’s something you do fairly often, but not often enough to remember clearly.
Pretty sure this game (the first one) is open source and you can just download the whole thing free. There’s also a demo version you can run in the browser.