Usage: mknod [OPTION]... NAME TYPE MAJOR MINOR
Create a special file (block, character, or pipe).
Options:
-m Create the special file using the specified mode (default a=rw) |
TYPE may be:
b Make a block (buffered) device c or u Make a character (un-buffered) device p Make a named pipe. MAJOR and MINOR are ignored for named pipes |
Example:
$ mknod /dev/fd0 b 2 0 $ mknod -m 644 /tmp/pipe p |