Redirection symbol

From Linux Shell Scripting Tutorial - A Beginner's handbook
Jump to navigation Jump to search

The following are redirection symbols used for the file input and output:

  1. < filename : Read standard input from file.
  2. > filename : Sends standard output to file.
  3. 2> filename : Sends standard error to file.
  4. >> filename : Appends standard output to file.