| Skip Navigation Links | |
| Exit Print View | |
![]() | man pages section 1M: System Administration Commands Oracle Solaris 11 Information Library |
- make a special file
mknodname bmajorminor
mknodname cmajorminor
mknodname p
mknod makes a directory entry for a special file.
The following options are supported:
Create a block-type special file.
Create a character-type special file.
Create a FIFO (named pipe).
The following operands are supported:
Themajor device number.
Theminor device number; can be either decimal or octal. The assignment of major device numbers is specific to each system. You must be the super-user to use this form of the command.
A special file to be created.
Seelargefile(5) for the description of the behavior ofmknod when encountering filesgreater than or equal to 2 Gbyte ( 231 bytes).
Seeattributes(5) for descriptions of the following attributes:
|
ftp(1),mknod(2),symlink(2),attributes(5),largefile(5)
Ifmknod(2) is used to create a device, the major and minor devicenumbers are always interpreted by the kernel running on that machine.
With the advent of physical device naming, it would be preferable tocreate a symbolic link to the physical name of the device (inthe/devices subtree) rather than usingmknod.
Copyright © 2011, Oracle and/or its affiliates. All rights reserved.Legal Notices | ![]() ![]() |