What does >/ dev null 2 >& 1 mean?

What does >/ dev null 2 >& 1 mean?
Answer
2>&1 redirects
standard error to standard output. &1 indicates file descriptor (standard output), otherwise (if you use just 1 ) you will redirect standard error to a file named 1 . [any command] >>/dev/null 2>&1 redirects all standard error to standard output, and writes all of that to /dev/null .
 

Tìm kiếm

Back
Top