Cheat allows you to create and view interactive cheatsheets on the Linux command-line

cheat

It was designed to help remind *nix system administrators of options for commands that they use frequently, but not frequently enough to remember. The next time you’re forced to disarm a nuclear weapon without consulting Google, you may run: cheat tar and quickly get some examples to jog your memory.

The project gives a couple of options to install it, but I was able to just click to install from AUR and no setup was needed at all. I see there is also a Snap package for those who use Snap.

See https://github.com/cheat/cheat