HP-UX Reference (11i v1 05/09) - 1 User Commands A-M (vol 1)
f
ftp(1) Kerberos ftp(1)
NAME
ftp - file transfer program
SYNOPSIS
ftp [-g][-i][
-n][-c][-P][-v][-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.
-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 password
is not required and Kerberos authentication and authorization takes place instead. See sis(5).
-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 con-
nection.
-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.
-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 64 (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).
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 within the [appdefaults]
section in the krb5.conf file (For more
information on the
[appdefaults]
section, refer to the krb5.conf(4) manpage in the Kerberos Client
product). If
fallback is set to true and the Kerberos authentication fails,
ftp will use the nonsecure
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.
COMMANDS
ftp supports the following commands. Command arguments with embedded spaces must be enclosed in
quotes (for example, "argument with embedded spaces").
![ command [args ]]
Invoke a shell on the local host. The SHELL environment variable specifies which shell program to
invoke. ftp invokes /usr/bin/sh if SHELL is undefined. If command is specified, the shell
executes it and returns to ftp. Otherwise, an interactive shell is invoked. When the shell ter-
minates, it returns to ftp.
Section 1−−312 Hewlett-Packard Company − 1 − HP-UX 11i Version 1: September 2005