Glossary

Pipe (|)

Connects one program's output to the next one's input.

A pipe wires stdout of one process to stdin of the next through a kernel buffer. Both processes run at the same time and data flows as it is produced — nothing is written to disk.

This is the central idea of Unix: small specialized tools composed into pipelines that do what none could alone. Read them left to right as assembly lines: producers (cat, find, ps), filters (grep, sed, awk, sort), consumers (head, wc, tee).

See it in practice

$ ps aux | grep nginx | wc -l

Three processes running at once: one produces, one filters, one counts. No temporary file is ever created.

Where you'll meet it

grep

Find lines matching a pattern in files or piped input — the workhorse of text search.

awk

Pull columns out of any output, filter rows, and compute sums — the shell's spreadsheet.

Pipes & redirection

In-depth guide

stdin (standard input)

Stream 0 — where a program reads its input from.

Learn these concepts by typing them: the interactive course builds them up lesson by lesson in a real simulated shell.