< Home

lcd

Function

The lcd command gets or changes the local working directory of an FTP client.

Format

lcd [ local-directory ]

Parameters

Parameter Description Value

local-directory

Specifies the name of the local working directory of an FTP client.

The name is a string of 1 to 64 characters.

Views

FTP client view

Default Level

3: Management level

Usage Guidelines

Different from the pwd (FTP client view) command that displays the remote working directory of FTP server, after the lcd command is run, the local working directory of FTP client is displayed.

Example

# Change the local working directory to hda1:/test.

<sysname> ftp 10.1.1.1
Trying 10.1.1.1...
Press CTRL+K to abort
Connected to 10.1.1.1.
220 FTP service ready.
User(10.1.1.1:(none)):ftpuser
331 Password required for ftpuser
Enter password:
230 User logged in.
[ftp] lcd
The current local directory is hda1:.
<sysname> ftp 10.1.1.1
Trying 10.1.1.1...
Press CTRL+K to abort
Connected to 10.1.1.1.
220 FTP service ready.
User(10.1.1.1:(none)):ftpuser
331 Password required for ftpuser
Enter password:
230 User logged in.
[ftp] lcd hda1:/test
The current local directory is hda1:/test.
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >