# mkdir<a name="EN-US_TOPIC_0000001051770294"></a>

-   [Command Function](#section1083613274175)
-   [Syntax](#section820913118178)
-   [Parameter Description](#section1256834121718)
-   [Usage](#section1294234115172)
-   [Example](#section1113345211713)
-   [Output](#section10142201012)

## Command Function<a name="section1083613274175"></a>

This command is used to create a directory.

## Syntax<a name="section820913118178"></a>

mkdir \[_directory_\]

## Parameter Description<a name="section1256834121718"></a>

**Table  1**  Parameters

<a name="table1299mcpsimp"></a>
<table><thead align="left"><tr id="row1305mcpsimp"><th class="cellrowborder" valign="top" width="21%" id="mcps1.2.4.1.1"><p id="p1307mcpsimp"><a name="p1307mcpsimp"></a><a name="p1307mcpsimp"></a><strong id="b209289681211447"><a name="b209289681211447"></a><a name="b209289681211447"></a>Parameter</strong></p>
</th>
<th class="cellrowborder" valign="top" width="52%" id="mcps1.2.4.1.2"><p id="p1309mcpsimp"><a name="p1309mcpsimp"></a><a name="p1309mcpsimp"></a><strong id="b16886221330"><a name="b16886221330"></a><a name="b16886221330"></a>Description</strong></p>
</th>
<th class="cellrowborder" valign="top" width="27%" id="mcps1.2.4.1.3"><p id="p1311mcpsimp"><a name="p1311mcpsimp"></a><a name="p1311mcpsimp"></a><strong id="b163527968011447"><a name="b163527968011447"></a><a name="b163527968011447"></a>Value Range</strong></p>
</th>
</tr>
</thead>
<tbody><tr id="row1312mcpsimp"><td class="cellrowborder" valign="top" width="21%" headers="mcps1.2.4.1.1 "><p id="p1314mcpsimp"><a name="p1314mcpsimp"></a><a name="p1314mcpsimp"></a>directory</p>
</td>
<td class="cellrowborder" valign="top" width="52%" headers="mcps1.2.4.1.2 "><p id="p1316mcpsimp"><a name="p1316mcpsimp"></a><a name="p1316mcpsimp"></a>Indicates the directory to be created.</p>
</td>
<td class="cellrowborder" valign="top" width="27%" headers="mcps1.2.4.1.3 "><p id="p1318mcpsimp"><a name="p1318mcpsimp"></a><a name="p1318mcpsimp"></a>N/A</p>
</td>
</tr>
</tbody>
</table>

## Usage<a name="section1294234115172"></a>

-   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<a name="section1113345211713"></a>

Enter  **mkdir share**.

## Output<a name="section10142201012"></a>

**Figure  1**  Creating the share directory<a name="fig15480928185015"></a>  
![](figures/creating-the-share-directory.png "creating-the-share-directory")

