A lightning-fast terminal cheatsheet tool that provides instant access to your commands and snippets. Built with pure bash - no dependencies, no GUI, just speed.
# Show all commands
cheats
# Search for specific commands
cheats docker
cheats git
# Show categories
cheats -c
# Get help
cheats -h
- π Instant access - type
cheatsand go - π¨ Color-coded output for better readability
- π Powerful search with context support
- π Multiple cheatsheet support
- πΎ Import/Export functionality
- β‘ Zero dependencies - pure bash
- π Pre-loaded with useful commands
git clone https://github.com/CLOUDWERX-DEV/linux-quick-cheats.git
cd linux-quick-cheats
chmod +x install.sh
./install.sh
# Create directories
mkdir -p ~/bin ~/.cheatsheets
# Download the script
curl -o ~/bin/cheats https://raw.githubusercontent.com/CLOUDWERX-DEV/linux-quick-cheats/main/cheats
chmod +x ~/bin/cheats
# Add to PATH
echo 'export PATH="$HOME/bin:$PATH"' >> ~/.bashrc
source ~/.bashrc
Quick-Cheats can be uninstalled either automatically using the provided script or manually.
./uninstall.sh
# Remove the executable
rm ~/bin/cheats
# Remove cheatsheet files
rm ~/.cheatsheet.txt
rm -rf ~/.cheatsheets
# Remove from .bashrc (edit file and remove these lines):
# export PATH="$HOME/bin:$PATH"
# alias cheat="cheats"
# alias cht="cheats"
# export CHEATS_HIGHLIGHT_COLOR="1;32"
# Optional: Remove bin directory if empty
rmdir ~/bin 2>/dev/null
# Reload shell configuration
source ~/.bashrc
To verify uninstallation:
which cheats # Should return nothing
ls ~/.cheatsheet.txt # Should show "No such file"
echo $CHEATS_HIGHLIGHT_COLOR # Should return nothing
cheats # Show all commands
cheats docker # Search for docker commands
cheats -h # Show help
cheats -c # List categories
cheats -l # List available cheatsheets
cheats -f docker.txt # Show specific cheatsheet
cheats -C 2 nginx # Show matches with 2 lines of context
cheats -r "^git.*" # Search using regex
cheats --export # Export cheatsheet
cheats --import file # Import cheatsheet
The installer automatically adds these aliases:
cheat # Same as cheats
cht # Short form
$HOME/
βββ bin/
β βββ cheats # Main executable
βββ .cheatsheets/ # Category-specific sheets
β βββ default.txt
β βββ docker.txt
βββ .cheatsheet.txt # Main cheatsheet
The installer includes these categories:
- Git Commands
- Python/UV Commands
- Docker Commands
- Linux Shell Commands
Example from default cheatsheet:
# Git Commands
git add . && git commit -m "message" # Stage and commit all changes
git push origin main # Push to main branch
# Docker Commands
docker ps -a # List all containers
docker images # List all images
Edit ~/.cheatsheet.txt:
# My Custom Commands
myalias="custom command" # Description here
Already configured in ~/.bashrc:
export CHEATS_HIGHLIGHT_COLOR="1;32" # Green highlights
- Command not found
# Add to PATH manually
export PATH="$HOME/bin:$PATH"
- No color output
# Check color setting
echo $CHEATS_HIGHLIGHT_COLOR
- Permission denied
chmod +x ~/bin/cheats
CHEATS_DEBUG=1 cheats search_term
$ cheats git
git add . && commit -m "message" # Stage and commit all changes
git push origin main # Push to main branch
$ cheats -c
# Git Commands
# Docker Commands
# Python Commands
# Linux Shell
$ cheats -C 1 docker
# Docker Section
docker ps -a # List all containers
docker images # List all images
# Next Section
- Fork the repository
- Create your feature branch
- Test your changes
- Submit a pull request
- Don't store sensitive data in cheatsheets
- Review imported cheatsheets before using
- Keep backups of your custom content
The tool is designed to be fast and lightweight:
- Pure bash implementation
- No external dependencies
- Instant response time
- Minimal resource usage
- GitHub Issues: Report Bug
- Author: CLOUDWERX LAB
- Website: http://cloudwerx.dev
MIT License - see LICENSE file for details.
Created with β€οΈ by CLOUDWERX LAB