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

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

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

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



Leave a Reply 1

Your email address will not be published. Required fields are marked *


ravi teja

ravi teja

c) standard output to standard error