114
Linux Command Cheat Sheet
(lemmy.world)
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.
Community icon by Alpár-Etele Méder, licensed under CC BY 3.0
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 andAnd a short and sweet description with examples will be returned.
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.
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:
Then you can call
cheat-sheet grep
for example