Linux Command Line · 14-day planAll days
Day 6 of 14 30 minPipesRedirectionstderr
The real power of the command line is combining small tools. Learn the three standard streams, connect commands with pipes, redirect output and errors into files, throw away noise with /dev/null, save and show output at once with tee, and turn lists into arguments with xargs.
By the end of today you can
- Explain stdin, stdout and stderr
- Connect commands with the | pipe
- Redirect output and errors with >, >>, 2> and 2>&1
- Discard output with /dev/null and save it while viewing it with tee
- Pass a list of items to a command with xargs
What's inside
- 7 sections
- 3 diagrams and mind maps
- 7 code examples you can run
- 5-question quiz
- 1The three streams
- 2Pipes: the output of one is the input of the next
- 3Redirecting output
- 4Throwing output away: /dev/null
- 5Save and see: tee
- 6Lists into arguments: xargs
- 7Chaining commands: ; && ||
Sign in free to read this lesson
Get the full lesson with diagrams, runnable code and the quiz. Your progress is saved across devices.
Sign in free