Skip to Content
Mac OS X in a Nutshell
book

Mac OS X in a Nutshell

by Jason McIntosh, Chuck Toporek, Chris Stone
January 2003
Intermediate to advanced
832 pages
32h 40m
English
O'Reilly Media, Inc.
Content preview from Mac OS X in a Nutshell

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

-A

Force active mode for use with older servers.

-a

Perform anonymous login automatically.

-d

Enable debugging.

-e

Disable command-line editing.

-f

Performs 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.

-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 that allows changing maximum on the fly. Direction can be get for incoming transfers, put

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Mac OS X Internals: A Systems Approach

Mac OS X Internals: A Systems Approach

Amit Singh
C++ In a Nutshell

C++ In a Nutshell

Ray Lischner
Linux Shell Scripting Cookbook - Third Edition

Linux Shell Scripting Cookbook - Third Edition

Clif Flynt, Sarath Lakshman, Shantanu Tushar
Optimized C++

Optimized C++

Kurt Guntheroth

Publisher Resources

ISBN: 0596003706Supplemental ContentCatalog PageErrata