NAME
ttffttpp - trivial file transfer program
SYNOPSIS
ttffttpp [-ee] [host] [port]
DESCRIPTION
ttffttpp 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 (and optional port) may be specified on the command line, in which case ttffttpp uses host (and port) as the default for future transfers (see the ccoonnnneecctt command below).The optional -ee argument sets a binary transfer mode as well as setting
the extended options as if ttoouutt, ttssiizzee, and bbllkkssiizzee 6655446644, had been given. CCOOMMMMAANNDDSSOnce ttffttpp is running, it issues the prompt `tftp>' and recognizes the
following commands:?? command-name ...
Print help information. aasscciiii Shorthand for "mode ascii" bbiinnaarryy Shorthand for "mode binary"bbllkkssiizzee blk-size
Set the tftp blksize option to blk-size octets (8-bit bytes).
Since the number of blocks in a tftp ggeett or ppuutt is 65535, the
default block size of 512 bytes only allows a maximum of just under 32 megabytes to be transferred. The value given forblk-size must be between 8 and 65464, inclusive. Note that many
servers will not respect this option.ccoonnnneecctt host-name [port]
Set the host (and optionally port) for transfers. Note that theTFTP protocol, unlike the FTP protocol, does not maintain con-
nections between transfers; thus, the ccoonnnneecctt command does not actually create a connection, but merely remembers what host is to be used for transfers. You do not have to use the ccoonnnneecctt command; the remote host can be specified as part of the ggeett or ppuutt commands. ggeett filename ggeett remotename localname ggeett file1 file2 ... fileN Get a file or set of files from the specified sources. Source can be in one of two forms: a filename on the remote host, if the host has already been specified, or a string of the form hosts:filename to specify both a host and filename at the same time. If the latter form is used, the last hostname specified becomes the default for future transfers.mmooddee transfer-mode
Set the mode for transfers; transfer-mode may be one of ascii or
binary. The default is ascii. ppuutt file ppuutt localfile remotefileppuutt file1 file2 ... fileN remote-directory
Put a file or set of files to the specified remote file ordirectory. The destination can be in one of two forms: a file-
name on the remote host, if the host has already been specified, or a string of the form hosts:filename to specify both a host and filename at the same time. If the latter form is used, the hostname specified becomes the default for future transfers. Ifthe remote-directory form is used, the remote host is assumed to
be a UNIX machine. If you need to specify IPv6 numeric address to hosts, wrap them using square bracket like [hosts]:filename to disambiguate the colon. qquuiitt Exit ttffttpp. An end of file also exits.rreexxmmtt retransmission-timeout
Set the per-packet retransmission timeout, in seconds.
ssttaattuuss Show current status.ttiimmeeoouutt total-transmission-timeout
Set the total transmission timeout, in seconds.ttoouutt Toggle the tftp "timeout" option. If enabled, the client will
pass its retransmission-timeout to the server. Note that many
servers will not respect this option. ttrraaccee Toggle packet tracing.ttssiizzee Toggle the tftp "tsize" option. If enabled, the client will
pass and request the filesize of a file at the beginning of a file transfer. Note that many servers will not respect this option. vveerrbboossee Toggle verbose mode. HISTORY The ttffttpp command appeared in 4.3BSD. IPv6 support was implemented byWIDE/KAME project in 1999. TFTP options were implemented by Wasabi Sys-
tems, Inc., in 2003, and first appeared in NetBSD 2.0. SSEECCUURRIITTYY CCOONNSSIIDDEERRAATTIIOONNSSBecause there is no user-login or validation within the TFTP protocol,
the remote site will probably have some sort of file-access restrictions
in place. The exact methods are specific to each site and therefore dif-
ficult to document here. BSD June 11, 2003 BSD