MKNOD(1)
π MKNOD(1) π
okay bestie, welcome to MKNOD(1) β it's a User Commands page and honestly? it's giving "tiny tool, huge power" β¨ like don't let the short page fool you, this is main character energy in the filesystem world π
π NAME π
mknod β make block or character special files
β¨ SYNOPSIS β¨
mknod [OPTION]... NAME TYPE [MAJOR MINOR]
π¦ DESCRIPTION π¦
So basically, it creates the special file called NAME with the TYPE you told it to. That's the whole vibe. π
Little note that applies everywhere, no cap: mandatory arguments to long options are mandatory for short options too. Periodt.
-m,--mode=MODEβ sets the file permission bits toMODE, and NOTa=rw - umasklike you'd normally get π-Zβ sets the SELinux security context to the default type π₯--context[=CTX]β acts like-Z, or, ifCTXis specified, sets the SELinux or SMACK security context toCTX(yes it's SMACK too, she contains multitudes) π--helpβ displays this help and exits, our favorite kind of exit π«Ά--versionβ outputs version information and exits, iconic behavior β
okay now the part where you actually have to pay attention, bestie π
Both MAJOR and MINOR must be specified when TYPE is b, c, or u, and they must be omitted when TYPE is p. No wiggle room, no negotiation π
If MAJOR or MINOR begins with 0x or 0X, it's interpreted as hexadecimal. Otherwise, if it begins with 0, as octal. Otherwise, as decimal. numbers stay numbers, the base just changes, iykyk πΈ
TYPE may be:
bβ create a block (buffered) special file πc,uβ create a character (unbuffered) special file πpβ create a FIFO π
β οΈ heads up girlypop: your shell may have its own version of mknod, which usually supersedes the version described here. Please refer to your shell's documentation for details about the options it supports. don't come for me, it's literally in the fine print π
π AUTHOR π
Written by David MacKenzie. slay, king π
π REPORTING BUGS π
Report bugs to: bug-coreutils@gnu.org GNU coreutils home page: <https://www.gnu.org/software/coreutils/> General help using GNU software: <https://www.gnu.org/gethelp/> Report any translation bugs to <https://translationproject.org/team/>
π§ SEE ALSO π§
mknod(2)- Full documentation
<https://www.gnu.org/software/coreutils/mknod>or available locally via:info '(coreutils) mknod invocation' - Packaged by Ubuntu (
9.10-1ubuntu2) - Copyright Β© 2026 Free Software Foundation, Inc.
- License GPLv3+: GNU GPL version 3 or later
<https://gnu.org/licenses/gpl.html>. - This is free software: you are free to change and redistribute it.
- There is NO WARRANTY, to the extent permitted by law.
okay and for the cute sign-off because you know I have to π this lil masterpiece is GNU coreutils version 9.10, dated August 2026, and it's literally MKNOD(1) β go make some special files bestie, you got this, mwah πβ¨π¦
π¦ where this page comes from
- ubuntu stonking: gnu-coreutils 9.10-1ubuntu2 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms