Linux command cheat sheet
- #Linux command cheat sheet how to#
- #Linux command cheat sheet install#
- #Linux command cheat sheet download#
You can get a list of all of the cheat sheets you have installed with the -l option: cheat -lĮach cheat sheet should have one or more tags. There are some cheat sheets, like the markdown one, that don’t correspond to a command, but to a topic that you may want to learn more about.
# To display directories only, include hidden: # To display all files, along with the size (with unit suffixes) and timestamp # To display everything in, including hidden files: # To display everything in, excluding hidden files: Usually, this is the name of a command for which you want to view its cheat sheet: cheat ls To view a cheat sheet, provide the cheat command with the name of the cheat sheet.
#Linux command cheat sheet how to#
They help you learn how to find the sheets you need, create new ones, and manage existing ones. The sections below show you how to get started using cheat.
#Linux command cheat sheet download#
Use the following commands to download the script and add it to your user’s PATH: curl -LO
The cheat maintainers provide a script to help you manage community-sourced cheat sheets. Likewise, if you initially skipped creating your cheat configuration file, you can download it to the appropriate directory: cd ~/.config/cheat Here is an example, which assumes the current user is your cheat user: git clone ~/.config/cheat/cheatsheets/community If you initially skipped downloading the cheatsheets project, you can download it later by cloning the repository to the appropriate directory. Please read this file for advanced configuration information. Would you like to download the community cheatsheets? : YĬloning into '/home/example-user/.config/cheat/cheatsheets/community'.Ĭreated config file: /home/example-user/.config/cheat/conf.yml Here is what your output may look like: A config file was not found. Run a cheat command like the one below, and answer Yes ( Y) to the prompts to download the community cheat sheet collection and create the default configuration file: cheat ls
#Linux command cheat sheet install#
If your system does not have Git installed, install it prior to following the steps below. To automatically download the community cheat sheets, cheat uses Git. When you first run cheat, it prompts you about downloading the collection, as well as about creating a default configuration file. However, you can have cheat download a collection of community-sourced cheat sheets from theĬheatsheets project. On its own, cheat does not come with any cheat sheets. Verify your installation by checking the installed version: cheat -version Give the binary file executable permission: sudo chmod +x /usr/local/bin/cheat Again, be sure to replace the amd64 filename below with the name of the file you extracted: sudo mv cheat-linux-amd64 /usr/local/bin/cheat Move the extracted binary file to your PATH. Replace the filename below with the one for the file you downloaded: gzip -dk cheat-linux-amd64.gz gz file using a command like the following, replacing the URL with the one you copied in the step above: curl -LO Įxtract the file’s contents using gzip. So, for example, on a system with an x86_64 (AMD64) architecture, use the cheat-linux-amd64.gz file.ĭownload the. Otherwise, use the file ending in linux-arm7. If it is 64-bit, use the file ending in linux-arm64.