mknod—Make special files

mknod [options] filename {bcu} major minor
mknod [options] filename p

[–m mode] [–mode=mode] [–help] [–version]

This manual page documents the GNU version of mknod. mknod creates a FIFO, character special file, or block special file with the given filename. By default, the mode of created files is 0666 minus the bits set in the umask.

The argument after filename specifies the type of file to make:
p for a FIFO
b for a block (buffered) special file
c or u for a character (unbuffered) special file

When making a block or character special file, the major and minor device numbers must be given after the file type.


–m, –mode modeSet the mode of created files to mode, which is symbolic as in chmod and uses the default mode as the point of departure.
–helpPrint a usage message on standard output and exit successfully.
–versionPrint version information on standard output then exit successfully.

If You Like What We Do Here On LinuxConcept, You Should Consider:

Stay Connected to: Twitter | Facebook

Subscribe to our email updates: Sign Up Now


We are thankful for your support.

Follow me


I am Satish Kumar, Founder of LinuxConcept. Linux and F.O.S.S enthusiast, love to work on open source platform and technologies.
Follow me