Examples of input/output redirection



Last revision August 2, 2004

Table of Contents:

  1. The Unix file system
  2. The directory tree
  3. File ownership and permissions
  4. Files as units
  5. Examining file contents
  6. Other commands
  7. Standard Files and Data Pipes

Redirecting input is not common, because most programs that read from standard input can also take filenames to read as arguments.

Many commands and programs write output to the standard output, which defaults to the terminal. Often, you might want to save that output to a file instead for further study or processing.

<--Previous Overview Next-->