Node and host are synonyms for 'computer.' A node can also refer to a device file like /dev/rdsk/f03ht, your 1.44 MB diskette. The mknod command is used to make a node. It has the form of
mknod name b | c major minor
mknod name p
mknod makes a directory entry for a special file.
name is the special file to be created. The second argument is either
b, to indicate a block-type special file, or c, to indicate a
character-type. The last two arguments are numbers specifying the
major and minor device numbers; these may be either decimal or octal.
The assignment of major device numbers is specific to each system. You
must be a privileged user to use this form of the command.
The second case is used to create a FIFO (named pipe).
For example
# mknod test b 100 200
The # is the prompt displayed by the root shell, test is the name
of the node you want to create, type can be b for block or c for
character.
# mknod p test1
The # is the prompt displayed by the root shell, test1 is the name
of the FIFO or named pipe.
<mschalit@pacbell.net>
gerberb@zenez.com
|