MKDIR(1) General Commands Manual MKDIR(1)

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

mkdir [OPTION]... DIRECTORY...

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

set file mode (not implemented on windows)
make parent directories as needed
print a message for each printed directory
set SELinux security context of each created directory to the default type
like -Z, or if CTX is specified then set the SELinux or SMACK security context to CTX
Print help
Print version
<dirs>

Each MODE is of the form [ugoa]*([-+=]([rwxXst]*|[ugo]))+|[-+=]?[0-7]+.

v(uutils coreutils) 0.11.0

2026-09-01