# cd
## 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
