nerdexam
LPI

101-400 · Question #418

In Bash, inserting 2>&1 after a command redirects:

The correct answer is D. standard error to standard output. See the full explanation below for the reasoning.

Question

In Bash, inserting 2>&1 after a command redirects:

Options

  • Astandard error to standard input.
  • Bstandard input to standard error.
  • Cstandard output to standard error.
  • Dstandard error to standard output.
  • Estandard output to standard input.

How the community answered

(32 responses)
  • A
    3% (1)
  • B
    3% (1)
  • C
    13% (4)
  • D
    75% (24)
  • E
    6% (2)

Community Discussion

No community discussion yet for this question.

Full 101-400 Practice