Check GitHub Actions workflow files for mistakes.
Know what you're
about to type.
Small, practical explanations for shell commands.
Useful examples. Clear options. The right implementation.
$ explain grep
Find lines of text that match a pattern.
One command, step by step.
grep -n -i 'error' app.logPrint each matching line with its line number. This helps you locate a result in the original file.
ONE MARKDOWN SOURCE · WEB + CLI
Learn the ideas behind the commands.
Plain-language guides with pictures and tables: what a terminal and a shell are, how a command becomes a result, and why one tool has many versions.
How a Computer Works, Just Enough
What happens between your keyboard and the screen.
5 guides, starting with From Keypress to ScreenTerminal, Shell and Commands
What you are typing into, and how it becomes a result.
9 guides, starting with Terminal, Shell, Command: Three Things People Mix UpWhy Are There So Many Versions?
Where Unix, BSD, GNU and Linux came from, and why one command differs from system to system.
5 guides, starting with A Short History: Unix, BSD, GNU, LinuxGetting Things Done
Start from the result you want and pick a route to it.
5 guides, starting with Needle in a Haystack: Find a Word in Many Files
194 commands
SMALL REFERENCE. USEFUL DETAILS.Print the machine hardware name.
Process text line by line with patterns and actions.
Work with Amazon Web Services from the command line.
Compute or verify BLAKE2 checksums of files.
Encode data as base32 text, or decode it back.
Encode data as text, or decode it back.
Print the file name part of a path, with or without its extension.
Encode or decode data with several base-N encodings.
Start a Bash shell, run a script, or run one line of Bash.
Show files with syntax highlighting, line numbers and paging.
Print files, or standard input, one after another.
Change the current directory of your interactive shell.
Change the SELinux security context of files.
Change the group of files.
Change file and directory permissions.
Change the owner and group of files.
Run a command with a different folder as the root of the file system.
Print a CRC checksum and the byte count of files.
Work with Claude, an AI assistant, from the terminal.
Compare two files byte by byte.
Work with an AI coding assistant from the terminal.
Run Linux containers on macOS without Docker Desktop.
Compare two sorted files and show lines unique to each or shared.
The GNU coreutils package, and its single multi-call program.
Copy files and directories.
Cut a file into pieces at lines that match a pattern or a line number.
Transfer data to or from a server with a URL.
Select columns or character ranges from each line.
Print the date and time in a chosen format.
Copy bytes from an input to an output, with control over block sizes and conversion.
Show free and used space on mounted file systems.
Show the differences between two files or two folders.
Compare three files and show where they differ.
The GNU package that provides diff, cmp, diff3 and sdiff.
List files in columns, like ls -C with escaped names.
Set up the colors that ls uses for file types.
Print the folder part of a path.
Build and run programs in containers.
Run several containers as one application, described in a file.
Show how much disk space files and folders use.
Print text followed by a newline.
Run a command with a changed environment, or print the environment.
Convert tabs to spaces.
Evaluate an expression: arithmetic, comparisons and text matching.
Print the prime factors of numbers.
Do nothing and fail.
Find files and folders by name, in a simpler and faster way than find.
Locate files and directories using explicit matching rules.
The GNU package that provides find, xargs, locate and updatedb.
Reflow paragraphs of text to a chosen line width.
Wrap long lines to a fixed width.
Show how much memory is free and used.
Pick a line from a list by typing a few letters.
Report a bug in gawk, the GNU awk, by mail.
Work with GitHub issues, pull requests and repositories from the terminal.
Track changes to files in a project, and share them.
Scan code and git history for passwords, keys and other secrets.
Build, run, test and manage Go programs.
Find lines of text that match a pattern.
Print the groups a user belongs to.
Compress a program so that it unpacks itself each time it runs.
Compress and decompress files with gzip.
Print the first lines or bytes of files.
Print a numeric identifier for this host.
Show or set the name of this computer on the network.
Print the user and group IDs and names of a user.
Copy files and set their permissions, or create directories.
Combine lines of two sorted files that share a key.
Read and transform JSON on the command line.
Run the commands of a project from a file named justfile.
Send a signal to a process, usually to stop it.
Send a signal to every process that has a given name.
Run checks automatically when you commit or push with git.
Create and manage Linux virtual machines with Lima.
Make a hard link with the plain two-argument form.
Make hard links and symbolic links to files.
Find files by name in a prebuilt index, very quickly.
Print the name you logged in with.
List files and directories.
List the open files of processes, including network connections.
Check Markdown files for style and structure problems.
Compute or verify MD5 checksums of files.
Install and switch between versions of developer tools, and set project environments.
Create directories.
Create a named pipe, a file that connects two programs.
Create special files such as named pipes and device nodes.
Create a temporary file or directory with a unique name.
Move or rename files and directories.
Run a command with a lower or higher scheduling priority.
Number the lines of a file.
Run JavaScript outside a browser.
Run a command that keeps going after you log out.
Install JavaScript packages and run a project's scripts.
Print the number of processing units available.
Run a command from an npm package without installing it for good.
Convert numbers to and from human-readable sizes such as 1.5K or 2M.
Dump the bytes of a file as octal, hexadecimal, decimal or characters.
Join lines from several files side by side, or join one file's lines into one.
Apply a diff to files, to update them or to undo a change.
Check whether a path name is valid and portable.
Find processes by name or by their command line and print their numbers.
Show a short report on logged-in users, in the style of the finger command.
Send a signal to processes found by name or by their command line.
Format text for printing, in pages and columns.
Format JavaScript, JSON, CSS, Markdown and other files in a fixed style.
Print the value of environment variables.
Print text using a format string, with exact control over newlines and escapes.
List the processes that are running.
Make a permuted index, listing each word with the text around it.
Define and deploy cloud infrastructure with ordinary programming languages.
Print the folder you are in.
Run Python programs and scripts.
Show where a symbolic link points, or resolve a path completely.
Print the absolute, fully resolved form of a path.
Search the files under a folder for a pattern, fast, ignoring what .gitignore ignores.
Remove files and directories.
Remove empty directories.
Let tar and other programs use a tape drive on another computer.
Copy files and folders, sending only what changed.
Run a command with a given SELinux security context.
Copy files to or from another computer over SSH.
Find and replace text with regular expressions, in a simpler way than sed.
Compare two files side by side, or merge them interactively.
Work with the macOS keychains, certificates and security settings.
Transform text one line at a time using editing rules.
Print a sequence of numbers.
Compute or verify SHA-1 checksums of files.
Compute or verify SHA-224 checksums of files.
Compute or verify SHA-256 checksums of files.
Compute or verify SHA-384 checksums of files.
Compute or verify SHA-512 checksums of files.
Find bugs and risky constructs in shell scripts.
Format shell scripts in one consistent style.
Overwrite a file so its contents are hard to recover.
Shuffle lines into a random order, or pick random lines.
Pause for a given time.
Sort lines of text.
Cut a file into pieces.
Log in to another computer, or run a command on it, over an encrypted connection.
Add private keys to the SSH agent, or list the keys it holds.
Hold your SSH keys in memory so you type a passphrase only once.
Install your public key on a server so you can log in with the key.
Create and inspect SSH keys.
Show a fast, informative prompt in any shell.
Show file size, permissions, type and timestamps.
Run a command with changed buffering of its input and output.
Show and change the settings of the terminal.
Print an old-style checksum and block count of files.
Write cached data to disk.
Print the lines of a file in reverse order.
Print the last lines or bytes of files, or follow a growing file.
Create, list and extract archive files.
Copy what comes in to a file and to the screen at the same time.
Check files, strings and numbers, and report with the exit status.
Run a command and stop it if it takes too long.
Show the busiest processes and the load, updating as you watch.
Create empty files or change file timestamps.
Translate, squeeze, or delete characters from standard input.
Show a folder and everything inside it as an indented tree.
Do nothing and succeed.
Set a file to an exact size, shrinking or extending it.
Sort items so that each comes after the items it depends on.
Print the name of the terminal connected to standard input.
Print the name and version of the operating system and the machine.
Restore files made by the old compress tool.
Convert runs of spaces to tabs.
Report or omit repeated adjacent lines.
Remove one file with the plain one-argument form.
List, test and unpack the contents of a .zip archive.
Build or refresh the index that locate searches.
Show how long the system has been running and the load.
Print the names of users who are logged in.
Manage Python projects, packages and virtual environments quickly.
Run a Python tool once, in a temporary environment.
List files in the long format, like ls -l with escaped names.
Edit text files in a terminal, with commands you type.
Count lines, words, and bytes.
Download files from the web, without a browser.
Show who is logged in, and from which terminal.
Print the user name you are running as.
Build and run commands from standard input.
Repeat a line of text forever, until the reader stops.
Print the contents of compressed files to the screen.
Compare compressed files byte by byte.
Show the differences between compressed files.
Open files and folders in the Zed editor from the terminal.
Add the .gz suffix to gzip files that lack it.
Search compressed files for a pattern without unpacking them.
Pack files and folders into a .zip archive.
Page through a compressed file.
View a compressed file one screen at a time, with the simple more pager.
Recompress .Z files from the old compress tool as gzip files.
Jump to folders you use often with a few letters.
Guides and words
- From Keypress to ScreenGuide
Follow one command from your fingers, through the layers of the computer, to the text on your screen.
- The Computer's Body: CPU, Memory, DiskGuide
Meet the three parts that do the work of every command, and see why a computer needs both memory and a disk.
- Firmware, Kernel, Programs: Who Is the Boss?Guide
Follow a computer from the power button to a running system, and learn which layer starts which.
- What an Operating System Really DoesGuide
See the jobs the kernel does for every program, and why a program must ask it before it can open a file or use memory.
- Programs That Are Awake: ProcessesGuide
Learn the difference between a program and a process, how the shell starts a process, and how to list the ones running now.
- Terminal, Shell, Command: Three Things People Mix UpGuide
Tell the terminal, the shell and a command apart, and see how they work together every time you type a line.
- Anatomy of a CommandGuide
Take a command line apart into its name, options and arguments, and see why quoting changes how many arguments there are.
- The Map Your Shell Walks: Files and FoldersGuide
Learn how files and folders are arranged in a tree, how to read a path, and how absolute and relative paths differ.
- Words or Wiring: Text Files and Binary FilesGuide
Learn that every file is a row of bytes, what makes a file text, and why printing a binary file gives you gibberish.
- Three Streams Every Program HasGuide
Learn the three channels that every program starts with, where each one goes by default, and why errors travel on their own channel instead of mixing with results.
- Snapping Commands TogetherGuide
Learn the symbols that send output into files and connect small commands into a pipeline.
- How a Command Says Yes or NoGuide
Learn the number every command hands back when it ends, what zero means, and how to chain commands with and without conditions.
- Why "Command Not Found" HappensGuide
Learn how the shell uses PATH to find a program by name, what environment variables are, and why command not found does not always mean the program is missing.
- Who May Read, Write, RunGuide
Learn the three kinds of permission, the three groups of people they apply to, and how to read and change them.
- A Short History: Unix, BSD, GNU, LinuxGuide
Follow the story from the first Unix to the systems on your computer today, and see why the same tools come in several versions.
- Who's Who: What Each Name Really MeansGuide
Sort Unix, POSIX, BSD, FreeBSD, Darwin, macOS, GNU, Linux and BusyBox into what each one actually is.
- One Command, Many VersionsGuide
See why one command name can stand for several different programs, what a standard does and does not promise, and how to write commands that work everywhere.
- Ubuntu, Debian, Alpine: What Is a Distribution?Guide
Learn what a Linux distribution adds to the kernel, what a package manager does, and why the choices of one distribution decide which version of a command you get.
- Which Tool Do I Have?Guide
Find out which program a command name starts and which implementation it is, using the shell, the version flag, the file itself and the system's own name.
- Needle in a Haystack: Find a Word in Many FilesGuide
Find the lines that contain a word in one file or in a whole folder of files, and choose between grep on its own, grep with a folder, and find with grep.
- Count, Sort, Summarize: Build a Small ReportGuide
Count lines and words, sort them, and build a small report of how often each item appears, using a pipeline of sort and uniq or a single awk program.
- Tidy Up: Rename and Move Files Without Losing AnyGuide
Rename one file, move files into a folder, rename many files with a loop, and avoid overwriting a file by accident, using mv and a shell loop.
- Make a Backup You Can TrustGuide
Make a backup of a folder by copying it, or by packing it into one archive file with tar, then restore it somewhere else and check that it matches the original.
- Ask a Web ServiceGuide
Ask a web service a question with curl, read the answer and its status code, and tell a failed request from a successful one. Practice on local files first, then on the public GitHub API.
- Absolute pathWord
A path that starts with /, so it names a file or folder from the top of the tree, wherever you are.
- ArchiveWord
One file that holds many files and folders, with their names, so they can be stored or sent together.
- ArgumentWord
A word you type after a command's name, such as a file name or an option.
- ASCIIWord
An old, simple encoding that gives each of 128 characters a number.
- BackupWord
A second copy of your files, kept somewhere else, so you can get them back if the first copy is lost or damaged.
- Binary fileWord
A file whose bytes are not meant to be read as characters, such as a photo, a program or a compressed archive.
- BootWord
To start a computer: the steps from pressing the power button until the operating system is running.
- Boot loaderWord
A small program that finds the kernel on the disk, loads it into memory and starts it.
- BSDWord
Short for Berkeley Software Distribution: the versions of Unix released by the University of California at Berkeley, from 3BSD in 1980 to 4.4BSD in 1993, and the family of systems derived from them.
- BusyBoxWord
One small program that holds tiny versions of many common Unix tools.
- ByteWord
A number from 0 to 255.
- CommandWord
A short instruction you type into the shell.
- Command lineWord
The line you type into the shell: a command name followed by its options and arguments.
- CPUWord
The part of the computer that carries out instructions, one tiny step at a time, very fast.
- Current directoryWord
The folder the shell is working in.
- DarwinWord
The open core of macOS, according to Apple: its kernel and the BSD command-line environment, with technology derived from FreeBSD, Mach and NeXT.
- DirectoryWord
A folder: a place that holds files and other directories.
- DiskWord
Long-term storage that keeps your files when the computer is turned off, such as a hard disk or a solid-state drive (SSD).
- DistributionWord
A complete Linux system: the Linux kernel plus the commands, libraries, installer and package manager that one group chose and put together.
- DriverWord
The part of the kernel that knows how to work one kind of hardware, such as a disk or a keyboard.
- EncodingWord
The rule that says which number stands for which character.
- Environment variableWord
A named piece of text that a program carries and hands to the programs it starts, such as PATH or HOME.
- Executable fileWord
A file that has the execute permission turned on, so the system will run it as a program.
- Exit statusWord
The number a command hands back to the shell when it ends.
- FirmwareWord
Small built-in software stored on the hardware itself.
- FlagWord
Another word for an option.
- FreeBSDWord
A complete Unix-like operating system based on the 4.4BSD-Lite release from the University of California at Berkeley.
- GNUWord
A project announced by Richard Stallman in 1983, with work starting in January 1984, to write a complete free system compatible with Unix.
- HardwareWord
The physical parts of a computer that you can touch: the processor, the memory, the disk, the keyboard and the screen.
- Home directoryWord
Your personal folder.
- ImplementationWord
One particular program that does the job a command name stands for.
- KernelWord
The core of the operating system.
- LinuxWord
A Unix-like kernel written from scratch by Linus Torvalds, first developed in 1991 and made free software in 1992.
- macOSWord
Apple's operating system for the Mac.
- MemoryWord
Fast, temporary storage for the programs and data the computer is working on right now.
- Operating systemWord
The software that manages the computer for all other programs.
- OptionWord
A word that starts with a dash, such as -l, and changes how a command works.
- PackageWord
A bundle of the files needed for a set of related commands or features, which a package manager can install.
- Package managerWord
A tool that finds a package, fetches it, checks the other packages it needs and puts its files in place.
- Parent processWord
The process that started another one.
- PathWord
The way to reach a file or folder, written as names separated by /.
- PATH variableWord
The environment variable that lists the folders, separated by colons, where the shell looks for a program by name.
- PermissionWord
A setting that says whether the owner, the group or everyone else may read, write or execute a file.
- PIDWord
Short for process ID: the number the kernel gives each running process so it can be told apart from the others.
- PipeWord
A one-way channel that connects the standard output of one command to the standard input of the next.
- PipelineWord
Commands joined with pipes, so that the output of each one becomes the input of the next.
- POSIXWord
A standard that describes what a Unix-like system should provide, including the commands and their options.
- ProcessWord
A program that is running.
- ProgramWord
A set of instructions the computer can run to do one job, such as listing files.
- PromptWord
The text the shell prints to show that it is ready for your next command.
- RAMWord
Short for random-access memory.
- RedirectionWord
Sending one of a program's streams to or from a file instead of the keyboard and screen, for example with > or <.
- Relative pathWord
A path that does not start with /.
- Root directoryWord
The top folder, written /.
- ShellWord
A program that reads the commands you type and starts the programs they name.
- SoftwareWord
Instructions, stored as files, that tell a computer what to do.
- stderrWord
Short for standard error: the stream a program writes its error messages and warnings to.
- stdinWord
Short for standard input: the stream a program reads from.
- stdoutWord
Short for standard output: the stream a program writes its normal results to.
- StreamWord
A flow of data, one piece after another.
- SuperuserWord
An account that may read and write any file and skips most permission checks.
- Symbolic linkWord
A file that points to another file or program by name.
- System callWord
A request a program makes to the kernel, such as asking it to open a file.
- System VWord
The version of Unix sold by AT&T, first released in 1983.
- TerminalWord
A window or screen that shows text and passes your key presses to the shell.
- Text fileWord
A file whose bytes stand for characters, arranged in lines.
- UnixWord
The operating system from AT&T Bell Labs, whose Version 7 was released in 1979, and the family of systems descended from it.
- Unix-likeWord
Behaving like Unix without being a direct descendant.
- UTF-8Word
The common way to write text as bytes today.
- VariableWord
A name that holds a piece of text, such as PATH.
- VolatileWord
Describes memory that loses its contents when the power goes off.
More words match. See the full glossary.
No matching commands, guides or words yet. Try a shorter query or choose all implementations.