Understanding Input/Output Redirection
In the previous chapter, we discussed how to use variables and pipelines in a shell. This time, we’ll look at how to send the text output of a command to somewhere other than the terminal, which is the default output device. We’ll then look at how to make a command bring in text from somewhere other than the keyboard, which is the default input device. Finally, we’ll look at how to send error messages to somewhere other than the terminal.
Topics in this chapter include:
- Understanding
stdout
- Understanding
stdin
- Understanding
stderr
- Understanding
tee
Okay, let’s get started.