2014-04-12 08:38:43 -04:00
|
|
|
.TH MKNOD 1 ubase-VERSION
|
2014-01-28 11:49:25 -05:00
|
|
|
.SH NAME
|
2014-04-12 09:16:20 -04:00
|
|
|
\fBmknod\fR - Create a special device file
|
2014-01-28 11:49:25 -05:00
|
|
|
.SH SYNOPSIS
|
2014-04-12 08:38:43 -04:00
|
|
|
\fBmknod\fR [\fB-m \fImode\fR] \fIname type major minor
|
2014-01-28 11:49:25 -05:00
|
|
|
.SH DESCRIPTION
|
2014-04-12 08:38:43 -04: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 11:49:25 -05:00
|
|
|
and must be one of:
|
|
|
|
.TP
|
2014-04-13 12:00:22 -04:00
|
|
|
\fBu|c\fR
|
2014-04-13 11:54:10 -04:00
|
|
|
A character device.
|
2014-01-28 11:49:25 -05:00
|
|
|
.TP
|
2014-04-12 08:38:43 -04:00
|
|
|
\fBb\fR
|
2014-01-28 11:49:25 -05:00
|
|
|
A block device.
|
|
|
|
.SH OPTIONS
|
|
|
|
.TP
|
2014-04-13 12:00:22 -04:00
|
|
|
\fB-m\fR
|
2014-01-28 11:49:25 -05:00
|
|
|
Set the mode of the new file based on the octal value of
|
2014-04-12 08:38:43 -04:00
|
|
|
\fImode\fR.
|
2014-01-28 11:49:25 -05:00
|
|
|
.SH SEE ALSO
|
2014-04-12 08:38:43 -04:00
|
|
|
mknod (2)
|