mknod — Make a Special File

Synopsis

/usr/sbin/mknod name b major
						minor
/usr/sbin/mknod name c major
						minor
/usr/sbin/mknod name p

Description

Use the mknod command to make a directory entry for a special file.

If you use mknod(2) to create a device, the major and minor device numbers are always interpreted by the kernel running on that machine.

Note

With the advent of physical device naming, it is preferable to create a symbolic link to the physical name of the device (in the /devices subtree) instead of using the mknod command.

Options

b Create a block-type special file.
c Create a character-type special file.
p Create a FIFO (named pipe).

Operands

major The major device number.
minor The minor device number; can be either decimal or octal. ...

Get Solaris™ 8 System Administrator's Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.