Skip to content

Redirection, Compare Text and Binary File

Use Input/Output Redirection, Compare Text Files, Compare Binary Files

  • Redirection is used to direct the output of a command or task into a file, or direct the contents of a file to a command
  • > – Redirect output to a file, overwriting the contents if any exist
  • >> – Redirect output to a file, appending to the contents if any exist
  • | – “Pipe” the output to another command and/or file