# cd
- [Command Function](#section11690184921316)
- [Syntax](#section75695409569)
- [Parameters](#section71961353181311)
- [Usage](#section3629759111317)
- [Example](#section211620301412)
- [Output](#section1968117214577)
## Command Function
This command is used to change the current working directory.
## Syntax
cd \[_path_\]
## Parameters
**Table 1** Parameter description
Parameter
|
Description
|
Value Range
|
path
|
Specifies the file path.
|
You must have the execution (search) permission for the specified directory.
|
## Usage
- If the **path** parameter is not specified, the system switches to the root directory.
- If the **path** parameter is specified, the system switches to the specified path.
- The **path** value starting with a slash \(/\) represents the root directory.
- The **path** value starting with a dot \(.\) represents the current directory.
- The **path** value starting with two dots \(..\) represents the parent directory.
## Example
Run **cd**.
## Output
**Figure 1** Changing the directory
