/dev/null - send unwanted output of program

by Nirmala 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.

Tagged in:

1007
like
0
dislike
0
mail
flag

You must LOGIN to add comments