
| ftp(1) | Kerberos | ftp(1) | 
| user  | [ account ] | 
 | 
| Log into the server host on the current connection, which must already be open. A | .netrc ®le in | |
the user's local home directory can provide the 
verbose
Toggle verbose output. If verbose output is enabled, ftp displays responses from the server host, and when a ®le transfer completes it reports statistics regarding the ef®ciency of the transfer.
?[ command ]
A synonym for the help command. Prints the help information for the speci®ed command.
Aborting A File Transfer
To abort a ®le transfer, use the terminal interrupt key (usually 
The terminal interrupt key sequence is ignored while ftp awaits a reply from the remote server. A long delay in this mode may result from the ABOR processing described above, or from unexpected behavior by the remote server, including violations of the FTP protocol. If the delay results from unexpected remote server behavior, the local ftp program must be killed manually.
File Naming Conventions
Files speci®ed as arguments to ftp commands are processed according to the following rules.
∙If the ®le name - is speci®ed, ftp uses the standard input (for reading) or standard output (for writ- ing).
∙If the ®rst character of the ®le name is , ftp interprets the remainder of the argument as a shell command. ftp forks a shell, using popen() (see popen(3S)) with the supplied argument, and reads (writes) from standard output (standard input). If the shell command includes spaces, the argument must be quoted, as in:
" ls 
Some useful examples of this mechanism are:
ls . " more"
The above command lists the ®les in the current directory page by page.
put " tail 
This command copies the last twenty lines of the local ®le "loc_®le" to the remote system as "rem_®le".
∙Otherwise, if globbing is enabled, ftp expands local ®le names according to the rules used by the C shell (see csh(1)); see the glob command, below. If the ftp command expects a single local ®le (e.g. put), only the ®rst ®lename generated by the globbing operation is used.
∙For mget commands and get commands with unspeci®ed local ®le names, the local ®lename is named the same as the remote ®lename, which may be altered by a case, ntrans, or nmap setting. The resulting ®lename may then be altered if runique is on.
∙For mput commands and put commands with unspeci®ed remote ®le names, the remote ®lename is named the same as the local ®lename, which may be altered by a ntrans or nmap setting. The resulting ®lename may then be altered by the remote server if sunique is on.
WARNINGS
Correct execution of many commands depends upon proper behavior by the remote server.
f
| − 6 − | Section 1−307 |