/dev/null - send unwanted output of program - Linux Views : 277
Tagged in : Linux
0 0
Send mail
/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.
By Nirmala, On - 2010-01-28



    Login to add Comments .