Commands, Streams, and Pipes
Use this page when you understand single commands but still get lost when composing them.
Core Ideas
- commands can be executables, builtins, functions, or aliases
- programs read from stdin and write to stdout and stderr
- pipes connect stdout of one command to stdin of the next
- redirection saves or reroutes streams to files