CmdID

CmdID / Commands

mkdir

Creates a directory or subdirectory. Windows commands reference

On Windows, Linux

Opens CmdID with your command. It is read in your browser and sent nowhere.

Windows

from the Windows commands reference, CC BY 4.0

Creates a directory or subdirectory. Command extensions, which are enabled by default, allow you to use a single mkdir command to create intermediate directories in a specified path. NOTE: This command is the same as the md command.

mkdir [<drive>:]<path>
mkdir Directory1
mkdir \Taxes\Property\Current
mkdir \Taxes
mkdir \Taxes\Property
mkdir \Taxes\Property\Current
<drive>:Specifies the drive on which you want to create the new directory.
<path>Specifies the name and location of the new directory. The maximum length of any single path is determined by the file system. This is a required parameter.
/?Displays help at the command prompt.

Linux

from the toybox, 0BSD

Create one or more directories. !-Z Set security context

mkdir [-vp] ![!-!Z! !c!o!n!t!e!x!t!]! [-m MODE] [DIR...]
-m MODESet permissions of directory to mode
-pMake parent directories as needed
-vVerbose

Several platforms

from tldr-pages, CC BY 4.0

Create directories and set their permissions.

Create specific directories

mkdir path/to/directory1 path/to/directory2 ...Identify

Create specific directories and their parents if needed

mkdir --parents path/to/directory1 path/to/directory2 ...Identify

Create directories with specific permissions

mkdir --mode rwxrw-r-- path/to/directory1 path/to/directory2 ...Identify

Create multiple nested directories recursively

mkdir --parents path/to/{a,b}/{x,y,z}/{h,i,j}Identify

Windows

from tldr-pages, CC BY 4.0

Create a directory.

Create a directory

mkdir path\to\directoryIdentify

Create a nested directory tree recursively

mkdir path\to\sub_directoryIdentify