A bash commands cheatsheet gives you instant access to every essential shell command — from navigating and managing files to processing text, monitoring processes, and connecting over the network. Whether you are learning Linux for the first time or an experienced developer who needs a quick syntax reminder, this interactive reference covers 50+ bash commands with real examples and one-click copy buttons.
No commands found
Try a different search term or select a different section
How to Use This Bash Commands Cheatsheet
This interactive bash commands cheatsheet is your go-to reference for the Linux and macOS terminal. Whether you are navigating directories, searching log files, archiving backups, or debugging network connections, every command you need is organized by category and searchable in seconds.
Searching for Commands
Type any keyword into the search bar to instantly filter commands. You can search by command name (e.g., grep), by description (e.g., "count lines"), or by example text. Results update live as you type. Click Clear or delete the text to return to the full list.
Filtering by Category
Use the category tab buttons to focus on a specific area: File Operations covers listing, copying, moving, deleting, and setting permissions; Search & Find covers grep, find, locate, and which; Text Processing covers sort, cut, sed, awk, and tr; System Info covers disk, memory, process, and host details; Processes covers kill, jobs, and background execution; Networking covers curl, wget, ssh, scp, and ping; Compression covers tar, zip, gzip, and unzip; and Pipes & Redirection covers stdin/stdout/stderr routing.
Copying Commands
Every command card has a Copy button. Click it to copy the command syntax to your clipboard, then paste it directly into your terminal. The button briefly shows "Copied!" to confirm. Where commands use placeholders like file, dir, or pattern, replace those with your actual values.
Dangerous Commands
Commands that permanently delete data or terminate processes — such as rm -rf dir and kill -9 PID — are marked with a red Dangerous badge. These cannot be undone. Always double-check your path or PID before running them.
Common Bash Workflows
Most terminal work follows predictable patterns. To find a string in logs: grep -r "error" /var/log/. To watch a log file live: tail -f /var/log/syslog. To archive a directory: tar -czf backup.tar.gz /path/to/dir. To copy files over SSH: scp file user@host:/remote/path. To chain commands together, use pipes: ps aux | grep nginx | wc -l counts nginx processes. This bash shell reference covers every step so you can find exactly what you need without leaving your browser.
Frequently Asked Questions
Is this bash cheatsheet free to use?
Yes, this bash commands cheatsheet is completely free with no signup, account, or payment required. All commands are available instantly in your browser.
Is my data safe when using this cheatsheet?
Absolutely. This cheatsheet runs entirely in your browser — no data is sent to any server. Your searches and usage are completely private.
What bash commands are included in this cheatsheet?
The cheatsheet covers over 50 essential commands across 8 categories: file operations (ls, cp, mv, rm, chmod), search and find (grep, find, locate), text processing (sed, awk, sort, cut), system info (df, du, top, ps), process management (kill, jobs, bg, fg), networking (curl, ssh, scp, ping), compression (tar, zip, gzip), and pipes and redirection.
What is the difference between rm -rf and rm -f?
rm -f forcefully deletes files without prompting, even if they are write-protected. rm -rf recursively deletes a directory and all its contents without prompting. Both are irreversible — there is no trash or undo. Always double-check before using either command.
How do I search for a specific bash command?
Use the search bar at the top to instantly filter commands by name, description, or example text. You can also use the category tab buttons to narrow down to a specific group like File Operations or Networking. Results update live as you type.
How do pipes work in bash?
The pipe operator | connects the output of one command to the input of the next. For example, ps aux | grep nginx passes the process list to grep, which filters it for lines matching 'nginx'. You can chain multiple pipes: cat file.txt | sort | uniq | wc -l counts the unique lines.
What does the chmod 755 command do?
chmod 755 sets file permissions so the owner can read, write, and execute (7), while group members and others can only read and execute (5). This is a common permission for executable scripts and web server directories. Use chmod 644 for regular files that should not be executed.
What is the difference between > and >> in bash?
> redirects command output to a file, overwriting any existing content. >> appends the output to the end of a file without overwriting. For example, echo 'hello' > file.txt creates or overwrites the file, while echo 'world' >> file.txt adds a new line at the end.