Illustrated TCP/IP Illustrated TCP/IP
by Matthew G. Naugle
Wiley Computer Publishing, John Wiley & Sons, Inc.
ISBN: 0471196568   Pub Date: 11/01/98
  

Previous Table of Contents Next


Chapter 223
FTP Commands

The following are the available commands in FTP. There are a lot of commands listed but, in reality, only a few are used. They are:

open Open a connection to a remote resource.
close Close a connection to a remote resource.
bye End this FTP session.
binary Indicate that the file transfer will be a file of binary type (i.e., executable file, Lotus file, etc.).
get Get a file from the remote resource; get <filename> mget <multiple files, wildcards included>.
put Put a file to the remote resource; put <filename> mput <multiple files, wildcards included>.
cd Change directory on the remote device; to change the directory on the local end, use lcd.
dir Get a directory listing on the remote device; to get a directory listing on the local end, use ldir.
hash Display hash marks on the screen to indicate a file is being transferred.

FTP Commands

•  open—creates a connection between two hosts.
•  close—closes a connection between two hosts.
•  bye—ends the FTP session.
•  binary—indicate that the file is binary data.
•  get—get the remote file.
•  mget—wildcard to get multiple files.
•  put—puts a file to the remote resource.
•  mput—wildcard to put multiple files.
•  cd—change directory on the remote device.
•  dir—get a directory listing on the remote device.
•  ldir—get a local directory.
•  hash—display hash marks during the transfer.


Previous Table of Contents Next