77
To work with files on an FTP server, execute the following commands in FTP client view:
Task Command
Remarks
Display directory or file
information on the FTP server.
• Display the detailed
information of a directory
or file on the FTP server:
dir [ remotefile
[ localfile ] ]
• Display the name of a
directory or file on the FTP
server:
ls [ remotefile [ localfile ] ]
N/A
Delete the specified file on the
FTP server permanently.
delete remotefile N/A
Set the file transfer mode to
ASCII.
ascii The default file transfer mode is binary.
Set the file transfer mode to
binary.
binary The default file transfer mode is binary.
Set the FTP operation mode to
passive.
passive The default mode is passive.
Display or change the local
working directory of the FTP
client.
lcd [ directory | / ] N/A
Upload a file to the FTP server. put localfile [ remotefile ] N/A
Download a file from the FTP
server.
get remotefile [ localfile ] N/A
Add the content of a file on the
FTP client to a file on the FTP
server.
append localfile [ remotefile ]
N/A
Specify the retransmit marker. restart marker
Use this command together with the put,
get, or append command.
Update the local file. newer remotefile N/A
Get the missing part of a file. reget remotefile [ localfile ] N/A
Rename the file.
rename [ oldfilename
[ newfilename ] ]
N/A
Changing to another user account
After you log in to the FTP server with one user account, you can change to another user account to get
a different privilege without reestablishing the FTP connection. You must correctly enter the new username
and password. A wrong username or password can cause the FTP connection to disconnect.
To change to another user account, execute the following command in user view:
Task Command
Change to another user account. user username [ password ]