Amiga Unix — 68040 · 68060

Manual pages › System administration commands (1M)

mknod(1M)

make a special file

From the original Amiga UNIX 2.1 manual. Some things it mentions may not be in this release.

Also by this name: mknod(1), General commands · mknod(2), System calls · mknod(2Z), XENIX system calls

NAME

mknod - make a special file

SYNOPSIS

/sbin/mknod name b | c major minor
/sbin/mknod name p

DESCRIPTION

mknod makes a directory entry for a special file.

In the first case, name is the special file to be created. The second argument is 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 the super-user to use this form of the command.

The second case is used to create a FIFO (named pipe).

NOTES

If mknod is used to create a device in a remote directory (Remote File Sharing), the major and minor device numbers are interpreted by the server.

SEE ALSO

mknod(2) in the Programmer's Reference Manual.