ftp(1)

Kerberos

ftp(1)

been successfully completed. If no argument is included, the user is prompted for an account password in a non-echoing input mode.

append local-file [ remote-file ]

Copy local-®leto the end of remote-®le. If remote-®leis left unspeci®ed, the local ®le name is used in naming the remote ®le after being altered by any ntrans or nmap setting.

ascii

Set the ®le transfer type to network ASCII. This is the default type.

bell

Sound a bell after each ®le transfer completes.

binary

Set the ®le transfer type to binary.

bye Close the connection to the server host if a connection was open, and exit. Typing an end-of-®le (EOF) character also terminates and exits the session.

case

Toggle remote computer ®le name case mapping during mget commands. When case is on (the default is off), remote computer ®le names with all letters in uppercase are written in the local directory with the letters mapped to lowercase.

cd remote-directory

Set the working directory on the server host to remote-directory.

cdup

Set the working directory on the server host to the parent of the current remote working directory.

chmod mode file-name

Change the permission modes of the ®le ®le-nameon the remote system to mode.

close

Terminate the connection to the server host. The close command does not exit ftp. Any de®ned macros are erased.

cr Toggle carriage return stripping during ascii type ®le retrieval. Records are denoted by a carriage-return/line-feed sequence during ascii type ®le transfer. When cr is on (the default), carriage returns are stripped from this sequence to conform with the UNIX single line-feed record del- imiter. Records on non-UNIX remote systems may contain single line-feeds; when an ascii type transfer is made, these line-feeds can be distinguished from a record delimiter only when cr is off.

delete remote-file

Delete remote-®le. The remote-®lecan be an empty directory. No globbing is done.

dir [ remote-directory ] [ local-file ]

Write a remote-directorylisting to standard output or optionally to local-®le. If neither remote- directory nor local-®leis speci®ed, list the remote working directory to standard output. If interactive prompting is on, ftp prompts the user to verify that the last argument is indeed the target ®le for dir output. Globbing characters are always expanded.

disconnect

A synonym for close.

form format

Set the ®le transfer form to format. The only supported format is non-print

get remote-file [ local-file ]

Copy remote-®leto local-®le. If local-®leis unspeci®ed, ftp uses the speci®ed remote-®lename as the local-®lename, subject to alteration by the current case, ntrans, and nmap settings.

glob

Toggle ®le name globbing. When ®le name globbing is enabled, ftp expands csh(1) metacharacters in ®le and directory names. These characters are *, ?, [, ], Ä, {, and }. The server host expands remote ®le 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-®le 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

HP-UX Release 11i: December 2000

− 2 −

Section 1303

f