HP-UX Reference (11i v2 03/08) - 1 User Commands A-M (vol 1)
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 performs the
command for all specified files.
proxy ftp-command
Execute an ftp command on a secondary control connection. This command allows simultaneous
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 com-
mand proxy ? to see other FTP commands executable on the secondary connection. The follow-
ing 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 con-
nection to the host on the primary control connection. Third party file transfers depend upon sup-
port 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, pro-
cessed 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 original 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.
Section 1−−310 Hewlett-Packard Company − 5 − HP-UX 11i Version 2: August 2003