Cheatsheets are plain-text files with no file extension, and are named according to the command used to view them:
cheat drozer # file is named "drozer"Cheatsheet text may optionally be preceeded by a YAML frontmatter header that assigns tags and specifies syntax:
---
syntax: javascript
tags: [ array, map ]
---
// To map over an array:
const squares = [1, 2, 3, 4].map(x => x * x);
The cheat executable includes no cheatsheets, but community-sourced
cheatsheets are available. You will be asked if you would like to
install the community-sourced cheatsheets the first time you run cheat.
The cheat tool allows users to create and view interactive cheatsheets for frequently used commands.
It's especially useful for system administrators and developers who need quick reminders of command
options without digging through documentation. To learn more about using cheat, creating your own cheatsheets,
and customizing color schemes, check out the official GitHub page: π cheat
π± Click here to expand
You can install cheat on Debian-based systems via Snap by running the following commands:
snap install cheatOn Unix-like systems, you may simply paste the following snippet into your terminal:
cd /tmp \
&& wget https://github.com/cheat/cheat/releases/download/4.4.2/cheat-linux-amd64.gz \
&& gunzip cheat-linux-amd64.gz \
&& chmod +x cheat-linux-amd64 \
&& sudo mv cheat-linux-amd64 /usr/local/bin/cheatYou may need to need to change the version number (4.4.2) and the archive
(cheat-linux-amd64.gz) depending on your platform.
See the releases page for a list of supported platforms.
For further installation and configuration instructions, see the installation page over at the master branch for cheat, INSTALLING.md.
These are my personal collection of Linux command-line cheatsh33ts. Each cheatsh33t is designed to be used with the cheat tool, which provides quick access to command references directly from the terminal.
The cheatsh33ts in this repo are just my personal cheatsh33ts, not meant to replace the community cheatsheets but rather just additional ones to add to your personal cheatsheets. After installing & configuring the cheat tool, you need to determine the path to your personal cheetsheats. Once you have done that, you can simply copy over the cheatsh33ts in this repo to the directory of your personal cheatsheets.
π± Click here to expand
Determine the path:
cheat -d
community: /home/user/.config/cheat/cheatsheets/community
community: /home/user/.config/cheat/cheatsheets/personalCopy over each cheatsh33t:
cd Cheatsh33ts
cp forensics /home/user/.config/cheat/cheatsheets/personal/forensicsYou can use the freshsh33t.sh Bash script to automatically copy over all of the cheatsh33ts. Make sure that the script is in the same directory as the cheatsh33ts you plan on copying over...
Make the script executable:
chmod +x freshsh33t.shNow simply run the Bash script:
./freshsh33t.shYou must add the path to your personal cheetsh33t directory to the PERSONAL_DIR variable in order to use the script.
Determine the path
cheat -d
/home/user/.config/cheat/cheatsheets/personalOpen up freshsh33t.sh and look for line 16:
nano freshsh33t.sh
15 # PERSONAL_DIR Variable. After the = Replace with output from cheat -d
16 PERSONAL_DIR=/home/user/.config/cheat/cheatsheets/personalTo copy over all of the cheatsh33ts at once:
./freshch33ts.sh --copyTo remove all of the cheatsh33ts inside of the personal directory
./freshsh33t.sh --removeDetermine the path to the personal directory:
cheat -dDelete all of the sh33ts:
rm /home/user/.config/cheat/cheatsheets/personal/*π‘Important: This will delete every file in the
personaldirectory
You may run into a situation where you have created a cheatsh33t that you want to add but a cheatsheet already exists. When that happens, I usually just change the name of my cheatsh33t slightly. Here is an example. I created a cheatsh33t called docker to find out that one already existed.
cheat -l docker
title: file: tags:
docker /home/user/.config/cheat/cheatsheets/community/docker community
docker-compose /home/user/.config/cheat/cheatsheets/community/docker-compose community,container,docker
d0cker /home/user/.config/cheat/cheatsheets/personal/d0cker personal,dockerFor your reference, Iβve included a cheatsh33t called that outlines the basic syntax for creating cheatsheet headers. These headers let you assign 'tags' to each sheet, making it easier to search, reference, and access specific sections of a cheatsheet directly from the terminal.
π‘Tip: You can edit & create cheatsh33ts 'on the fly' using
nanoinstead ofvimwhich is the default editor used bycheat. Instead of runningcheat -e foo, usenanowith the full path:
nano /home/user/.config/cheat/cheatsheets/personal/d0cker| Cheatsh33t | Description |
|---|---|
| π± adb | adb android commands |
| π countrycodes | list of country codes for countries with mullvad vnp servers (goes with mullvad cheatsheet) |
| π’ d0cker | docker commands |
| π€ drozer | drozer commands, android agent & drozer server, bug bounty |
| π₯ firefox | commands to interact with firefox from linux command line |
| π‘ mullvad | commands for interacting with mullvad cli |
| β° r3gex | miscellaneous commands using regex with grep, sed, awk, etc. |
| π§ syntax | show the syntax for the headers, yaml format |
| π΅ forensics | commands to perform forensic analysis on Linux |
| π process | investigating processes on linux |
| πΆ nmcli | manage connections with NetworkManager |
| π§© figlet | every single figlet font using 'fresh' as the example |
| πΌ boxes | every single box using fresh for the font inside the box |
| π fakeshell | commands to investigate if you are using a fake shell |
| π° networking | linux networking commands and utilities |
| π textprocessing | sed, awk & grep commands for processing text |
| π bashhistory | commands & shortcuts related to bash history |
| π° castles | nothing but ascii art castles... lots of castles! |
| βοΈ time | commands, tools & scripts to display time in the terminal |
| β¨οΈ keyevent | adb input and keyevent numerical codes |
| πΈ on1ux | install rust, compile, use and troubleshoot oniux |
| β ? | suggestions welcome... |
π‘ Have an idea for a cheatsh33t? Let us know...