I have a command I am running produces a ton of output, I want to silence the output without writing to a file. I have used the following to send all output to a file:
command > out.txt 2>&1
... but again I don't want any file output:
command > /dev/null 2>&1
I have used command > /dev/null
on my CentOS box before, but I can't find a similar thing for windows.
command > /dev/null
on your CentOS.command > /bin/null
on CentOS, you have created a common file file named/bin/null
on your system. You may say 'It worked!', if you want. This file now contains the stdout and stderr output of yourcommand
. Usually, in/bin/
there are only executable files. And usually, only the root user is allowed to create files there. So if that file is there, you did run your command as root user.../bin/null
usually doesn't exist -- and/dev/null
(which I mentioned) usually is used as the 'black whole' where unwanted output should disappear in...