Using pipes, streams and redirects (4) Flashcards
Objective 103.4 Weight 4
Which of the following is a symbol or symbol combination used for STDIN redirection?
- |
- >
- > >
- <
- 2>
- 2»
- |
AND - <
The < symbol is used for STDIN redirection, such as with the tr command, and the pipe symbol is also used for STDIN redirection, when redirecting STDOUT from a command as STDIN to the next command in the pipeline.
Which of the following is a symbol or symbol combination used for STDOUT redirection?
Correct selection
1. |
2. >ÿ
3.»_space;ÿ
4. <ÿ
4. 2>
6. 2»
- > ÿ
AND - > > ÿ
The > symbol is used for STDOUT redirection when creating or overwriting the target of the redirection (such as a file), the»_space; symbol is used for STDOUT redirection when appending the target of the redirection, and the pipe symbol is also used for STDOUT redirection, when redirecting STDOUT from a command as STDIN to the next command in the pipeline.
Which of the following is a symbol or symbol combination used for STDERR redirection?
- |
- >
- > >
- <
- 2>
- 2»
- 2>
AND - 2»
The 2> symbol is used for STDERR redirection when creating or overwriting the target of the redirection (such as a file), and the 2» symbol is used for STDERR redirection when appending the target of the redirection.