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/nullon your CentOS. – Kurt Pfeifle Aug 02 '10 at 20:43command > /bin/nullon CentOS, you have created a common file file named/bin/nullon 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/nullusually doesn't exist -- and/dev/null(which I mentioned) usually is used as the 'black whole' where unwanted output should disappear in... – Kurt Pfeifle Aug 11 '10 at 23:13