REDIRECTS
VARIATIONS
EXAMPLES

Stream map

Connected Unused at one end the terminal’s input, output and errors a closed descriptora file or device only that stream uses Usage inferred for standard commands

Descriptor details

0 · stdin Standard input1 · stdout Standard output2 · stderr Standard error

Connections and usage

A solid line shows a connection, not observed data flow. A grey dashed line means a connected descriptor is not used by the command. Hollow ports are unused; dotted ports have unknown usage. Closed descriptors are labelled separately.

“May read”, “may write”, and “on error” describe possible use, not guaranteed traffic. “No writes” is a static prediction, not a measured byte count. Commands in a pipeline run concurrently; the foreground shell waits for all of them to finish.

Usage hints cover , including all of GNU coreutils, plus grep, sed, awk, find, curl and other common tools. They read common options and file arguments, and assume no aliases or replacement functions. Anything else, such as an unrecognised option or a script they cannot see, shows as usage unknown.

This is a static map of simple Bash-style pipelines, alone or joined by &&, || and ;. It does not inspect files or expand variables. Background jobs (&), control structures, command substitutions, and here-documents are outside its scope.

Read the Bash redirection guide ↗

45 minutesshell-tricks-ready-encoded-crf-44_aud-18K.webm