Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ mknod(1M) — SunOS 5.4

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

ftp(1)

in.ftpd(1M)

mknod(2)

symlink(2)

mknod(1M)

NAME

mknod − make a special file

SYNOPSIS

/usr/sbin/mknod name [ b | c major minor ] [ p ]

AVAILABILITY

SUNWcsr

DESCRIPTION

mknod makes a directory entry for a special file. 

OPTIONS

b Indicates a block-type special file. 

c Indicates a character-type special file. 

p Used to create a FIFO (named pipe). 

major Specifies the major device number. 

minor Specifies the minor device number; can 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. 

name A special file to be created. 

SEE ALSO

ftp(1), in.ftpd(1M), mknod(2), symlink(2)

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.

With the advent of physical device naming, it would be preferable to create a symbolic link to the physical name of the device (in the /devices subtree) rather than using mknod. 

SunOS 5.4  —  Last change: 10 Mar 1993

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026