what is /dev/null

Written By smart| 27 July 2009| No Comment

/dev/null or the null device is a special file that discards all data written to it

The null device is typically used for disposing of unwanted output streams of a process. It’s equivalent to “don’t bother about the results “.

ex:

ls -l *.txt > name.txt 2>/dev/null

Related Posts with Thumbnails

Share With Others

Leave your response!




Comment moderation is enabled. Your comment may take some time to appear.