CompTIA Linux+ Powered by LPI (LX0-103) — Question 5
In Bash, inserting 1>&2 after a command redirects
Answer options
- A. standard error to standard input.
- B. standard input to standard error.
- C. standard output to standard error.
- D. standard error to standard output.
- E. standard output to standard input.
Correct answer: C
Explanation
The correct answer is C because the notation 1>&2 specifically means that the standard output (file descriptor 1) is being redirected to standard error (file descriptor 2). Options A, B, D, and E incorrectly describe the direction of the redirection or mix up the file descriptors.