1 .\" Copyright (c) 1993 Michael Haardt (michael@moria.de),
2 .\" Fri Apr 2 11:32:09 MET DST 1993
4 .\" This is free documentation; you can redistribute it and/or
5 .\" modify it under the terms of the GNU General Public License as
6 .\" published by the Free Software Foundation; either version 2 of
7 .\" the License, or (at your option) any later version.
9 .\" The GNU General Public License's references to "object code"
10 .\" and "executables" are to be interpreted as the output of any
11 .\" document formatting or typesetting system, including
12 .\" intermediate and printed output.
14 .\" This manual is distributed in the hope that it will be useful,
15 .\" but WITHOUT ANY WARRANTY; without even the implied warranty of
16 .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 .\" GNU General Public License for more details.
19 .\" You should have received a copy of the GNU General Public
20 .\" License along with this manual; if not, see
21 .\" <http://www.gnu.org/licenses/>.
23 .\" Modified Sat Jul 24 17:00:12 1993 by Rik Faith (faith@cs.unc.edu)
24 .TH NULL 4 2009-02-23 "Linux" "Linux Programmer's Manual"
26 null, zero \- data sink
28 Data written to a \fBnull\fP or \fBzero\fP special file is discarded.
30 Reads from the \fBnull\fP special file always return end of file (i.e.,
33 reads from \fBzero\fP always return bytes containing zero (\e0 characters).
35 \fBnull\fP and \fBzero\fP are typically created by:
38 mknod \-m 666 /dev/null c 1 3
40 mknod \-m 666 /dev/zero c 1 5
42 chown root:root /dev/null /dev/zero
49 If these devices are not writable and readable for all users, many
50 programs will act strangely.