The bash shell (as well as most other Linux shells) is extremely powerful and flexible. One of the features that make it this way is its ability to manipulate command input and output. In this part of this chapter, we’re going to explore how to do this. Specifically, we’re going to cover the following:
• Standard bash file descriptors
• Redirecting output and input for shell commands
• Piping information
Let’s begin by reviewing bash shell file descriptors.
Before you can learn how to redirect or pipe outputs from a bash command, you must first understand bash shell file descriptors. There are three file descriptors that are available for every command you enter at a shell prompt. These ...