Name
ftp
Synopsis
Transfers files to or from a computer running the FTP Server service.
Syntax
ftp [-v] [-n] [-i] [-d] [-g] [-s:filename
] [-a] [-w:windowsize
] [hostname
]
Options
-
-a
Uses any local interface for the endpoint of the FTP data connection. (The FTP data connection is used for transferring files and is different from the FTP control connection, which is used for sending FTP commands between the client and server.)
-
-d
Enables debugging mode, which displays all FTP commands sent between the client and server.
-
-g
Disables globbing (filename expansion) so that wildcards can be used within local paths and filenames without being interpreted by the shell.
-
-i
Disables interactive prompting when multiple files are being transferred.
-
-n
Disables autologon to establish a control connection with the remote host, but nothing else.
-
-s:
filename
Executes a series of FTP commands stored in a text file as a batch job.
-
-w:
windowsize
Specifies the amount of data that can be transferred before requiring that the receiving end issue a configuration. The defaul, transfer buffer size is 4,096 bytes.
-
-v
Disables showing responses of remote FTP connections.
-
hostname
Identifies the computer name (DNS or NetBIOS name) or IP address of the remote computer you want to connect to using FTP (this must be the last parameter on the line).
FTP Commands
There is a whole separate set of FTP-specific commands you can use
when you run ftp
in interactive mode. Here are
some of the more commonly used ones:
-
!
Escapes ...
Get Windows 2000 Administration in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.