Comments on: What does “> /dev/null 2>&1″ mean? http://www.xaprb.com/blog/2006/06/06/what-does-devnull-21-mean/ Stay curious! Thu, 02 May 2013 12:36:53 +0000 hourly 1 http://wordpress.org/?v=3.5.1 By: Xaprb http://www.xaprb.com/blog/2006/06/06/what-does-devnull-21-mean/#comment-20211 Xaprb Fri, 07 Sep 2012 14:04:58 +0000 http://www.xaprb.com/blog/?p=154#comment-20211 That makes sense, but it only redirects STDERR to /dev/null, not STDOUT. So it’s not the same.

]]>
By: gwatsmiles http://www.xaprb.com/blog/2006/06/06/what-does-devnull-21-mean/#comment-20207 gwatsmiles Wed, 05 Sep 2012 04:42:52 +0000 http://www.xaprb.com/blog/?p=154#comment-20207 If I’m going to use “2>/dev/null”, does this make sense? Is this the same as “> /dev/null 2>&1″?

Thanks in advance!

]]>
By: Kathryn http://www.xaprb.com/blog/2006/06/06/what-does-devnull-21-mean/#comment-20092 Kathryn Thu, 21 Jun 2012 01:23:32 +0000 http://www.xaprb.com/blog/?p=154#comment-20092 Thanks for this great explanation. it all makes sense now!

]]>
By: Gaurav Jain http://www.xaprb.com/blog/2006/06/06/what-does-devnull-21-mean/#comment-19840 Gaurav Jain Fri, 20 Jan 2012 03:20:26 +0000 http://www.xaprb.com/blog/?p=154#comment-19840 Just to add here, there also exists the following:

command &>filename

Above redirects STDOUT as well as STDERR of the command to file-name.

]]>
By: LinuxViaMac http://www.xaprb.com/blog/2006/06/06/what-does-devnull-21-mean/#comment-19653 LinuxViaMac Mon, 26 Sep 2011 00:01:05 +0000 http://www.xaprb.com/blog/?p=154#comment-19653 Yay! Now I can surpress output in a nonconformist way that shows off my secret knowledge:

echo blah >&2> /dev/null

]]>