2374
C
158: FTP C
HAPTER
Example
bye
Syntax
View
Parameter
Description
Example
cd
Syntax
View
Parameter
Description
Example
cdup
Syntax
C
C
LIENT
ONFIGURATION
OMMANDS
FTP usprovides two file transfer modes: ASCII and binary. To transfer text files, use
the ASCII mode; to transfer program files, use the binary mode.
By default, the transfer mode is ASCII mode.
# Set the file transfer mode to binary.
[ftp] binary
200 Type set to I.
bye
FTP client view
None
Use the
bye
command to disconnect from the remote FTP server and exit to user
view.
# Terminate the connection with the remote FTP server and exit to user view.
[ftp] bye
221 Server closing.
cd pathname
FTP client view
pathname: Path name.
Use the
command to change the current working directory on the remote FTP
cd
server.
You can use this command to access another authorized directory on the FTP
server.
# Change the current working directory to cf:/logfile.
[ftp] cd cf:/logfile
250 CWD command successful.
cdup