HP-UX Reference (11i v1 05/09) - 1 User Commands A-M (vol 1)
f
ftp(1) ftp(1)
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 original name. If this pro-
cess 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.
sendport
Toggle the use of PORT commands. By default, ftp attempts to use a PORT command when estab-
lishing 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.
HP-UX 11i Version 1: September 2005 − 5 − Hewlett-Packard Company Section 1−−309