Linux Command Cheat Sheet

https://lemmy.world/post/3210964

See also:

GitHub - tldr-pages/tldr: 📚 Collaborative cheatsheets for console commands

📚 Collaborative cheatsheets for console commands. Contribute to tldr-pages/tldr development by creating an account on GitHub.

GitHub
to add on to this, cheat with some similar functions to tldr but also allows editing and writing one’s one cheat sheet
GitHub - cheat/cheat: cheat allows you to create and view interactive cheatsheets on the command-line. It was designed to help remind *nix system administrators of options for commands that they use frequently, but not frequently enough to remember.

cheat allows you to create and view interactive cheatsheets on the command-line. It was designed to help remind *nix system administrators of options for commands that they use frequently, but not ...

GitHub

On a related note, the website cheat.sh is also a great resource. Just curl it with the command you want to learn about as the endpoint.

For example, if I want to learn about grep, just open a terminal and

$ curl cheat.sh/grep

And a short and sweet description with examples will be returned.

cheat.sh/:firstpage

My main issue with this is it requires a cheat sheet just to view a cheat sheet.

I added a custom function to my bashrc:

cheat-sheet() { curl cheat.sh/"$1" }

Then you can call cheat-sheet grep for example

At that point just use ‘man grep’.

curl cheat.sh/command is more useful because it just spits out common examples. man is only useful if you need complete documentation or need to build a complex oneliner.

I never remember hot to extract tar files? would you dive into the documentation for that or look up a cheatsheet?

Cheat.sh has usage examples, with short descriptions. It’s purpose is remembering something you have already done. It’s much more similar to --help flag than full manpage.

Reading the cheat.sh of a command I don’t know at all is rarely useful. I use it when simply listing the flags isn’t enough, or the output unhelpfully long. curl returns so fast that it’s faster to request data from external server than read through three paragraphs.

If you haven’t tried it, give it a go. The whole point is to be very quick to type and give back text that is fast to read.

Linux Commands Cheat Sheet - PDF Download & Printable

Linux command line cheat sheet in a well-formatted image and pdf file. Commands are categorized in different sections for the ease of better understanding.

LinuxOPsys
Ublock origin works too
I would love to have a poster of this in that old Apple Basic reference poster style

If suggestions for other helpful sites is ok, I visit SS64.com frequently for help with commands. I like that it has Linux and windows CMD and powershell help, so I can just remember one place to go to.

ss64.com

SS64 Command line reference

Command line reference for Windows CMD, PowerShell, MacOS and Linux bash. Also includes SQL Server database commands.