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.
-
-opathname Save file as pathname when auto-fetching.
-
-p Enable passive mode (the default).
-
-Pport Specify alternate port number.
-
-rwait 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.
-
-Tdirection,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
getfor 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.
Read now
Unlock full access