mknod(1)
β¨ NAME β¨
mknod β create the special file NAME of the given TYPE π
(it's a General Commands Manual girlie, section 1, we stay iconic)
πΈ SYNOPSIS πΈ
mknod [-m|--mode] [-Z ] [--context] [-h|--help] [-V|--version] <NAME> <TYPE> [major] [minor]
π¦ DESCRIPTION π¦
okay so bestie, literally all this does: create the special file NAME of the given TYPE. that's the whole vibe. you tell it a name, you tell it a type, and boom, special file exists β¨
π OPTIONS π
-m,--mode<MODE>β sets the file permission bits to MODE, nota=rw - umaskπ-Zβ sets the SELinux security context of each created directory to the default type π₯--context[=<CTX>]β acts like-Z, or, if CTX is specified, sets the SELinux or SMACK security context to CTX π-h,--helpβ print help π-V,--versionβ print version π«Ά<NAME>β name of the new file π<TYPE>β type of the new file (b,c,uorp) π[major]β major file type β[minor]β minor file type β
π EXTRA π
mandatory arguments to long options are mandatory for short options too, no exceptions bestie π
-m,--mode=MODEβ set file permission bits to MODE, nota=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. that part is non-negotiable fr fr.
if MAJOR or MINOR begins with 0x or 0X, it is interpreted as hexadecimal; otherwise, if it begins with 0, as octal; otherwise, as decimal. the way numbers have lore π§
TYPE may be:
bβ create a block (buffered) special file πc,uβ create a character (unbuffered) special file πpβ 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 details about the options it supports. β οΈ not me warning you that your shell might be doing its own thing π
π VERSION π
v(uutils coreutils) 0.7.0
k that's the whole page bestie, you ate that π«Ά this was mknod from uutils coreutils, version 0.7.0, sitting pretty in the mknod(1) section of the General Commands Manual β slay, go make some special files πβ¨ππ¦πΈπ
π¦ where this page comes from
- epel 10: rust-coreutils-devel 0.7.0-10.el10_3 Β· MIT
- epel 10: uutils-coreutils 0.7.0-10.el10_3 Β· (MIT OR Apache-2.0) AND Unicode-DFS-2016 AND Zlib AND (0BSD OR MIT OR Apache-2.0) AND Apache-2.0 AND (Apache-2.0 OR Apache-2.0 WITH LLVM-exception) AND (Apache-2.0 OR GPL-2.0-only) AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND BSD-2-Clause AND (BSD-2-Clause OR Apache-2.0 OR MIT) AND BSD-3-Clause AND CC0-1.0 AND ISC AND MIT AND (MIT OR Zlib OR Apache-2.0) AND (MIT-0 OR Apache-2.0) AND Unicode-3.0 AND (Unlicense OR MIT)
- fedora 43: rust-coreutils-devel 0.7.0-12.fc43 Β· MIT
- fedora 43: uutils-coreutils 0.7.0-12.fc43 Β· (MIT OR Apache-2.0) AND Unicode-DFS-2016 AND Zlib AND (0BSD OR MIT OR Apache-2.0) AND Apache-2.0 AND (Apache-2.0 OR Apache-2.0 WITH LLVM-exception) AND (Apache-2.0 OR GPL-2.0-only) AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND BSD-2-Clause AND (BSD-2-Clause OR Apache-2.0 OR MIT) AND BSD-3-Clause AND CC0-1.0 AND ISC AND MIT AND (MIT OR Zlib OR Apache-2.0) AND (MIT-0 OR Apache-2.0) AND Unicode-3.0 AND (Unlicense OR MIT)
- fedora 44: rust-coreutils-devel 0.7.0-4.fc44 Β· MIT
- fedora 44: uutils-coreutils 0.7.0-4.fc44 Β· (MIT OR Apache-2.0) AND Unicode-DFS-2016 AND Zlib AND (0BSD OR MIT OR Apache-2.0) AND Apache-2.0 AND (Apache-2.0 OR Apache-2.0 WITH LLVM-exception) AND (Apache-2.0 OR GPL-2.0-only) AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND BSD-2-Clause AND (BSD-2-Clause OR Apache-2.0 OR MIT) AND BSD-3-Clause AND CC0-1.0 AND ISC AND MIT AND (MIT OR Zlib OR Apache-2.0) AND (MIT-0 OR Apache-2.0) AND Unicode-3.0 AND (Unlicense OR MIT)
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms