MKNOD ( 1 ) USER COMMANDSMKNOD ( 1 )


NAME

mknod - make a special device file

SYNOPSIS

mknod [ options ] pathname b|c|p major minor

DESCRIPTION

mknod creates a special device file named by pathname. By default, the mode of created file is a=rw minus the bits set in the umask(1).

The special file can be a block special file (b), a character special file (c) , or a FIFO (p). The block and character device files require major and minor device numbers.

OPTIONS

-m, --mode=mode
Set the mode of created special file to mode. mode is symbolic or octal mode as in chmod(1). Relative modes assume an initial mode of a=rw.

EXIT STATUS

0
All The special file or FIFO was created successfully.
>0
The special file or FIFO could not be created.

SEE ALSO

chmod(1), umask(1), mkfifo(1)

IMPLEMENTATION

version
mknod (AT&T Labs Research) 2002-02-20
author
Glenn Fowler <gsf@research.att.com >
author
David Korn <dgk@research.att.com>
author
Phong Vo <kpv@research.att.com>
copyright
Copyright © 1986-2010 AT&T Intellectual Property
license
http://www.opensource.org/licenses/cpl1.0.txt
author
David Korn <dgk@research.att.com>
license
http://www.research.att.com/sw/tools/reuse