next up previous contents index
Next: Running in the Background Up: Command Line Options Previous: Arguments   Contents   Index

Redirecting input and output

Redirection of input and output is very important to system administration. Let's say that you want a list of every file on your computer, but you want to store that information in another file. You can redirect the output with the greater than symbol. Type in the following command:

bash$ find / -print > all.files

This will generate a files called all.files that will contain a line for each file that gives the complete path name of the file. You can also redirect input in much the same way. Input is redirected with the less than symbol.


Joseph Colton 2002-09-24