Dev-null

From Citizendium
Revision as of 00:03, 5 September 2008 by imported>Sandy Harris (adjust some wording)
Jump to navigation Jump to search
This article is a stub and thus not approved.
Main Article
Discussion
Related Articles  [?]
Bibliography  [?]
External Links  [?]
Citable Version  [?]
 
This editable Main Article is under development and subject to a disclaimer.

Template:Dablink

In Unix (and Unix-like) operating systems, /dev/null is a character device file which discards all data written to it, and returns nothing when read from, except the End of File (EOF) character. Because it is located in the /dev, or device, directory, it is commonly known as the 'null device.' Synonyms include the 'black hole' and the 'bit bucket.'[1] The null device is part of the standard Unix directory structure

It is commonly used to not show the output of programs (when they are run in scripts),[1] and has oft been used in jokes and puns. For instance, the original BSD Daemon, drawn by Phil Foglio, featured a demon standing near a 'bit bucket.' Another usage would be on an Internet forum or IRC, when someone says something to the effect "Flames will be redirected to /dev/null."

References