fortypoundhead.com

MKNOD

Posted On 2007-05-02 by FortyPoundHead
Keywords: Command Reference
Tags: Linux Commandline Linux
Views: 1630


creates a FIFO, character special file, or block special file with the specified name.

SYNTAX
mknod [options]... NAME Type [Major Minor]

OPTIONS

`-m MODE''
`--mode=MODE''
Set the mode of created files to MODE, which is symbolic as in
`chmod'' and uses 0666 minus the bits set in the umask as the point
of departure.

Type The type of file to make:
`p'' for a FIFO
`b'' for a block special file
`c'' for a character special file

Major/Minor When making a block or character special file, the major and minor
device numbers must be given after the file type.Unlike the phrase "special file type" above, the term "special file" has a technical meaning on Unix: something that can generate or receive data. Usually this corresponds to a physical piece of hardware, e.g., a printer or a disk. (These files are typically created at system-configuration time.) The `mknod'' command is what creates files of this type. Such devices can be read either a character at a time or a "block" (many characters) at a time, hence we say there are "block special" files and "character special" files.


About the Author

FortyPoundHead has posted a total of 1974 articles.

 


Comments On This Post

No comments on this post yet!


Do you have a thought relating to this post? You can post your comment here. If you have an unrelated question, you can use the Q&A section to ask it.

Or you can drop a note to the administrators if you're not sure where you should post.


Your IP address is:54.80.21.61

Before you can post, you need to prove you are human. If you log in, this test goes away.



Recent Forum Posts

SSL Now Active
dwirch posted on June 16, 2017 at about 8:40 in Site News

SSL Now Active
dwirch posted on June 13, 2017 at about 7:59 in Site News

Coding Archive?
dwirch posted on June 3, 2017 at about 12:54 in Site News

Job Spammer: Bharti Jigyasi
dwirch posted on June 2, 2017 at about 16:57 in Spammers

Coding Archive?
dwirch posted on May 25, 2017 at about 12:38 in Site News

BWASL returns
dwirch posted on May 13, 2017 at about 15:24 in Site News