# mkdir - [Command Function](#section1083613274175) - [Syntax](#section820913118178) - [Parameter Description](#section1256834121718) - [Usage](#section1294234115172) - [Example](#section1113345211713) - [Output](#section10142201012) ## Command Function This command is used to create a directory. ## Syntax mkdir \[_directory_\] ## Parameter Description **Table 1** Parameters

Parameter

Description

Value Range

directory

Indicates the directory to be created.

N/A

## Usage - If the **mkdir** command is followed by the name of the directory to be created, the directory is created in the current directory. - If the **mkdir** command is followed by a path and the name of the directory to be created, the directory is created in the specified path. ## Example Enter **mkdir share**. ## Output **Figure 1** Creating the share directory ![](figures/creating-the-share-directory.png "creating-the-share-directory")