next up previous contents
Next: vi Up: Piping and Redirection Previous: Pipelines

Redirection

In Unix, there are 3 special files: standard input, standard output and standard error. The first one is a source of input data stream, while the last two are output streams. They are normally your termainl. When you use cat to display a file, the output is sent to the standard output, so that you can see it on the terminal. You are allowed to redirect them to different files:



System Administrator
Thu Jul 26 11:24:05 HKT 2001