2015-02-02 17:34:26 +00:00
|
|
|
.Dd February 2, 2015
|
|
|
|
.Dt MKNOD 1
|
|
|
|
.Os ubase
|
|
|
|
.Sh NAME
|
|
|
|
.Nm mknod
|
|
|
|
.Nd create a special device file
|
|
|
|
.Sh SYNOPSIS
|
|
|
|
.Nm
|
|
|
|
.Op Fl m Ar mode
|
|
|
|
.Ar name
|
|
|
|
.Ar type
|
|
|
|
.Ar major
|
|
|
|
.Ar minor
|
|
|
|
.Sh DESCRIPTION
|
|
|
|
.Nm
|
|
|
|
creates a special device file named
|
|
|
|
.Ar name
|
|
|
|
with major number
|
|
|
|
.Ar major ,
|
|
|
|
and minor number
|
|
|
|
.Ar minor .
|
|
|
|
.Ar type
|
|
|
|
specifies what kind of special file will be created and must be one of:
|
|
|
|
.Bl -tag -width Ds
|
|
|
|
.It Ar u | c
|
2014-04-13 15:54:10 +00:00
|
|
|
A character device.
|
2015-02-02 17:34:26 +00:00
|
|
|
.It Ar b
|
2014-01-28 16:49:25 +00:00
|
|
|
A block device.
|
2015-02-02 17:34:26 +00:00
|
|
|
.El
|
|
|
|
.Sh OPTIONS
|
|
|
|
.Bl -tag -width Ds
|
|
|
|
.It Fl m
|
2014-01-28 16:49:25 +00:00
|
|
|
Set the mode of the new file based on the octal value of
|
2015-02-02 17:34:26 +00:00
|
|
|
.Ar mode .
|
|
|
|
.El
|
|
|
|
.Sh SEE ALSO
|
|
|
|
.Xr mknod 2
|