Linux › Section B · Basic commands and the directory hierarchy › Topic B.8

Shell input and output: redirection and pipes

Every command reads from one place and writes to another, and the shell lets you choose both. Redirection connects commands to files, and pipes connect commands to each other, so small tools combine into powerful one-line solutions.

In this topic

  • Three standard streams
  • Sending output to a file
  • Redirecting standard error
  • Combining the two streams
  • Worked example: why order matters
  • Reading input from a file
  • Pipes
  • tee: save and see
  • xargs: input into arguments
  • Worked example: a log summary
  • Common mistakes to avoid
  • Key takeaways

This topic is part of Wuanberri Pro. Checking your access…

← Previous topicNext topic →