• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# mkdir<a name="EN-US_TOPIC_0000001133846486"></a>
2
3-   [Command Function](#section1083613274175)
4-   [Syntax](#section820913118178)
5-   [Parameters](#section1256834121718)
6-   [Usage](#section1294234115172)
7-   [Example](#section1113345211713)
8-   [Output](#section10142201012)
9
10## Command Function<a name="section1083613274175"></a>
11
12This command is used to create a directory.
13
14## Syntax<a name="section820913118178"></a>
15
16mkdir \[_directory_\]
17
18## Parameters<a name="section1256834121718"></a>
19
20**Table  1**  Parameter description
21
22<a name="table1299mcpsimp"></a>
23<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>
24</th>
25<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>
26</th>
27<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>
28</th>
29</tr>
30</thead>
31<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>
32</td>
33<td class="cellrowborder" valign="top" width="52%" headers="mcps1.2.4.1.2 "><p id="p1316mcpsimp"><a name="p1316mcpsimp"></a><a name="p1316mcpsimp"></a>Specifies the directory to create.</p>
34</td>
35<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>
36</td>
37</tr>
38</tbody>
39</table>
40
41## Usage<a name="section1294234115172"></a>
42
43-   If the  **mkdir**  command is followed by the name of the directory to be created, the directory is created in the current directory.
44-   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.
45
46## Example<a name="section1113345211713"></a>
47
48Run  **mkdir share**.
49
50## Output<a name="section10142201012"></a>
51
52**Figure  1**  Creating the share directory<a name="fig15480928185015"></a>
53![](figure/creating-the-share-directory.png "creating-the-share-directory")
54
55