Email Facebook Twitter Reddit
AppleInsider may earn affiliate commissions for purchases made through links on our site.
Terminal can be tricky, so it's good to have a single online repository of cheat sheets that can give you more information. Here's how to see it.
Igor Chubin created an online terminal-based cheat sheet called cheat.sh. Mainly aimed at developers, the cheat.sh project also includes a huge database of user-generated cheat sheets for common terminal commands, databases, and other useful macOS shortcuts.
At first it's a bit difficult for beginner terminal users, but you'll soon get the hang of it and wonder how you ever got by without it.
How to use cheat.sh
There are 2 ways to use Cheat.sh. The first and easiest is to simply type “curl” in a terminal window, followed by “cheat.sh”, a forward slash, and then the command or technology you want to search for. For example, to get complete information about the UNIX tar command, enter curlcheat.sh/tar in the Terminal and press Return.
cheat.sh will answer whatever it knows about the tar command.
You can also get some usage examples by typing curlcheat.sh and hitting Return.
The Cheat.sh command uses the standard curl loader for most access. But it also has built-in intelligence and natural language processing, which also makes it easy to find what you want.
If you don't know the exact name of the team or technology, you can search/search in Cheat.sh by simply adding “~” to any word at the end of the command. For example, curl Cheat.sh/~snapshot returns all the information Cheat.sh knows about how to take a system snapshot.
You can refine your search results by prefixing a keyword or command with the name of a specific technology or language, as if you were accessing it from a directorycurlcheat.sh/go/Pointers.
For example, returns all the information Cheat.sh knows about pointers, but only for the go programming language.
Because most of the returned information is stored in community-maintained cheat sheet databases, it's highly likely that what you're looking for will be available. You can even add your own cheat sheet for any specific topic if you follow the Cheat.sh guidelines.
You can view a list of all available cheat sheets for a topic by adding “:list” to the end of any query. For example, curlcheat.sh/go/:list returns a list of all go programming topics in cheat.sh.
There is also a special command line client for cheat.sh that requires 2 commands in the Terminal to installation. You will need to install Homebrew to run the first command.
After installing Homebrew, type brew install rlwrap and press Return.
Next, in the Terminal, type ”
curl -s https://cht.sh/:cht .sh | sudo tee to install the command line tool for all users on your Mac /usr/local/bin/cht.sh && sudo chmod +x /usr/local/bin/cht.sh
Then press Return
< p>As mentioned in the documentation:
Documentation Now you can use cht.sh instead of curl and write your queries in a more natural way.
There is also a compiled binary (.exe) version Cheat.sh for windows computers It is also possible to install the whole system of Cheat.sh offline locally on your computer, although this is quite technically difficult and may be beyond the ability of normal users.If we have enough requests, we will cover them .
Everything-everything-everything-all-everything-everything.getting information about this technology in one place quickly is priceless.