O'Reilly logo

LPIC-1/CompTIA Linux+ Certification All-in-One Exam Guide (Exams LPIC-1/LX0-101 & LX0-102) by Robb Tracy

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Using Redirection and Piping

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.

Standard bash 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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required