HP-UX Reference (11i v2 04/09) - 1 User Commands A-M (vol 1)

f
ftp(1) ftp(1)
NAME
ftp - file transfer program
SYNOPSIS
ftp [-g][-i][
-n][-c][-v][-p][-P][-l][
-B size][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 dis-
abled i.e. 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 establishing 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 (e.g., FDDI), 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.
The name of the server host that
ftp communicates with can be specified on the command line. If the
server host is specified, ftp immediately opens a connection to the server host; see the open command,
below. Otherwise, ftp waits for commands from the user.
The
fallback option can be set in the krb5.conf file within appdefaults Section . Refer to the
krb5.conf(4) manpage for more information on the appdefaults Section .Iffallback is set to true and
the kerberos authentication fails, ftp will use the non-secure mode of authentication.
Note: Command line options override the configuration file options.
File Transfer Protocol specifies file transfer parameters for type, mode, form, and struct .
ftp supports
the ASCII, binary, and tenex File Transfer Protocol types . ASCII is the default FTP type. (It
should be noted though that, whenever ftp establishes a connection between two similar systems, it
switches automatically to the more efficient binary type.) ftp supports only the default values for
the file transfer parameters mode which defaults to stream, form which defaults to non-print, and
struct which defaults to file.
HP-UX 11i Version 2: September 2004 − 1 − Hewlett-Packard Company Section 1−−323