MKNOD(1)
π MKNOD(1) β like, the manual page bestie
ok so this is a page from the General Commands Manual and it's literally all about one tiny iconic little command called mknod. buckle up π
β¨ NAME β¨
mknod β creates the special file NAME of the given TYPE. that's it. that's the whole job. she's focused. π
π¦ SYNOPSIS π¦
mknod [OPTION]... NAME TYPE [MAJOR MINOR]
πΈ DESCRIPTION πΈ
Create the special file NAME of the given TYPE. yes bestie that's the entire description, the manpage said what it said and moved on π
π OPTIONS π
-m,--mode <MODE>β sets the file permission bits to MODE, nota=rw - umask. so like, it overrides that default vibe entirely, no cap.-Zβ sets the SELinux security context of each created directory to the default type.--context[=<CTX>]β same energy as-Zπ«Ά, but if CTX is actually specified, then it sets the SELinux or SMACK security context to CTX.-h,--helpβ prints help. she's helpful like that β¨-V,--versionβ prints version. slay.
then the positional girlies:
<NAME>β name of the new file.<TYPE>β type of the new file (b,c,uorp).[major]β major file type.[minor]β minor file type.
π₯ EXTRA π₯
so, mandatory arguments to long options are mandatory for short options too, iykyk. and again, for the people in the back: -m, --mode=MODE sets the file permission bits to MODE, not a=rw - umask. π
Both MAJOR and MINOR must be specified when TYPE is b, c, or u β and they must be omitted when TYPE is p. like, do not come in with extra numbers when it's a fifo, it's giving unnecessary π
and the number parsing? absolutely a vibe check:
- if MAJOR or MINOR begins with
0xor0X, it's interpreted as hexadecimal - otherwise, if it begins with
0, as octal - otherwise, as decimal
TYPE may be:
bβ create a block (buffered) special filec,uβ create a character (unbuffered) special filepβ create a FIFO
NOTE: your shell may have its own version of mknod, which usually supersedes the version described here. please refer to your shell's documentation for the deets about the options it supports. don't come for this page when your shell is doing something different, bestie π
β VERSION β
v(uutils coreutils) 0.12.0
and that's the whole page, you ate that ππ β this beauty was dated 2026-09-17, brought to you by v(uutils coreutils) 0.12.0, and honestly? iconic. periodt. β¨π
π¦ where this page comes from
- arch rolling: uutils-coreutils 0.12.0-1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms