Name

ftp

Synopsis

    ftp [options] [hostname]

Transfer files to and from remote network site hostname. ftp prompts the user for a command. Type help to see a list of known commands.

Common Options

-d

Enable debugging.

-e

Disable command-line editing and history. GNU/Linux and Mac OS X only.

-g

Disable filename expansion (globbing).

-i

Turn off interactive prompting.

-n

No auto-login upon initial connection.

-p

Use passive mode for transfering data.

-v

Verbose on. Show all responses from remote server.

Solaris Options

-a

Use GSSAPI authentication. If authentication fails, close the connection.

-v

Forward local security credentials to the server.

-m GSSAPI-mech

Use the provided GSSASPI mechanism. For details see mech(4).

-t

Enable packet tracing. This option is not yet implemented.

-T timeout

Use timeout in seconds for the global connection timer.

-x

Use GSSAPI for authentication and encryption.

Mac OS X Options

-4

Use only IPv4 addresses.

-6

Use only IPv6 addresses.

-a

Use anonymous login instead of the normal login procedure.

-A

Force active mode FTP. The default is passive mode.

-f

Force a cache reload when a transfer goes through an FTP or HTTP proxy.

-N netrc-file

Use the given file instead of $HOME/.netrc.

-o file

Save the first automatically retrieved file to file, unless file is - or starts with |. See the manpage for more details.

-P port

Use port number port.

-r count

When a connection attempt fails, wait count seconds and then retry.

-R

Restart all nonproxied auto-fetches.

-t

Get Unix in a Nutshell, 4th Edition 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.