The command mknod creates a directory entry for a special file.
Syntax
Format 1: |
mknod name[ b|c] device_class device_number |
Format 2: |
mknod name p
|
Only the POSIX administrator may enter this format.
Name of the special file which is to be created
for a block-oriented special file
for a character-oriented special file
Number of the device class. This may be entered in octal or decimal notation. You must enter a leading zero if you choose octal notation. The device number assignment is system-specific. Example of possible device classes (major device number): 58 Terminal file (/dev/term/...) 59 SF terminal file (/dev/sf/...) (SYSFILE is used to access terminals from within BS2000 batch procedures) It is not sufficient merely to create the TERM and SF special files. The appropriate POSIX parameters also have to be set if these files are to be used: File:
Name of the special file
Generates a FIFO file (known as a pipe) |
Example
Creating an additional special file (/dev/term). This example was conducted under the POSIX administrator’s ID.
|
See also
mknod [4] |