2005-05-02 15:01:42 +02:00
|
|
|
.TH MKNOD 8
|
|
|
|
.SH NAME
|
|
|
|
mknod \- create a special file
|
|
|
|
.SH SYNOPSIS
|
|
|
|
\fBmknod \fIfile\fR [\fBb\fR] [\fBc\fR] \fImajor \fIminor\fR
|
|
|
|
.br
|
|
|
|
\fBmknod \fIfile\fR \fBp\fR\fR
|
|
|
|
.br
|
|
|
|
.de FL
|
|
|
|
.TP
|
|
|
|
\\fB\\$1\\fR
|
|
|
|
\\$2
|
|
|
|
..
|
|
|
|
.de EX
|
|
|
|
.TP 20
|
|
|
|
\\fB\\$1\\fR
|
|
|
|
# \\$2
|
|
|
|
..
|
|
|
|
.SH EXAMPLES
|
2012-03-31 23:44:29 +02:00
|
|
|
.TP 20
|
|
|
|
.B mknod /dev/plotter c 7 0
|
|
|
|
# Create special file for a plotter
|
|
|
|
.TP 20
|
|
|
|
.B mknod /dev/fd3 b 2 3
|
|
|
|
# Create a device for diskette drive 3
|
|
|
|
.TP 20
|
|
|
|
.B mknod /tmp/stream p
|
|
|
|
# Create a named pipe
|
2005-05-02 15:01:42 +02:00
|
|
|
.SH DESCRIPTION
|
|
|
|
.PP
|
|
|
|
.I Mknod
|
|
|
|
creates a special file named
|
|
|
|
.I file ,
|
|
|
|
with the indicated major and minor device numbers.
|
|
|
|
The second argument specifies a block special, a character special, or a
|
|
|
|
named pipe. Named pipes do not have device numbers so they are omitted.
|
|
|
|
.SH "SEE ALSO"
|
|
|
|
.BR mkfifo (1),
|
|
|
|
.BR mknod (2).
|