Summary of Redirection/Pipe Commands

In a previous lab, you learned about piping and redirection. The following table is meant as a review.

Symbol Description
> file Redirects standard output to file.
>! file Redirects standard output to file. This will overwrite the contents of a file.
>> file Redirects standard output to file. This will append to the end of a file.
< file Redirects the contents of file to standard input. If a program accepts keyboard input and you use this redirection, all of the input will come instead from file.
command1 | command2 The standard output of command1 is fed as standard input into command2.