News for hackers. Stuff that matters.
Re:Create and view interactive cheatsheets on the command-line by npmisdown on Tuesday August 18, 2020 @06:47AM (#24197180)
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.

Re:Create and view interactive cheatsheets on the command-line by mxuribe on Tuesday August 18, 2020 @08:10AM (#24197667)
Funny, i actually created my own alias which points to http://cheat.sh/

...that of course assumes I have an internet connection. Otherwise, fall back to man pages as well as my own directory of text files with reference info on commonly used commands - employing my own examples.