Skip to content
EntityQ287103· pop 18· linked from 8 articles

is a special file in Unix-like operating systems that provides as many null characters (ASCII NUL, 0x00) as are read from it. One of the typical uses is to provide a character stream for initializing data storage.

Wikidata facts

Instance of
device file
Show 1 more fact
different from
/dev/null
Sources (5)

via Wikidata · CC0

~1 min read

Encyclopedic overview

5 sections
Contents
  • Function
  • History
  • Examples
  • See also
  • References

is a special file in Unix-like operating systems that provides as many null characters (ASCII NUL, 0x00) as are read from it. One of the typical uses is to provide a character stream for initializing data storage.

==Function== Read operations from return as many null characters (0x00) as requested in the read operation.

Excerpted from Wikipedia’s “/dev/zero” article, available under the CC BY-SA 4.0 licence.