mknod(1)

πŸ“¦
version 0.7.0 Β· 2 versions
, in epel 10, fedora 43, fedora 44

✨ 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, not a=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, u or p) 🌈
  • [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, 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. 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