nerdexam
CompTIA

LX0-101 · Question #287

In bash, inserting 1>&2 after a command redirects

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

Question

In bash, inserting 1>&2 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

(47 responses)
  • B
    4% (2)
  • C
    85% (40)
  • D
    9% (4)
  • E
    2% (1)

Community Discussion

No community discussion yet for this question.

Full LX0-101 Practice