]>
Commit | Line | Data |
---|---|---|
fea681da MK |
1 | .\" Copyright (c) 1993 Michael Haardt (michael@moria.de), Fri Apr 2 11:32:09 MET DST 1993 |
2 | .\" | |
3 | .\" This is free documentation; you can redistribute it and/or | |
4 | .\" modify it under the terms of the GNU General Public License as | |
5 | .\" published by the Free Software Foundation; either version 2 of | |
6 | .\" the License, or (at your option) any later version. | |
7 | .\" | |
8 | .\" The GNU General Public License's references to "object code" | |
9 | .\" and "executables" are to be interpreted as the output of any | |
10 | .\" document formatting or typesetting system, including | |
11 | .\" intermediate and printed output. | |
12 | .\" | |
13 | .\" This manual is distributed in the hope that it will be useful, | |
14 | .\" but WITHOUT ANY WARRANTY; without even the implied warranty of | |
15 | .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
16 | .\" GNU General Public License for more details. | |
17 | .\" | |
18 | .\" You should have received a copy of the GNU General Public | |
19 | .\" License along with this manual; if not, write to the Free | |
20 | .\" Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111, | |
21 | .\" USA. | |
22 | .\" | |
23 | .\" Modified Sat Jul 24 17:00:12 1993 by Rik Faith (faith@cs.unc.edu) | |
24 | .TH NULL 4 1992-11-21 "Linux" "Linux Programmer's Manual" | |
25 | .SH NAME | |
26 | null, zero \- data sink | |
27 | .SH DESCRIPTION | |
28 | Data written on a \fBnull\fP or \fBzero\fP special file is discarded. | |
29 | .PP | |
30 | Reads from the \fBnull\fP special file always return end of file, whereas | |
31 | reads from \fBzero\fP always return \e0 characters. | |
32 | .LP | |
33 | \fBnull\fP and \fBzero\fP are typically created by: | |
34 | .RS | |
35 | .sp | |
4d9b6984 | 36 | mknod \-m 666 /dev/null c 1 3 |
fea681da | 37 | .br |
4d9b6984 | 38 | mknod \-m 666 /dev/zero c 1 5 |
fea681da | 39 | .br |
c6f59edf | 40 | chown root:root /dev/null /dev/zero |
fea681da MK |
41 | .RE |
42 | .SH NOTES | |
43 | If these devices are not writable and readable for all users, many | |
dde7d1a9 | 44 | programs will act strangely. |
fea681da MK |
45 | .SH FILES |
46 | .I /dev/null | |
47 | .br | |
48 | .I /dev/zero | |
49 | .SH "SEE ALSO" | |
50 | .BR chown (1), | |
c0ae5dbd MK |
51 | .BR mknod (1), |
52 | .BR full (4) |