Redirection
- > filename Standard Out writes to file.
- Creates the file if it does not exist.
- Overwrites the file if it does exist.
- >> filename Standard Out appends to the end of the file.
- Creates the file if it does not exist.
- < filename Input (Standard In) from file.
- | command direct previous command's output to following command as an input.
- An important feature that allows a series of simple commands to do complex tasks.
- tee filename Standard Out copied to file.
- tee -a filename Standard Out appended to file and do not overwrite the file.
Standard Error
- 2> file Redirects Standard Error to file.
- 2>> file Appends Standard Error to file.