O'Reilly logo

Mac OS X Tiger in a Nutshell by Jason McIntosh, Chuck Toporek, Chris Stone, Andy Lester

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

ftp [options] [hostname]

Transfers files to and from remote network site hostname. ftp prompts the user for a command. Type help to see a list of known commands, and use the help command to view help on a specific command.

The ftp client included with Mac OS X supports auto-fetch, which allows you to perform a download with a single command line. To auto-fetch a file, supply its location as an argument to ftp in one of several formats:

  • ftp[user @]host:[path][/]

  • ftp[ftp://[user[:password]@]host[:port]/path[/]]

  • ftp[http://[user[:password]@]host[:port]/ path]

Options

-4

Only use IPv4 addresses.

-6

Only use IPv6 addresses.

-A

Force active mode for use with older servers.

-a

Perform anonymous login automatically.

-d

Enable debugging.

-e

Disable command-line editing.

-f

Perform a forced reload of the cache. Useful when transferring through proxies.

-g

Disable filename globbing.

-i

Turn off interactive prompting.

-n

No autologin upon initial connection.

-N filename

Use filename instead of ~/.netrc.

-o pathname

Save file as pathname when auto-fetching.

-p

Enable passive mode (the default).

-P port

Specify alternate port number.

-r wait

Attempt to connect again after wait seconds if initial attempt fails.

-R

When auto-fetching, resume incomplete transfers (if not transferring through a proxy).

-t

Enable packet tracing.

-T direction, maximum [,increment]

Throttle transfer rates by specifying direction of transfer, maximum transfer speed in bytes/second, and an increment value ...

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