/dev/null

From LQWiki
Jump to navigation Jump to search

The /dev/null device file is the operating systems dustbin on output. Anything that is sent or redirected to /dev/null is thrown away and it can not be retreived.

Any attempt to input from this device will produce no data, which in turn is usually interpreted by the standard library functions as an end-of-file.