Stream Redirection and Piping
\#linux
Stream Flow
Stream
# | Stream Name | Stream Full Name | Description |
|---|---|---|---|
|
| Standard Input | Data input into the program |
|
| Standard Output | Data output from the program |
|
| Standard Error | Error messages (Default is the terminal) |
STDIN, STDOUT and STDERR Redirect Operator
Operator | Description | Example |
|---|---|---|
| Redirect |
|
--- | ||
| Redirect |
|
| Redirect |
|
| Take the |
|
--- | ||
| Redirect |
|
| Redirect |
|
| Take the |
|
--- | ||
| Redirect |
|
| Redirect |
|
Other Operator
Operator | Name | Description | Example |
|---|---|---|---|
| Sequential Lists | Run two command in one line |
|
| Background Lists | Run as background |
|
\| | Command Line Pipes | Take the |
|
| AND Lists | Only LHS command run successfully, RHS will run |
|
\|\| | OR Lists | Only LHS command run unsuccessfully, RHS will run |
|
Remark:
In the context of the bash shell, a list is series of commands separated by one or more of these operators