Open System Services Shell and Utilities Reference Manual (G06.29+, H06.08+, J06.03+)

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 specified.
$ macro [argument ...]
Executes the specified macro, previously defined 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 file to a file on the remote host. If the remote filename is not specified,
the local filename 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 file. For more information on these subcommands, see their
individual descriptions.
ascii Sets the file 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) file system
will always arrive as Guardian file type 180.
bell Sounds a bell after the completion of each file transfer.
binary Sets the file transfer type to binary image. This can be more efficient than an ASCII
transfer. Attempts to transfer binary-image files 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) file system will always
arrive as Guardian file 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 filenames. When case is on, remote filenames that appear in
all capital letters are changed from uppercase to lowercase when written in the local
directory. The default is off (uppercase remote filenames are written in uppercase in the
local directory).
cd remote_directory
Changes the remote working directory to the specified 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. Defined macros are erased. Same
as disconnect.
527188-021 Hewlett-Packard Company 3161