mknod(1M) — ADMINISTRATOR COMMANDS
NAME
mknod − make a special file
SYNOPSIS
/sbin/mknod name { b │ c } major minor
/sbin/mknod name { p │ m │ s }
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 arguments are numbers specifying the major and minor device numbers; these may be either decimal or octal. The assignment of major device numbers is specific to each system.
The p option is used to create a FIFO (named pipe).
The m option is used to create a shared memory file.
The s option is used to create a semaphore file.
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.
If mknod attempts to create a device in a remote directory using NFS, the client and server must agree that the client is root. This is normally done with the share(1M) command, suboption root=. The created device is dependent on the servers notion of devices.
The b and c options require super-user privileges. The p, m, and s options do not require super-user privileges.