1NULL(4)                    Linux Programmer's Manual                   NULL(4)
2
3
4

NAME

6       null, zero - data sink
7

DESCRIPTION

9       Data written on a null or zero special file is discarded.
10
11       Reads  from  the  null  special file always return end of file, whereas
12       reads from zero always return \0 characters.
13
14       null and zero are typically created by:
15
16              mknod -m 666 /dev/null c 1 3
17              mknod -m 666 /dev/zero c 1 5
18              chown root:root /dev/null /dev/zero
19
20

NOTES

22       If these devices are not writable and readable for all users, many pro‐
23       grams will act strangely.
24

FILES

26       /dev/null
27       /dev/zero
28

SEE ALSO

30       chown(1), mknod(1), full(4)
31
32
33
34Linux                             1992-11-21                           NULL(4)
Impressum