-
- mknod - make a special device file
-
- mknod [ options ] pathname b|c|p major minor
-
- 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.
-
- -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.
-
- 0
- All The special file or FIFO was created successfully.
- >0
- The special file or FIFO could not be created.
-
- chmod(1), umask(1),
mkfifo(1)
-
- 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