mknod.1 (1225B)
- .\" utils-std: Collection of commonly available Unix tools
- .\" Copyright 2017 Haelwenn (lanodan) Monnier <contact+utils@hacktivis.me>
- .\" SPDX-License-Identifier: MPL-2.0
- .Dd 2024-04-21
- .Dt MKNOD 1
- .Os
- .Sh NAME
- .Nm mknod
- .Nd Create FIFO, block-special, character-special files
- .Sh SYNOPSIS
- .Nm
- .Op Fl m Ar mode
- .Ar path
- .Ar b Ns | Ns Ar c Ns | Ns Ar u
- .Ar major
- .Ar minor
- .Nm
- .Op Fl m Ar mode
- .Ar path
- .Ar p
- .Sh DESCRIPTION
- .Nm
- creates special file at
- .Ar path
- of the given type:
- .Bl -tag -width ___
- .It Ar b
- Create block special file
- .It Ar c Ns | Ns Ar u
- Create character special file
- .It Ar p
- Create FIFO
- .El
- .Pp
- Both
- .Ar major
- and
- .Ar minor
- must be specified when type is
- .Ar b ,
- .Ar c ,
- or
- .Ar u ,
- and they must be omitted when type is
- .Ar p .
- The numbers given in
- .Ar major
- and
- .Ar minor
- are interpreted as hexadecimal with a leading 0x or 0X,
- octal with a leading 0,
- decimal otherwise.
- .Sh OPTIONS
- .Bl -tag -width _m_mode
- .It Fl m Ar mode
- Set permission of new special file,
- relative to 0666/rw-rw-rw using the same format as
- .Xr chmod 1 .
- .El
- .Sh EXIT STATUS
- .Ex -std
- .Sh SEE ALSO
- .Xr mkfifo 1
- .Sh HISTORY
- A
- .Nm
- utility appeared in
- .At v4 .
- .Sh AUTHORS
- .An Haelwenn (lanodan) Monnier Aq Mt contact+utils@hacktivis.me