godz.online
Back to tools

TLDR reference

Bash commands

A searchable cheatsheet of everyday bash and Linux tasks paired with the exact command. Type what you want to do, or filter by intent. Everything runs in your browser.

40 shown

How it works

A searchable cheatsheet for everyday bash and Linux, organised around what you are trying to do rather than around the commands themselves. Type a goal in plain words - "search inside files", "free disk space", "kill a process" - and the matching task surfaces with the exact command. The chips group tasks by intent: files and directories, viewing and searching text, processes, permissions, networking, archives, and the system.

Each card pairs the task with the precise command and a short note on the key flags, so you can copy it with confidence instead of half-remembering the options. It favours the commands you reach for daily across any Linux or macOS shell, from ls, grep, and find to ps, tar, and ss. Everything is static and runs in your browser, so the lookup is instant and works offline once the page has loaded.

Example. Searching "search" surfaces grep -rn for finding text inside a tree of files, while filtering by the Processes chip lines up ps aux, top, kill, and lsof -i so you can find and stop a runaway program from one place.

FAQ

What is the difference between bash and the terminal?

The terminal is the window that shows text and takes your keystrokes; the shell is the program running inside it that interprets the commands you type. Bash (the Bourne Again Shell) is the most common shell on Linux, and the commands here work in it and in compatible shells such as zsh, which is the default on modern macOS. So you type bash commands into a shell, which runs inside a terminal - three layers that are easy to conflate.

What does a flag like -r or -f mean?

Flags (also called options or switches) modify how a command behaves. Single-letter flags start with one dash and can often be combined, so ls -l -a -h is the same as ls -lah. Common ones recur across tools: -r usually means recursive (descend into subdirectories), -f often means force, and -v frequently means verbose. When in doubt, run man command or command --help to see exactly what each flag does for that tool.

How do pipes and redirection work?

A pipe, written |, feeds the output of one command straight into the input of the next, so ps aux | grep node filters the process list for node. Redirection sends output to a file instead of the screen: > overwrites a file, >> appends to it, and < reads input from a file. Chaining small single-purpose commands with pipes is the heart of the Unix philosophy and the reason the shell is so powerful.

When do I need sudo?

sudo runs a single command with administrator (root) privileges, which you need for actions that affect the whole system: installing software, editing files outside your home directory, binding to ports below 1024, or changing another user's files. The rule of thumb is to use it only when a command fails with a "permission denied" error and you are sure the action is safe, rather than prefixing everything with sudo out of habit.