Skip to Content
Solaris™ 8 System Administrator's Reference
book

Solaris™ 8 System Administrator's Reference

by Janice Winsor
September 2000
Beginner content levelBeginner
1312 pages
33h 47m
English
Pearson
Content preview from Solaris™ 8 System Administrator's Reference

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. ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Essential System Administration Pocket Reference

Essential System Administration Pocket Reference

Æleen Frisch

Publisher Resources

ISBN: 0130277010Purchase book