Files
2024-02-19 00:21:39 -05:00

66 lines
813 B
Plaintext

Command: mknod - create a special file
Syntax: mknod file [b] [c] major minor
mknod file p
Flags: (none)
Examples: mknod /dev/plotter c 7 0 # Create special file for a plotter
mknod /dev/fd3 b 2 3 # Create a device for diskette drive
3
mknod /tmp/stream p # Create a named pipe
Mknod creates a special file named file, with the indicated major
and minor device numbers. The second argument specifies a block
special, a character special, or a named pipe. Named pipes do not have
device numbers so they are omitted.