ftp.1 (2010 09)
f
ftp(1) ftp(1)
NAME
ftp - file transfer program
SYNOPSIS
ftp [-g][-i][
-n][-c][-v][-p][-P][-l][
-B size][-z options ...] [ server-host ]
DESCRIPTION
ftp is a user interface to the File Transfer Protocol.
ftp copies files over a network connection
between the local "client" host and a remote "server" host.
ftp
runs on the client host.
Options
The
ftp command supports the following options:
-g Disable file name "globbing"; see the
glob command, below. By default, when this option is
not specified, globbing is enabled.
-i Disable interactive prompting by multiple-file commands; see the
prompt command, below.
By default, when this option is not specified, prompting is enabled.
-n Disable "auto-login"; see the
open command, below. By default, when this option is not
specified, auto-login is enabled.
-c When this option is set, the SYST and TYPE calls are not made by the
ftp client to the server
upon establishing a connection. The
-c option takes effect only when auto-login is disabled,
on other words, when it is invoked along with the -n option. This option does not disable the
SYST and TYPE commands, but only refrains from invoking these commands upon establish-
ing a connection.
-v Enable verbose output; see the verbose command, below. If this option is not specified,
ftp displays verbose output only if the standard input is associated with a terminal.
-p Enable passive mode of operation. Also, refer to the passive command in the COMMANDS
section below. When this option is not specified, by default the passive mode is disabled.
-P Disables Kerberos authentication and authorization. Only applicable in a secure environment
based on Kerberos V5. When this option is specified, a password is required and the password
is sent across the network in a readable form. By default, if this option is not specified, a pass-
word is not required and Kerberos authentication and authorization takes place instead. See
sis(5).
-l In the IPv6 environment, enable the use of LPRT and LPSV commands for data connection. In
this environment, by default ftp uses EPRT and EPSV. In the IPv4 environment PORT and
PASV commands are used.
-B Set the buffer size of the data socket to size blocks of 1024 bytes. The valid range for size is an
integer from 1 to 2097151 (default is 56).
Note : A large buffer size will improve the performance of
ftp on fast links, but may cause
long connection times on slow links (e.g., X.25).
Note : If the buffer size needs to be set to any value other than multiples of 1024 bytes, use
B
immediately after size without any space. The size value will be taken in terms of bytes. For
example, to set the buffer size to a value equal to "1500", use -B 1500B.
-z Used for TLS/SSL related parameters for the client. More than one -z option can be specified
on the command line. The different -z options are as follows:
-z CAfile=file
Specifies the file name for the CA certificate.
-z CApath=PATH
Specifies the pathname for the CA certificate.
-z CRLfile=file
Specifies the CRL file location for the ftp client.
-z CRLpath=PATH
Specifies the pathname of the CRL file.
-z cert=file
Specifies the location of the clients certificate file.
HP-UX 11i Version 3: September 2010 − 1 − Hewlett-Packard Company 1