User Tools

Site Tools


Sidebar

lx103:exploring_linux_command-line_tools

Redirection Operators

  • > Creates a new file containing standard output. If specified file exists, it's overwritten. No File descriptor needed.
  • » Appends standard output to existing file. If specified file doesn't exist, it's created. No descriptor necessary.
  • 2> Creates a new file containing standard error. If the specified file exists it's overwritten. File descriptor necessary.
  • 2» Appends standard error to existing file. Creates if doesn't exist. File descriptor necessary.
  • &> Creates a new file containing both standard output and standard error. If file exists, it's overwritten. No file descriptor necessary.
  • < Sends contents of specified file to be used as STDIN. No file descriptor necessary.
  • « Accepts text on the following lines as STDIN. No file descriptor necessary.
  • <> Causes specified file to be used for both STDIN and STDOUT. No file descriptor necessary.
lx103/exploring_linux_command-line_tools.txt · Last modified: 2015/12/28 18:17 by abrer