3com 4500 PWR 26-PORT User Manual

Page of 466
FTP Client Commands
329
230 User logged in
[ftp]passive
% Passive is on
[ftp]
put
Syntax
put localfile [ remotefile ]
View
FTP Client view
Parameter
localfile:
 Local file name.
remotefile:
 File name on the remote FTP Server.
Description
Use the 
put
 command to upload a local file to the remote FTP Server.
If the user does not specify the filename on the remote server, the system will 
consider it the same as the local file name by default.
Example
Upload the local file 
temp.c
 to the remote FTP Server and saves it as 
temp1.c
.
<SW4500>ftp 1.1.1.1
Trying ...
Press CTRL+K to abort
Connected.
220 FTP service ready.
User(none):hello
331 Password required for hello.
Password:
230 User logged in
[ftp]put temp.c temp1.c
200 Port command okay.
150 Opening ASCII mode data connection for temp1.c.
226 Transfer complete.
FTP: 1709 byte(s) sent in 0.316 second(s) 5.00Kbyte(s)/sec.
[ftp]
pwd
Syntax
pwd
View
FTP Client view
Parameter
None
Description
Use the 
pwd 
command to display the current directory on the remote FTP Server.