/dev/null - send unwanted output of program
by Nirmala[ Edit ] 2010-01-28 14:19:59
/dev/null - Use to send unwanted output of program.
This is special Linux file which is used to send any unwanted output from program/command.
Syntax:
command > /dev/null
Example:
$ ls > /dev/null
Output of above command is not shown on screen its send to this special file. The /dev directory contains other device files. The files in this directory mostly represent peripheral devices such disks like floppy disk, sound card, line printers etc.