Redirecting standard input and output

Unix considers any device attached to the system to be a file. And that includes your terminal!

By default, a command treats your terminal as the standard input file from which to read in information. Your terminal is also treated as the standard output file to which information is sent from the command.

This action can be changed by redirecting standard input and standard output from and to any other file.


[Home] [Search] [Index] This site maintained by webmaster@cs.auckland.ac.nz