Yes that is the correct construct, though I prefer to script it as:
"command" > /dev/null 2>&1
because (to me) it is more 'readable'. I 'see' that as "send the output of 'command' to /dev/null and send the 'error messages' (STDERR) to the same place".
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.