1. Computing & Technology
Linux / Unix Command: mknod
Command Library

NAME

mknod - make block or character special files  

SYNOPSIS

mknod [OPTION]... NAME TYPE [MAJOR MINOR]  

DESCRIPTION

Create the special file NAME of the given TYPE.

Mandatory arguments to long options are mandatory for short options too.

-m, --mode=MODE
set permission mode (as in chmod), not a=rw - umask
--help
display this help and exit
--version
output version information and exit

MAJOR MINOR are forbidden for TYPE p, mandatory otherwise. TYPE may be:

b
create a block (buffered) special file
c, u
create a character (unbuffered) special file
p
create a FIFO
 

SEE ALSO

The full documentation for mknod is maintained as a Texinfo manual. If the info and mknod programs are properly installed at your site, the command
info mknod

should give you access to the complete manual.


Important: Use the man command (% man) to see how a command is used on your particular computer.

>> Linux/Unix Command Library

>> Shell Command Library

Discuss in my forum

©2012 About.com. All rights reserved.

A part of The New York Times Company.