ftp.1 (2010 09)

f
ftp(1) ftp(1)
prompt Toggle interactive prompting. By default,
ftp prompts the user for a yes or no response for
each output file during multiple-file commands. If interactive prompting is disabled,
ftp per-
forms the command for all specified files.
proxy ftp-command
Execute an ftp command on a secondary control connection. This command allows simul-
taneous connection to two remote FTP servers for transferring files between the two servers.
The first proxy command should be an
open, to establish the secondary control connection.
Enter the command
proxy ? to see other FTP commands executable on the secondary con-
nection. The following commands behave differently when prefaced by
proxy: open does
not define new macros during the auto-login process,
close does not erase existing macro
definitions,
get and mget transfer files from the host on the primary control connection to
the host on the secondary control connection, and
put, mput, and append transfer files from
the host on the secondary control connection to the host on the primary control connection.
Third party file transfers depend upon support of the FTP protocol
PASV command by the
server on the secondary control connection.
put local-file [ remote-file ]
Copy local-file to remote-file .Ifremote-file is unspecified,
ftp assigns the local-file name,
processed according to any ntrans or nmap settings, to the remote-file name.
pwd Write the name of the remote working directory to stdout .
quit A synonym for bye.
quote arguments
Send arguments , verbatim, to the server host. See ftpd (1M).
recv remote-file [ local-file ]
A synonym for get.
reget remote-file [ local-file ]
reget acts like get, except that if local-file exists and is smaller than remote-file, local-file is
presumed to be a partially transferred copy of remote-file and the transfer is continued from
the apparent point of failure. This command is useful when transferring very large files over
networks that tend to drop connections.
rhelp [ command-name ]
Request help from the server host. If command-name is specified, supply it to the server. See
ftpd (1M).
rstatus [ file-name ]
With no arguments, show status of remote machine. If file-name is specified, show status of
file-name on remote machine.
rename remote-from remote-to
Rename remote-from , which can be either a file or a directory, to remote-to .
reset Clear reply queue. This command re-synchronizes command/reply sequencing with the remote
FTP server. Resynchronization may be necessary following a violation of the FTP protocol by
the remote server.
restart marker
Restart the immediately following get or put at the indicated marker. On UNIX systems,
marker is usually a byte offset into the file.
rmdir remote-directory
Delete remote-directory. remote-directory must be an empty directory.
runique Toggle storing of files on the local system with unique filenames. If a file already exists with a
name equal to the target local filename for a get or mget command, a .1 is appended to
the name. If the resulting name matches another existing file, a .2 is appended to the origi-
nal name. If this process continues up to .99, an error message is printed, and the transfer
does not take place. ftp reports the unique filename. Note that runique does not affect
local files generated from a shell command (see below). The default value is off.
send local-file [ remote-file ]
A synonym for put.
6 Hewlett-Packard Company 6 HP-UX 11i Version 3: September 2010