# mkdir
## Command Function
This command is used to create a directory.
## Syntax
mkdir \[_directory_\]
## Parameters
**Table 1** Parameter description
Parameter
|
Description
|
Value Range
|
directory
|
Specifies the directory to create.
|
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
Run **mkdir share**.
## Output
**Figure 1** Creating the share directory
