nerdexam
LPI

101-500 · Question #418

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

The correct answer is D. standard error to standard output. You've hit your Sonnet limit · resets Jun 8, 9am (UTC)

Shells and Shell Scripting

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

(47 responses)
  • A
    2% (1)
  • D
    94% (44)
  • E
    4% (2)

Explanation

You've hit your Sonnet limit · resets Jun 8, 9am (UTC)

Topics

#Bash redirection#File descriptors#Standard streams#I/O redirection

Community Discussion

No community discussion yet for this question.

Full 101-500 Practice