/dev/null

/dev/null

In Unix-like operating systems, /dev/null or the null device is a special file that discards all data written to it (but reports that the write operation succeeded) and provides no data to any process that reads from it (yielding EOF immediately).[1]

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

Contents

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.

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

This concept is roughly equivalent to the NUL: or just NUL device of CP/M, DOS and Windows, the \Device\Null or NUL of Windows NT and its successors, the NIL: of Amiga operating systems, and the NL: of OpenVMS. In Windows Powershell, the equivalent is $null.

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".[3] 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").[citation needed]

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


Wikimedia Foundation. 2010.

Игры ⚽ Поможем написать курсовую

Look at other dictionaries:

  • /dev/null — (englisch null: dt. „nichts“) ist der Name einer speziellen virtuellen Gerätedatei, dem Nulldevice, auf UNIX und Unix ähnlichen Betriebssystemen, die jegliche Daten, die dorthin geschrieben werden, verwirft. Unter DOS und… …   Deutsch Wikipedia

  • Dev/null — /dev/null ist der POSIX genormte Name einer speziellen virtuellen Gerätedatei auf UNIX und Unix ähnlichen Betriebssystemen. Details Das Gerät /dev/null dient als „Ausguss“ im Datenstrom. Alle Daten, die dorthin geschrieben werden, werden… …   Deutsch Wikipedia

  • /dev/null — est un fichier spécial des systèmes d exploitation Unix. Ce pseudo périphérique (device, en anglais) sert à rediriger un contenu dont on n a pas besoin, et qui ne doit pas être sauvegardé ni affiché à l écran. Toute information envoyée vers ce… …   Wikipédia en Français

  • /dev/null — Файл /dev/null. Тип: символьное (c) ОС major minor Solaris 13 2 FreeBSD 1 3 /dev/null  специальный файл в системах класса EOF). В Создание Псевдоустройство /dev/null считается …   Википедия

  • Dev Null — was an animated virtual reality character created in 1996 by Leo Laporte for MSNBC s computer and technology TV series, The Site. Espresso barista Dev talked with host Soledad O Brien each weeknight in a five minute segment. Laporte was awarded a …   Wikipedia

  • /dev/null — noun a) A device file, present in Unix and Unix like operating systems, that discards all data written to it and yields no input. Its possible to suppress the compilers warnings by redirecting standard error to /dev/null. b) Nowhere; often… …   Wiktionary

  • Null Dave — /dev/null Sur les systèmes de type Unix, il existe un pseudo périphérique (device, en anglais) spécial vers lequel on peut rediriger un contenu qui ne doit pas être sauvegardé ni affiché à l écran. Ce périphérique est appelé null et il est situé… …   Wikipédia en Français

  • Null —  Pour le musicien japonais, voir Kazuyuki K. Null. NULL est un mot clef présent dans de nombreux langages informatiques, et qui désigne l état d un pointeur qui n a pas de cible ou d une variable qui n a pas de valeur. La notion de valeur ou …   Wikipédia en Français

  • /dev — (от англ. devices  устройства)  директория в системах типа UNIX, содержащая так называемые специальные файлы  интерфейсы работы с драйверами ядра. Как правило (хотя и не всегда), /dev является обычной директорией в… …   Википедия

  • Null (computer programming) — Null has several meanings in computer programming.;Null pointer or null reference * Null is a special pointer value (or other kind of object reference) used to signify that a pointer intentionally does not point to (or refer to) an object. Such a …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”