Open System Services Shell and Utilities Reference Manual (G06.27+, H06.04+)

User Commands (d - f) ftp(1)
SUBCOMMANDS
The following ftp subcommands can be entered at the prompt. If an argument for a subcommand
includes spaces, enclose the argument within "" (double quotes).
![command [argument ...]]
Invokes an interactive shell on the local host. An optional command, with one or more
optional arguments, can be specied.
$ macro [argument ...]
Executes the specied macro, previously dened with the macdef subcommand. Argu-
ments are not expanded. See the macdef subcommand for further information.
? [subcommand]
Displays a help message describing the subcommand. If you do not specify subcom-
mand, ftp displays a list of known subcommands.
account [password]
Sends a supplemental password that a remote host may require before granting access to
its resources. If the password is not supplied with the command, you are prompted for
the password. The password does not appear on the screen.
append local_file [remote_file]
Appends a local le to a le on the remote host. If the remote lename is not specied,
the local lename is used, altered by any setting made with the ntrans or nmap subcom-
mand. The append subcommand uses the current values for form, mode, struct, and
type while appending the le. For more information on these subcommands, see their
individual descriptions.
ascii Sets the le transfer type to network ASCII. This is the default. File transfer may be
more efcient with binary-image transfer. File transfers to the Guardian (/G) le system
will always arrive as Guardian le type 180.
bell Sounds a bell after the completion of each le transfer.
binary Sets the le transfer type to binary image. This can be more efcient than an ASCII
transfer. Attempts to transfer binary-image les without specifying this subcommand
can lead to corrupt data, since linefeeds and carriage returns are interpreted differently
by the ascii subcommand. File transfers to the Guardian (/G) le system will always
arrive as Guardian le type 180.
bye Ends the File Transfer session and exits ftp. Same as quit. An End of File key sequence
(default control-D) also terminates the session and exits.
case Sets a toggle for the case of lenames. When case is on, remote lenames that appear in
all capital letters are changed from uppercase to lowercase when written in the local
directory. The default is off (uppercase remote lenames are written in uppercase in the
local directory).
cd remote_directory
Changes the remote working directory to the specied directory.
cdup Changes the working directory on the remote host to the parent of the current directory.
close Ends the File Transfer session, but does not exit ftp.Dened macros are erased. Same
as disconnect.
527188-004 Hewlett-Packard Company 3157