mkdir
v(uutils coreutils) 0.1.0
Options
--mode
,-m
-
mkdir-help-mode
--parents
,-p
-
mkdir-help-parents
--verbose
,-v
-
mkdir-help-verbose
-Z
-
mkdir-help-selinux
--context=<CTX>
-
mkdir-help-context
Examples
Create specific directories:
mkdir {{path/to/directory1 path/to/directory2 ...}}
Create specific directories and their parents if needed:
mkdir {{[-p|--parents]}} {{path/to/directory1 path/to/directory2 ...}}
Create directories with specific permissions:
mkdir {{[-m|--mode]}} {{rwxrw-r--}} {{path/to/directory1 path/to/directory2 ...}}
Create multiple nested directories recursively:
mkdir {{[-p|--parents]}} {{path/to/{a,b}/{x,y,z}/{h,i,j}}}
The examples are provided by the tldr-pages project under the CC BY 4.0 License.
Please note that, as uutils is a work in progress, some examples might fail.