Why do we use 2 >> redirection?

thanhthao

New member
Why do we use 2 >> redirection?
Answer
You can use &[FILE_DESCRIPTOR] to reference a file descriptor value; Using 2>&1
will redirect stderr to whatever value is set to stdout (and 1>&2 will do the opposite).
 

Tìm kiếm

Back
Top