HP-UX Reference (11i v1 05/09) - 1 User Commands A-M (vol 1)
f
ftp(1) ftp(1)
remote file and directory names. Globbing metacharacters are always expanded for the
ls and dir
commands. If globbing is enabled, metacharacters are also expanded for the multiple-file commands
mdelete, mdir, mget, mls, and
mput.
hash
Toggle printing of a hash-sign (
#) for each 1024 bytes transferred. Note that the use of this feature
may cause performance degradation.
help [command ]
Print an informative message about the
ftp command called ftp-command.Ifftp-command is
unspecified, print a list of all
ftp commands.
idle [seconds ]
Set the inactivity timer on the remote server to seconds seconds. If seconds is omitted,
ftp prints
the current inactivity timer.
lcd [ local-directory]
Set the local working directory to local-directory.Iflocal-directory is unspecified, set the local work-
ing directory to the user’s local home directory.
ls [remote-directory][local-file ]
Write a listing of remote-directory to local-file. The listing includes any system-dependent information
that the server chooses to include; for example, most UNIX systems produce output from the com-
mand
ls -l (see also nlist). If neither remote-directory nor local-file is specified, list the remote
working directory. If globbing is enabled, globbing metacharacters are expanded.
macdef macro-name
Define a macro. Subsequent lines are stored as the macro macro-name; an empty input line ter-
minates macro input mode. There is a limit of 16 macros and 4096 total characters in all defined mac-
ros. Macros remain defined until a close command is executed. The macro processor interprets
$
and \ as special characters. A $ followed by a number (or numbers) is replaced by the corresponding
argument on the macro invocation command line. A $ followed by an i signals to the macro processor
that the executing macro is to be looped. On the first pass $i is replaced by the first argument on the
macro invocation command line, on the second pass it is replaced by the second argument, and so on.
A
\ followed by any character is replaced by that character. Use the \ to prevent special treatment
of the $.
mdelete [remote-files ]
Delete remote-files. If globbing is enabled, globbing metacharacters are expanded.
mdir remote-files local-file
Write a listing of remote-files to local-file. If globbing is enabled, globbing metacharacters are
expanded. If interactive prompting is on,
ftp prompts the user to verify that the last argument is
indeed the target local file for mdir output.
mget remote-files
Copy remote-files to the local system. If globbing is enabled, globbing metacharacters are expanded.
The resulting local file names are processed according to case, ntrans, and nmap settings.
mkdir directory-name
Create remote directory-name.
mls remote-files local-file
Write an abbreviated listing of remote-files to local-file. If globbing is enabled, globbing metacharac-
ters are expanded. If interactive prompting is on, ftp prompts the user to verify that the last argu-
ment is indeed the target local file for mls output.
mode [mode-name ]
Set the FTP file transfer mode to mode-name. The only supported mode is stream.
modtime remote-file
Show the last modification time of remote-file.
mput local-files
Copy local-files from the local system to the remote system. The remote files have the same name as
the local files processed according to ntrans and nmap settings. If globbing is enabled, globbing char-
acters are expanded.
newer file-name
Get the file only if the modification time of the remote file is more recent that the file on the current
HP-UX 11i Version 1: September 2005 − 3 − Hewlett-Packard Company Section 1−−307