mkdir

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