nerdexam
LPI

101-400 · Question #7

Which of the following statements is correct regarding the command foo 1> bar?

The correct answer is B. The stdout from the command foo overwrites the file bar. See the full explanation below for the reasoning.

Question

Which of the following statements is correct regarding the command foo 1> bar?

Options

  • AThe stdout from the command foo is appended to the file bar.
  • BThe stdout from the command foo overwrites the file bar.
  • CThe command foo receives its stdin from the file bar.
  • DThe command foo receives its stdin from the stdout of the command bar.
  • EThe stderr from the command foo is saved to the file bar.

How the community answered

(36 responses)
  • A
    6% (2)
  • B
    81% (29)
  • C
    3% (1)
  • E
    11% (4)

Community Discussion

No community discussion yet for this question.

Full 101-400 Practice