LPIC-1 Exam 101 v5 (Linux Administrator) — Question 103
In Bash, inserting 1>&2 after a command redirects...
Answer options
- A. ...standard error to standard input.
- B. ...standard output to standard error.
- C. ...standard input to standard error.
- D. ...standard error to standard output.
- E. ...standard output to standard input.
Correct answer: B
Explanation
The correct answer is B because the '1' represents standard output, and the '2' denotes standard error; thus, 1>&2 redirects standard output to standard error. The other options incorrectly describe the relationships between standard input, output, and error.