MKDIR(1)

πŸ“¦ version 0.12.0, in arch rolling

πŸ’– MKDIR(1) β€” the create-a-directory glow-up πŸ’–

okay so bestie, welcome to mkdir, from the General Commands Manual β€” yes that's the manual name, we're fancy now πŸ’… this is the little icon that makes folders appear out of thin air, and honestly? it ate.


✨ NAME ✨

mkdir β€” Create the given DIRECTORY(ies) if they do not exist πŸŽ€

like, that's it. that's the whole job. she creates directories. she does not exist for anything else. main character energy fr fr.


πŸ¦‹ SYNOPSIS πŸ¦‹

mkdir [OPTION]... DIRECTORY...

translation: options first (if you want them), then the directory names, and you can pile on as many of each as your little heart desires πŸ’œ


🌸 DESCRIPTION 🌸

Create the given DIRECTORY(ies) if they do not exist ✨

no cap, that's the entire vibe. you point at a name, she makes the folder. if the folder's already chillin' there, she's not gonna make a whole thing of it. iconic behaviour, honestly 🫢


πŸ‘‘ OPTIONS πŸ‘‘

  • -m, --mode β€” set file mode β€” and heads up bestie, this one is not implemented on windows 😭 so if you're on windows, don't come for her, she literally can't.
  • -p, --parents β€” make parent directories as needed 🌈 like, if you ask for a/b/c and none of them exist, she'll build the whole little family tree for you. so thoughtful.
  • -v, --verbose β€” print a message for each printed directory πŸ‘€ yes, "printed" directory, that's what it says, we don't make the rules, we just report them faithfully. she gets chatty, okay?
  • -Z β€” set SELinux security context of each created directory to the default type πŸ”₯ security girlies rise.
  • --context <CTX> β€” like -Z, or if CTX is specified then set the SELinux or SMACK security context to CTX πŸ’… so it's -Z with extra steps β€” and you get to pick the CTX yourself. SMACK mention included, no notes.
  • -h, --help β€” Print help 🧚 when you're lost, she's got you.
  • -V, --version β€” Print version ⭐ gotta know what you're working with.
  • <dirs> β€” the directories themselves!! the whole point!! put your names here bestie πŸ“

πŸ’€ EXTRA πŸ’€

okay this is the part where the mode syntax shows up and it's giving cryptic but we're gonna read it together, don't panic πŸ™ˆ

Each MODE is of the form:

[ugoa]*([-+=]([rwxXst]*|[ugo]))+|[-+=]?[0-7]+

that's a whole regex and she's beautiful. just copy it exactly if you need it, do not try to retype it from memory, i'm begging you 😭


πŸ”₯ VERSION πŸ”₯

v(uutils coreutils) 0.12.0 β€” that's our girl's version number, note it down πŸ‘‘


ngl bestie, a tiny warning from me to you: -m doing nothing on windows is the one thing that'll have you staring at your terminal like πŸ’€ so remember it, k?

and that's the page!! this was MKDIR(1) from the General Commands Manual, version v(uutils coreutils) 0.12.0, dated 2026-09-17 β€” mwah, love you, go make some folders πŸ’–πŸŽ€πŸ¦‹βœ¨

πŸ“¦ where this page comes from