Managing Files Using Ftp Commands - Huawei AR1200 Series User Configuration Manual

Enterprise routers
Hide thumbs Also See for AR1200 Series:
Table of Contents

Advertisement

Huawei AR1200 Series Enterprise Routers
Configuration Guide - Basic Configuration

6.3.8 Managing Files Using FTP Commands

After logging in to the router that functions as an FTP server using FTP, you can upload and
download files to and from the router, or manage the directories on the router.
Context
After logging in to the FTP server, you can perform the following operations:
l
l
l
l
After logging in to the FTP server and entering the FTP client view, you can perform the
following operations:
Procedure
l
l
l
Issue 04 (2012-05-15)
Configuring data type for the file
Uploading or downloading files
Creating directories or deleting directories on the FTP server
Displaying information about a specific remote directory or a file of the FTP server, or
deleting a specific file from the FTP server
Configuring the data type and transmission mode for a file
– Run:
ascii or binary
The data type of the file to be transmitted is ascii or binary.
NOTE
FTP supports ASCII and the binary files. The difference the two is:
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.
An FTP transmission mode can be set for each client. The system uses ASCII transmission mode
by default, but a mode switch command can switch a client between ASCII and binary modes.
The ASCII mode is used to transmit .txt files and the binary mode is used to transmit binary files.
Uploading or downloading 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.
Running one or more of the following commands to manage directories
– Run:
cd pathname
The working path of the remote FTP server is specified.
– Run:
pwd
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
6 Managing the File System
115

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents