ftp.1 (2010 09)

f
ftp(1) ftp(1)
sendport
Toggle the use of
PORT commands. By default, ftp attempts to use a PORT command when
establishing a connection for each data transfer. If the
PORT command fails, ftp uses the
default data port. When the use of
PORT
commands is disabled, ftp makes no attempt to
use
PORT commands for each data transfer. This is useful for certain FTP implementations
that ignore PORT commands but (incorrectly) indicate that they’ve been accepted. See
ftpd (1M). Turning
sendport off may cause delays in the execution of commands.
site arguments
Send arguments , verbatim, to the server host as a
SITE command. See ftpd (1M).
size remote-file
Show the size of remote-file.
status Show the current status of ftp
.
struct [ struct-name ]
Set the FTP file transfer struct to struct-name . The only supported struct is
file.
sunique Toggle storing of files on remote machine under unique file names. The remote server reports
the unique name. By default, sunique is off
.
system Show the type of operating system running on the remote machine.
tenex Set the FTP file transfer type to tenex.
type [ type-name ]
Set the FTP file transfer type to type-name .Iftype-name is unspecified, write the current type
to stdout .
Ascii, binary, and tenex are the type s currently supported.
umask [ newmask ]
Set the default umask on the remote server to newmask.Ifnewmask is omitted, the current
umask is printed.
user user-name [ password ][account ]
Log into the server host on the current connection, which must already be open. A .netrc
file in the user’s local home directory can provide the user-name , password , and optionally the
account ; see netrc (4). Otherwise
ftp prompts the user for this information. The HP-UX FTP
server does not require an account . For security reasons, ftp always requires a password. It
does not log into remote accounts that do not have a password.
In a secure environment based on Kerberos V5,
ftp will not require a password. Instead,
Kerberos authentication and authorization will be performed as described in sis(5). In all
other environments, users are considered authenticated if they have a password and that pass-
word is correct, and authorized if an account exists for them on the remote system.
verbose Toggle verbose output. If verbose output is enabled, ftp displays responses from the server
host, and when a file transfer completes, it reports statistics regarding the efficiency of the
transfer.
? [ command ]
A synonym for the help command. Prints the help information for the specified command.
Aborting A File Transfer
To abort a le transfer, use the terminal interrupt key (usually Ctrl-C). Sending transfers are halted
immediately.
ftp halts incoming (receive) transfers by first sending a FTP protocol ABOR command to
the remote server, then discarding any further received data. The speed at which this is accomplished
depends upon the remote server’s support for ABOR processing. If the remote server does not support the
ABOR command, an ftp> prompt does not appear until the remote server completes sending the
requested file.
The terminal interrupt key sequence is ignored while
ftp awaits a reply from the remote server. A long
delay in this mode may result from the ABOR processing described above, or from unexpected behavior
by the remote server, including violations of the FTP protocol. If the delay results from unexpected
remote server behavior, the local ftp program must be killed manually.
File Naming Conventions
Files specified as arguments to
ftp commands are processed according to the following rules.
HP-UX 11i Version 3: September 2010 7 Hewlett-Packard Company 7