91
4.
Use the
lcd
command to change the local working directory of the FTP client. You can upload
the file or save the downloaded file in this directory.
5.
Upload or download the file.
To work with files on an FTP server, execute the following commands in FTP client view:
Task
Command
Remarks
Display directory or file
information on the FTP server.
•
Display the detailed information of
a directory or file on the FTP
server:
dir
[
remotefile
[
localfile
] ]
•
Display the name of a directory or
file on the FTP server:
ls
[
remotefile
[
localfile
] ]
N/A
Delete a file from the FTP
server permanently.
delete
remotefile
N/A
Set the file transfer mode.
•
Set the file transfer mode to ASCII:
ascii
•
Set the file transfer mode to binary:
binary
The default file transfer mode
is binary.
Change the FTP operation
mode.
passive
The default mode is passive.
Display or change the local
working directory of the FTP
client.
lcd
[
directory
|
/
]
N/A
Upload a file to the FTP server.
put
localfile
[
remotefile
]
N/A
Download a file from the FTP
server.
get
remotefile
[
localfile
]
N/A
Add the content of a file on the
FTP client to a file on the FTP
server.
append
localfile
[
remotefile
]
N/A
Specify the retransmit marker.
restart
marker
Use this command together
with the
put
,
get
, or
append
command.
Update the local file.
newer
remotefile
N/A
Get the missing part of a file.
reget
remotefile
[
localfile
]
N/A
Rename the file.
rename
[
oldfilename
[
newfilename
] ]
N/A
Changing to another user account
After you log in to the FTP server, you can initiate an FTP authentication to change to a new account.
By changing to a new account, you can get a different privilege without re-establishing the FTP
connection.
For successful account change, you must enter the new username and password correctly. A wrong
username or password can cause the FTP connection to be disconnected.
To change to another user account, execute the following command in user view:
Task
Command
Initiate an FTP authentication on the current FTP connection.
user
username
[
password
]
Summary of Contents for FlexNetwork 10500 Series
Page 139: ...130 Sysname display version ...