TFTP(1c,C) AIX TCP/IP User s Guide TFTP(1c,C) ------------------------------------------------------------------------------- tftp PURPOSE Trivial file transfer program. SYNTAX +--------+ tftp ---| |---| +- host -+ DESCRIPTION The tftp command is the user interface to the Internet TFTP (Trivial File Transfer Protocol), which allows users to transfer files to and from a remote machine. The remote host may be specified on the command line, in which case, tftp uses host as the default host for future transfers (see the connect command below). Note: Different implementations of the tftp server impose different user access restrictions on file transfers, for example, get and put. These restrictions are determined by the remote host. See "tftpd" for restrictions on connecting to an AIX server for tftp. COMMANDS Once tftp is running, it issues the prompt tftp> k and recognizes the following commands: connect host-name [port] Set the host (and optionally port) for transfers . Note that the TFTP protocol, unlike the FTP protocol, does not maintain connections between transfers. Thus, the connect command does not actually create a connection, but merely remembers wh a host is to be used for transfers. You must use the connect command to specify the remote host. mode[ascii|binary] Set the mode for transfers. Transfer mode may be one of ascii or binary. The default is ascii. put filename put localfile remotefile Processed March 8, 1991 TFTP(1c,C) 1 TFTP(1c,C) AIX TCP/IP User s Guide TFTP(1c,C) put file1 file2...fileN remote-directory Put a file or set of files to the specified remote file or directory. Specify the destination as a directory or file name on the remote host. If the remote-directory form is used, the remote host is assumed to be an AIX system. get filename get remotename localname get file1 file2...fileN Get a file or set of files from the specified sources. Specify source as a file name on the remote host. Warning: If the get command is used to overwrite an existing file and the remote file cannot be found, then the local file will be replaced by an empty file. For this reason, you may prefer to use the ftp or rcp command if you are overwriting an important local file. quit Exit tftp. An end of file also exits. verbose Toggle verbose mode. trace Toggle packet tracing. status Show current status. rexmt retransmission-timeout Set the per packet retransmission timeout in seconds. timeout total-transmission-timeout Set the total transmission timeout in seconds. ascii Shorthand for mode ascii binary Shorthand for mode binary ? [command-name ... ] Print help information. Processed March 8, 1991 TFTP(1c,C) 2 TFTP(1c,C) AIX TCP/IP User s Guide TFTP(1c,C) EXAMPLES $ tftp host1 tftp> ? Commands may be abbreviated. Commands are: connect connect to remote tftp mode set file transfer mode put send file get receive file quit exit tftp verbose toggle verbose mode trace toggle packet tracing status show current status binary set mode to octet ascii set mode to netascii rexmt set per-packet retransmission timeout timeout set total retransmission timeout ? print help information tftp> quit $ Processed March 8, 1991 TFTP(1c,C) 3