6. Redirection Commands¶
6.1. Descriptors¶
0 or
/dev/stdin
- standard input1 or
/dev/stdout
- standard output2 or
/dev/stderr
- standard error
6.2. 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 |
6.3. References¶
- 2
Retrieved: 2021-11-10. URL: https://www.tutorialspoint.com/unix/unix-io-redirections.htm