Command Manual – File System Management
H3C S7500E Series Ethernet Switches
Chapter 2 FTP Configuration Commands
2-17
Examples
# Display the local directory.
[ftp] lcd
FTP: Local directory now flash:/temp
2.2.17 ls
Syntax
ls
[
remotefile
] [
localfile
] ]
View
FTP client view
Parameters
remotefile
: Filename or directory on the remote FTP server.
localfile
: Name of a local file used to save the displayed information.
Description
Use the
ls
command to view the information of all the files and subdirectories under the
current directory of the remote FTP server. The file names and subdirectory names are
displayed.
Use the
ls
remotefile
command to view the information of a specified file or
subdirectory.
Use the
ls
remotefile
localfile
command view the information of a specified file or
subdirectory, and save the result to a local file specified by the
localfile
argument.
Note:
The
Is
command can only display the names of files and directories, whereas the
dir
command can display other related information of the files and directories, such as the
size, the date they are created.
Examples
# View the information of all files and subdirectories under the current directory of the
FTP server.
[ftp] ls
227 Entering Passive Mode (192,168,1,50,17,165).
125 ASCII mode data connection already open, transfer starting for *.