Title: Redirection
Course: CIS 121: Linux/UNIX I: Fundamentals ~ For IGNITE Review > Section: Learning Modules

Redirection

One of the powers of the Unix command line is the use of redirection and pipes.

The shell (and almost every other Linux command):

- takes input from stdin (stream 0) and
- sends output to stdout (stream 1) and
- error messages to stderr (stream 2) .

The keyboard often serves as stdin, stdout and stderr that go to the display. The shell allows you to redirect these streams.

(Cobbaut, pp. 114 - 115)