mkdir

v0.0.28
mkdir [OPTION]... DIRECTORY...

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

Options

--mode, -m

set file mode (not implemented on windows)

--parents, -p

make parent directories as needed

--verbose, -v

print a message for each printed directory

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

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 ...}}

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.