O'Reilly logo

Windows Server 2003 in a Nutshell by Mitch Tulloch

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 to transfer files and is different from the FTP control connection, which sends 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 confirmation. The default 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).

Commands

You can select from a whole separate set of FTP-specific commands when you run ftp in interactive mode. Here are some of the more commonly used:

!

Escapes from an interactive FTP session to the command ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required