MKDIR(1)

โœจ mkdir โ€” the manual page, but make it cute โœจ

okay bestie, welcome to mkdir from the User Commands crew ๐Ÿ’– this is the make directories girlie and she is lowkey carrying your entire filesystem setup. no cap.


๐ŸŽ€ NAME ๐ŸŽ€

mkdir โ€” make directories โœจ


๐ŸŒธ SYNOPSIS ๐ŸŒธ

mkdir [OPTION]... DIRECTORY...

๐Ÿ’… DESCRIPTION ๐Ÿ’…

Create the DIRECTORY(ies), if they do not already exist. that's the whole vibe. you point at names, she makes folders, done ๐Ÿซถ

real talk though: mandatory arguments to long options are mandatory for short options too. like if a long option needs a value, its short twin needs the exact same value. no skipping, bestie.

๐ŸŒˆ OPTIONS ๐ŸŒˆ

  • -m, --mode=MODE โ€” sets the file mode, the same way chmod does it. it is not a=rwx - umask, so don't come in here assuming umask math is happening, because it is not ๐Ÿ’…
  • -p, --parents โ€” no error if it already exists, and she'll make parent directories as needed. also: those parent dirs get their file modes unaffected by any -m option โ€” yes, even if you passed -m. iconic behaviour honestly ๐Ÿ‘‘
  • -v, --verbose โ€” prints a message for each created directory. she's narrating her own success story ๐Ÿ“ฃ
  • -Z โ€” sets the SELinux security context of each created directory to the default type ๐Ÿ”
  • --context[=CTX] โ€” like -Z, or if CTX is specified then it sets the SELinux or SMACK security context to CTX ๐Ÿงš
  • --help โ€” display this help and exit ๐Ÿ†˜
  • --version โ€” output version information and exit ๐Ÿท๏ธ

๐Ÿ‘‘ AUTHOR ๐Ÿ‘‘

Written by David MacKenzie. thank you king, we owe you our whole directory tree ๐Ÿซก


๐Ÿ’€ REPORTING BUGS ๐Ÿ’€

if something's broken, tell the people. that's it. that's the rule ๐Ÿ˜ญ

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. fr fr, no warranty bestie, don't come for her if things go sideways ๐Ÿ™ˆ

๐Ÿฆ‹ SEE ALSO ๐Ÿฆ‹

Full documentation https://www.gnu.org/software/coreutils/mkdir or available locally via: info '(coreutils) mkdir invocation'


and that's the whole page, you ate it, you understood it, periodt ๐Ÿ’œ

GNU coreutils 9.12 ยท September 2026 โ€” xoxo, your local manual page fairy ๐Ÿงš๐Ÿ’–

๐Ÿ“ฆ where this page comes from