3com S7906E Guide De Référence

Page de 2327
 
2-18 
Use the ls remotefile localfile command to view the information of a specified file or subdirectory, and 
save the result to a local file specified by the localfile argument. 
 
 
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, and 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 /*. 
ar-router.cfg 
logfile 
mainar.app 
arbasicbtm.app 
ftp 
test 
bb.cfg 
testcfg.cfg 
226 Transfer complete. 
FTP: 87 byte(s) received in 0.132 second(s) 659.00 byte(s)/sec. 
# View the information of directory logfile, and save the result to file aa.txt
[ftp] ls logfile aa.txt 
227 Entering Passive Mode (192,168,1,46,4,3). 
125 ASCII mode data connection already open, transfer starting for /logfile/*. 
....226 Transfer complete. 
FTP: 20 byte(s) received in 3.962 second(s), 5.00 byte(s)/sec. 
# View the content of file aa.txt
[ftp] quit 
<Sysname> more aa.txt 
.. 
logfile.log 
mkdir 
Syntax 
mkdir directory