Using pipes, streams and redirects (4) Flashcards

Objective 103.4 Weight 4

1
Q

Which of the following is a symbol or symbol combination used for STDIN redirection?

  1. |
  2. >
  3. > >
  4. <
  5. 2>
A
  1. |
    AND
  2. <
    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.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Which of the following is a symbol or symbol combination used for STDOUT redirection?
Correct selection
1. |
2. >ÿ
3.&raquo_space;ÿ
4. <ÿ
4. 2>
6. 2»

A
  1. > ÿ
    AND
  2. > > ÿ

The > symbol is used for STDOUT redirection when creating or overwriting the target of the redirection (such as a file), the&raquo_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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Which of the following is a symbol or symbol combination used for STDERR redirection?

  1. |
  2. >
  3. > >
  4. <
  5. 2>
A
  1. 2>
    AND

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly