DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

mknod(C)


mknod -- make a special file

Synopsis

mknod name b | c major minor
mknod name p

Description

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).

References

mknod(S)

Notices

The NFS version 2 protocol does not provide for sending the file type to the server as part of an NFS create request. This causes mknod to not work for most file types other than S_IFREG, S_IFIFO, S_IFCHR and S_FBLK.
© 2005 The SCO Group, Inc. All rights reserved.
SCO OpenServer Release 6.0.0 - 02 June 2005