MKDIR(1) General Commands Manual MKDIR(1)

# [NAME](#NAME)

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

# [SYNOPSIS](#SYNOPSIS)

**mkdir** \[OPTION]... DIRECTORY...

# [DESCRIPTION](#DESCRIPTION)

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

# [OPTIONS](#OPTIONS)

[**-m**, **--mode**](#m)

set file mode (not implemented on windows)

[**-p**, **--parents**](#p)

make parent directories as needed

[**-v**, **--verbose**](#v)

print a message for each printed directory

[**-Z**](#Z)

set SELinux security context of each created directory to the default type

[**--context** *&lt;CTX&gt;*](#context)

like -Z, or if CTX is specified then set the SELinux or SMACK security context to CTX

[**-h**, **--help**](#h)

Print help

[**-V**, **--version**](#V)

Print version

&lt;*dirs*&gt;

# [EXTRA](#EXTRA)

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

# [VERSION](#VERSION)

v(uutils coreutils) 0.12.0

2026-10-12

---

Document: mkdir(1) from uutils 0.12.0-r3 (Chainguard OS)
Source: https://github.com/uutils/coreutils
