Misplaced Pages

Null device: Difference between revisions

Article snapshot taken from Wikipedia with creative commons attribution-sharealike license. Give it a read and then ask your questions in the chat. We can research this topic together.
Browse history interactively← Previous editNext edit →Content deleted Content addedVisualWikitext
Revision as of 15:06, 22 February 2016 editMindmatrix (talk | contribs)Autopatrolled, Administrators187,432 editsm Reverted edits by 119.63.142.51 (talk) to last version by SJK← Previous edit Revision as of 14:33, 1 April 2016 edit undoCyberbot II (talk | contribs)Bots, Pending changes reviewers469,520 edits Rescuing 1 sources. #IABotNext edit →
Line 12: Line 12:


== References in computer culture == == References in computer culture ==
This entity is a common inspiration for technical ] expressions and ]s by Unix programmers, e.g. "please send complaints to <code>/dev/null</code>", "my mail got archived in <code>/dev/null</code>", and "redirect to <code>/dev/null</code>"—being jocular ways of saying, respectively: "don't bother sending complaints", "my mail was deleted", and "go away". The ] commonly uses the phrase "send donations to <code>/dev/null</code>", meaning they do not accept donations. The fictitious person name "Dave (or Devin) Null" is sometimes similarly used (e.g., "send complaints to Dave Null").{{citation needed|date=September 2011}} In 1996, ] was an animated ] character created by ] for MSNBC's computer and technology TV series, '']''. A 2002 advertisement for the Titanium ] reads '' Sends other UNIX boxes to /dev/null.'' <ref name="macnn">{{cite web|url=https://web.archive.org/web/20130326010431/http://www4.macnn.com/macnn/articles/unixad.jpg|title=Image: unixad.jpg, (1094 × 720 px)|publisher=web.archive.org|accessdate=2015-09-02}}</ref> This entity is a common inspiration for technical ] expressions and ]s by Unix programmers, e.g. "please send complaints to <code>/dev/null</code>", "my mail got archived in <code>/dev/null</code>", and "redirect to <code>/dev/null</code>"—being jocular ways of saying, respectively: "don't bother sending complaints", "my mail was deleted", and "go away". The ] commonly uses the phrase "send donations to <code>/dev/null</code>", meaning they do not accept donations. The fictitious person name "Dave (or Devin) Null" is sometimes similarly used (e.g., "send complaints to Dave Null").{{citation needed|date=September 2011}} In 1996, ] was an animated ] character created by ] for MSNBC's computer and technology TV series, '']''. A 2002 advertisement for the Titanium ] reads '' Sends other UNIX boxes to /dev/null.'' <ref name="macnn">{{cite web|url=http://www4.macnn.com/macnn/articles/unixad.jpg |title=Image: unixad.jpg, (1094 × 720 px) |publisher=web.archive.org |accessdate=2015-09-02 |deadurl=yes |archiveurl=https://web.archive.org/web/20130326010431/http://www4.macnn.com/macnn/articles/unixad.jpg |archivedate=March 26, 2013 }}</ref>


The null device is also a favorite subject of technical jokes,<ref>{{cite web|url=http://docs.freebsd.org/doc/6.1-RELEASE/usr/share/doc/faq/funnies.html#DEV-NULL |title=The FreeBSD Funnies |publisher=Freebsd.org |date= |accessdate=2012-11-28}}</ref> such as warning users that the system's <code>/dev/null</code> is already 98% full. The ], 1995 issue of the ] magazine '']'' reported on an enhanced <code>/dev/null</code> ] that would ] of the incoming data by converting it to a flicker on an internal glowing ]. The null device is also a favorite subject of technical jokes,<ref>{{cite web|url=http://docs.freebsd.org/doc/6.1-RELEASE/usr/share/doc/faq/funnies.html#DEV-NULL |title=The FreeBSD Funnies |publisher=Freebsd.org |date= |accessdate=2012-11-28}}</ref> such as warning users that the system's <code>/dev/null</code> is already 98% full. The ], 1995 issue of the ] magazine '']'' reported on an enhanced <code>/dev/null</code> ] that would ] of the incoming data by converting it to a flicker on an internal glowing ].

Revision as of 14:33, 1 April 2016

For the electropop band, see Null Device.
This article needs additional citations for verification. Please help improve this article by adding citations to reliable sources. Unsourced material may be challenged and removed.
Find sources: "Null device" – news · newspapers · books · scholar · JSTOR (March 2014) (Learn how and when to remove this message)

Template:Special device files In some operating systems, the null device is a device file that discards all data written to it but reports that the write operation succeeded. This device is called /dev/null on Unix or Unix-like systems, NUL: or NUL on DOS and CP/M, \Device\Null on Windows NT, nul on newer Windows systems, NIL: on Amiga operating systems, and the NL: on OpenVMS. In Windows Powershell, the equivalent is $null. It provides no data to any process that reads from it, yielding EOF immediately. In IBM DOS/360, OS/360 (MFT, MVT), OS/390 and z/OS operating systems, such files would be assigned in JCL to DD DUMMY.

In programmer jargon, especially Unix jargon, it may also be called the bit bucket or black hole.

Usage

The null device is typically used for disposing of unwanted output streams of a process, or as a convenient empty file for input streams. This is usually done by redirection.

The /dev/null device is a special file, not a directory, so one cannot move a whole file or directory into it with the Unix mv command. The rm command is the proper way to delete files in Unix.

References in computer culture

This entity is a common inspiration for technical jargon expressions and metaphors by Unix programmers, e.g. "please send complaints to /dev/null", "my mail got archived in /dev/null", and "redirect to /dev/null"—being jocular ways of saying, respectively: "don't bother sending complaints", "my mail was deleted", and "go away". The iPhone Dev Team commonly uses the phrase "send donations to /dev/null", meaning they do not accept donations. The fictitious person name "Dave (or Devin) Null" is sometimes similarly used (e.g., "send complaints to Dave Null"). In 1996, Dev Null was an animated virtual reality character created by Leo Laporte for MSNBC's computer and technology TV series, The Site. A 2002 advertisement for the Titanium PowerBook G4 reads Sends other UNIX boxes to /dev/null.

The null device is also a favorite subject of technical jokes, such as warning users that the system's /dev/null is already 98% full. The April Fool's, 1995 issue of the German magazine c't reported on an enhanced /dev/null chip that would efficiently dispose of the incoming data by converting it to a flicker on an internal glowing LED.

See also

References

  1. "Single Unix Specification Section 10.1: Directory Structure and Files". The Open Group. Retrieved 2012-11-29.
  2. "bit bucket". Jargon File. Retrieved 2013-12-27.
  3. "Image: unixad.jpg, (1094 × 720 px)". web.archive.org. Archived from the original on March 26, 2013. Retrieved 2015-09-02. {{cite web}}: Unknown parameter |deadurl= ignored (|url-status= suggested) (help)
  4. "The FreeBSD Funnies". Freebsd.org. Retrieved 2012-11-28.
Nulls in computing
Categories: