mknod(1M) MISC. REFERENCE MANUAL PAGES mknod(1M)
NAME
mknod - make a special file
SYNOPSIS
/sbin/mknod name b | c major minor
/sbin/mknod name p
DESCRIPTION
mknod makes a directory entry for a special file.
In the first case, name is the special file to be created.
The second argument is b to indicate a block-type special
file or c to indicate a character-type. The last two argu-
ments are numbers specifying the major and minor device
numbers; these may be either decimal or octal. The assign-
ment of major device numbers is specific to each system.
You must be the super-user to use this form of the command.
The second case is used to create a FIFO (named pipe).
NOTES
If mknod is used to create a device in a remote directory
(Remote File Sharing), the major and minor device numbers
are interpreted by the server.
SEE ALSO
mknod(2) in the Programmer's Reference Manual.
Last change: Essential Utilities 1