Redirection Commands
Descriptors
0 or
/dev/stdin- standard input1 or
/dev/stdout- standard output2 or
/dev/stderr- standard error
Redirection
Command |
Description |
|---|---|
|
Output of cmd is redirected to file |
|
Program cmd reads its input from file |
|
Output of cmd is appended to file |
|
Output from stream with descriptor n redirected to file |
|
Output from stream with descriptor n appended to file |
|
Merges output from stream n with stream m |
|
Discards output from stream n |
|
Merges input from stream n with stream m |
|
Standard input comes from here through next tag at the start of line |
|
Takes output from one program, or process, and sends it to another |