null(4)

null4

The null device

Overview

The null device accepts and reads data as any ordinary (and willing) file - but throws it away. The length of the null device is always zero.

Files

/dev/null

Releases

Unchanged in 155 releases since Mac OS X 10.0.

  1. 10.0–26.5

History

A null device appeared in Version 7 AT&T UNIX.

From xnu 12377.121.6 in macOS 26.5. Parsed by carta from the page's mdoc source.