Command Manual – FTP and TFTP
Quidway S3900 Series Ethernet Switches-Release 1510
Chapter 1 FTP and TFTP
Huawei Technologies Proprietary
1-21
1.2.19 ls
Syntax
ls
[
remotefile
[
localfile
] ]
View
FTP client view
Parameter
remotefile
: Name of the remote file to be queried.
Localfile
: Name of the local file where the querying result is to be saved.
Description
Use the
ls
command to display the information about a specified file on a remote FTP
server.
If you do not specify the
remotefile
argument, names of all the files in the current remote
directory are displayed.
Caution:
The
ls
command only displays file names, while the
dir
command displays file
information in more detail, including file size, creation date and so on.
Example
# Enter FTP client view.
<Quidway> ftp 2.2.2.2
Trying ...
Press CTRL+K to abort
Connected.
220 WFTPD 2.0 service (by Texas Imperial Software) ready for new user
User(none):switch
331 Give me your password, please
Password:
230 Logged in successfully
[ftp]
# Display the names of all the files in the current directory on the remote FTP server.
[ftp] ls
200 PORT command okay