mkdir
Creates a directory or subdirectory. Windows commands reference
On Windows, Linux
Windows
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 Directory1mkdir \Taxes\Property\Currentmkdir \Taxesmkdir \Taxes\Propertymkdir \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
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-vVerboseSeveral platforms
Create directories and set their permissions.
Create specific directories
mkdir path/to/directory1 path/to/directory2 ...IdentifyCreate specific directories and their parents if needed
mkdir --parents path/to/directory1 path/to/directory2 ...IdentifyCreate directories with specific permissions
mkdir --mode rwxrw-r-- path/to/directory1 path/to/directory2 ...IdentifyCreate multiple nested directories recursively
mkdir --parents path/to/{a,b}/{x,y,z}/{h,i,j}Identify