88
To operate the files on an FTP server:
Task Command
Remarks
Display detailed information about a directory or file
on the remote FTP server.
dir [ remotefile
[ localfile ] ]
Optional.
The ls command only displays
the name of a directory or file.
The dir command displays
detailed information such as the
file size and creation time.
Query a directory or file on the remote FTP server.
ls [ remotefile
[ localfile ] ]
Optional.
The ls command only displays
the name of a directory or file.
The dir command displays
detailed information such as the
file size and creation time.
Delete the specified file on the remote FTP server
permanently.
delete remotefile Optional.
Set the file transfer mode to ASCII. ascii
Optional.
ASCII by default.
Set the file transfer mode to binary. binary
Optional.
ASCII by default.
Set the data transmission mode to passive. passive
Optional.
Passive by default.
Display the local working directory of the FTP client.
lcd Optional.
Upload a file to the FTP server.
put localfile
[ remotefile ]
Optional.
Download a file from the FTP server.
get remotefile
[ localfile ]
Optional.
Using another username to log in to an FTP server
After the switch serving as the FTP client has established a connection with the FTP server, use another
username to log in to the FTP server. For more information about establishing an FTP connection, see
āEstablishing an FTP connection.ā
T
his feature allows you to switch to different user levels without affecting the current FTP connection; if you
enter an incorrect username or password, the current connection is terminated, and you must log in again to
access the FTP server.
Follow the step below to use another username to log in to the FTP server:
Task Command
Remarks
Use another username to re-log in after
successfully logging in to the FTP server.
user username [ password ] Optional.