Isn't it a perfect case for aliases?
If you don't remember the particular command, why not to look it up for the first time and then assign personalized alias, which is easy to remember?
Like with `tar` example and `zsh` you can even define suffix alias (`alias -s`), so you can just type `./your-file.tgz` and `zsh` will invoke `tar -xzf ./your-file.tgz` or whatever you prefer.