1. Home
  2. Computing & Technology
  3. Linux
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

Explore Linux
About.com Special Features

Holiday Central

What to eat, where to go, fun things to do and how to save money on the perfect gifts. More >

Family Tech Center

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

  1. Home
  2. Computing & Technology
  3. Linux

©2009 About.com, a part of The New York Times Company.

All rights reserved.