42
ascii
Syntax
ascii
View
FTP client view
Default Level
3: Manage level
Parameters
None
Description
Use the
ascii
command to set the file transfer mode to ASCII.
By default, the file transfer mode is ASCII.
The carriage return characters vary with operating systems. For example, to indicate
the end of a line and transfer to the next line, the H3C device system and Windows
system use characters
/r/n
, and the Linux system uses characters
/n
. Therefore, after the
file transmission between two systems that use different carriage return characters, such
as Linux system and H3C device system, the FTP transmission mode must be applied to
ensure the correct resolution of the files.
FTP transfers files in two modes:
1.
Binary mode: for program file or picture transmission.
2.
ASCII mode: for text file transmission.
Related commands:
binary
.
Examples
Set the file transfer mode to ASCII.
[ftp] ascii
200 Type set to A.
binary
Syntax
binary
View
FTP client view