PrepAway - Latest Free Exam Questions & Answers

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

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

PrepAway - Latest Free Exam Questions & Answers

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

Explanation/Reference:
A) 2>&1
B) does not make sense
D) 2>&1
E) use | (pipe) to redirect stdout to stdin

One Comment on “In Bash, inserting “1>&2” after a command redirects


Leave a Reply