Context
After logging in to the FTP server, you can perform the following operations:
l
Configuring data type for the file
l
Uploading or downloading files
l
Creating directories on or deleting directories from the FTP server
l
Displaying information about a specified remote directory or a file of the FTP server, or
deleting a specified file from the FTP server
After logging in to the FTP server and entering the FTP client view, you can perform the
following one or more operations:
Procedure
l
Configuring data type and transmission mode for the file.
–
Run:
ascii
or
binary
The data type of the file to be transmitted is ascii or binary mode.
NOTE
FTP supports the ASCII type and the binary type. Their differences are as follows:
l
In ASCII transmission mode, ASCII characters are used to separate carriage returned from
line feeds.
l
In binary transmission mode, characters can be transferred without format conversion or
formatting.
The selection of the FTP transmission mode is client-customized. The system defaults to the
ASCII transmission mode. The client can use a mode switch command to switch between the
ASCII mode and the binary mode. The ASCII mode is used to transmit .txt files and the binary
mode is used to transmit binary files.
l
Upload or download files.
–
Upload or download a file.
–
Run:
put
local-filename
[
remote-filename
]
The local file is uploaded to the remote FTP server.
–
Run:
get
remote-filename
[
local-filename
]
The FTP file is downloaded from the FTP server and saved to the local file.
l
Run one or more commands in the following order to manage directories.
–
Run:
cd
pathname
The working path of the remote FTP server is specified.
–
Run:
pwd
The specified directory of the FTP server is displayed.
–
Run:
lcd
[
local-directory
]
The directory of the FTP client is displayed or changed.
Huawei AR2200 Series Enterprise Routers
Configuration Guide - Basic Configuration
6 Managing File System
Issue 02 (2011-10-15)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
95