The lcd command displays and changes the local working directory of the FTP client in the FTP client view.
Parameter | Description | Value |
---|---|---|
local-directory | Specifies the local working directory of the FTP client. | The value is a string of 1 to 128 case-insensitive characters without spaces. |
Usage Scenario
You can run the lcd command to display the local working directory of the FTP client when uploading or downloading files, and set the upload or download path to the path of the local working directory.
Precautions
The lcd command displays the local working directory of the FTP client, while the pwd command displays the working directory of the FTP server. If you specify the parameter local-directory in the lcd command, you can directly change the local working directory in the FTP client view.
# Change the local working directory to flash:/test.
<HUAWEI> ftp 10.137.217.201 Trying 10.137.217.201 ... Press CTRL+K to abort Connected to 10.137.217.201. 220 FTP service ready. User(10.137.217.201:(none)):huawei 331 Password required for huawei. Enter password: 230 User logged in.
[ftp] lcd The current local directory is flash:. [ftp] lcd flash:/test The current local directory is flash:/test.