How can we redirect output of command to /dev/null
?
I tried it with:
command > /dev/null
But it didn't work.
How can we redirect output of command to I tried it with:
But it didn't work. |
||||
Your command had redirected standard output to To redirect standard output and standard error to
Note that the order of redirection is important, swapping them to |
|||
|
command 2>&1 > /dev/null
? – YoMismo Oct 8 '15 at 9:57