this post was submitted on 15 Aug 2023
114 points (97.5% liked)

Linux

48008 readers
823 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

I just stumbled across this while trying to learn a bit more about using the command line, and thought others might appreciate it. It comes in a printable format so you can stick it up on your wall :)

https://linuxopsys.com/topics/linux-commands-cheat-sheet

top 12 comments
sorted by: hot top controversial new old
[–] [email protected] 35 points 1 year ago (2 children)

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.

[–] [email protected] 13 points 1 year ago (2 children)

At that point just use 'man grep'.

[–] [email protected] 2 points 1 year ago* (last edited 1 year ago)

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?

[–] [email protected] 1 points 1 year ago

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.

[–] [email protected] 2 points 1 year ago (1 children)

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

[–] [email protected] 3 points 1 year ago

I added a custom function to my bashrc:

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

Then you can call cheat-sheet grep for example

[–] [email protected] 25 points 1 year ago* (last edited 1 year ago) (1 children)

Without the spam ad insanity:

https://web.archive.org/web/20230605010854/https://linuxopsys.com/topics/linux-commands-cheat-sheet

On a whole different level... (on enthusiast lvl hardware) a Llama2 70B running with 4 bit GGML on a 16GBV 3080Ti 12th gen Intel with 64GB can do bash and Python completely offline at a cheat sheet/stack overflow level without major errors. I just spent a day modifying someone else's python script and never went online for anything, have never been good at Python, and haven't messed with it for years. I actually got more done than I ever have before in a single day mostly because I didn't need to search documentation. FOSS/almost FOSS/offline AI rocks.

[–] [email protected] 5 points 1 year ago

Ublock origin works too

[–] [email protected] 23 points 1 year ago (1 children)

See also:

[–] [email protected] 4 points 1 year ago

to add on to this, cheat with some similar functions to tldr but also allows editing and writing one’s one cheat sheet

[–] [email protected] 6 points 1 year ago

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.

https://ss64.com/

[–] [email protected] 1 points 1 year ago

I would love to have a poster of this in that old Apple Basic reference poster style