How do I send stderr to stdout?

Nguyễn Pháp

New member
How do I send stderr to stdout?
Answer
When saving the program’s output to a file, it is quite common to redirect stderr to stdout so that you can have everything in a single file. > file redirect the
stdout to file , and 2>&1 redirect the stderr to the current location of stdout .
 

Tìm kiếm

Back
Top