2014-04-12 12:38:43 +00:00
|
|
|
.TH MKNOD 1 ubase-VERSION
|
2014-01-28 16:49:25 +00:00
|
|
|
.SH NAME
|
2014-04-12 13:16:20 +00:00
|
|
|
\fBmknod\fR - Create a special device file
|
2014-01-28 16:49:25 +00:00
|
|
|
.SH SYNOPSIS
|
2014-04-12 12:38:43 +00:00
|
|
|
\fBmknod\fR [\fB-m \fImode\fR] \fIname type major minor
|
2014-01-28 16:49:25 +00:00
|
|
|
.SH DESCRIPTION
|
2014-04-12 12:38:43 +00:00
|
|
|
\fBmknod\fR reates a special device file named \fIname\fR
|
|
|
|
with major number \fImajor\fR, and minor number \fIminor\fR.
|
|
|
|
\fItype\fR specifies what kind of special file will be created
|
2014-01-28 16:49:25 +00:00
|
|
|
and must be one of:
|
|
|
|
.TP
|
2014-04-13 16:00:22 +00:00
|
|
|
\fBu|c\fR
|
2014-04-13 15:54:10 +00:00
|
|
|
A character device.
|
2014-01-28 16:49:25 +00:00
|
|
|
.TP
|
2014-04-12 12:38:43 +00:00
|
|
|
\fBb\fR
|
2014-01-28 16:49:25 +00:00
|
|
|
A block device.
|
|
|
|
.SH OPTIONS
|
|
|
|
.TP
|
2014-04-13 16:00:22 +00:00
|
|
|
\fB-m\fR
|
2014-01-28 16:49:25 +00:00
|
|
|
Set the mode of the new file based on the octal value of
|
2014-04-12 12:38:43 +00:00
|
|
|
\fImode\fR.
|
2014-01-28 16:49:25 +00:00
|
|
|
.SH SEE ALSO
|
2014-04-12 12:38:43 +00:00
|
|
|
mknod (2)
|