tftp(1) General Commands Manual tftp(1)
NAME
tftp - trivial file transfer program
SYNOPSIS
val] val] [host [port]]
DESCRIPTION
is the user interface to the Internet TFTP (Trivial File Transfer Protocol), that allows users to transfer files to and from a remote
machine. The remote host can be specified on the command line, in which case uses host as the default host for future transfers (see the
command below).
Note
now conforms to the RFCs: 2347, 2348, and 2349.
Options
supports the following new options:
Set the block size option for data transfer, in octets. See
command for more information.
Set the use of transfer size option. See
command for more information.
Set the retransmission timeout option, in seconds. See
command for more information.
Commands
Once is running, it issues the prompt and recognizes the following commands:
Set the host (and optionally port) for transfers. Note that the TFTP protocol, unlike the FTP protocol, does not maintain con-
nections between transfers; thus, the 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 command; the remote host can be specified as part of the or com-
mands.
Set the mode for transfers;
transfer-mode can be one of or (default is
Put a file or set of files to the specified remote file or directory.
The destination 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 to specify both a host and filename at the same time. If the latter form is used, the hostname spec-
ified becomes the default for future transfers. If the remote-directory form is used, the remote host is assumed to be
a UNIX-like machine.
To invoke the
command with an IPv6 address, the IPv6 address must be enclosed in a pair of square brackets
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 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.
To invoke the
command with an IPv6 address, the IPv6 address must be enclosed in a pair of square brackets
Exit Typing the end-of-file character also causes an exit.
Toggle verbose mode.
Toggle packet tracing.
Show current status.
Set the per-packet retransmission timeout, in seconds.
Set the total transmission timeout, in seconds.
Shorthand for "mode ascii"
Shorthand for "mode binary"
Set the block size for data transfer. The client and the server communicate
to arrive upon a block size that is suitable for use on the network medium. The valid range is 8 to 65464 octets. The
default value is 512 octets.
Set the retransmission timeout, in seconds. The client and the server
communicate to arrive upon a retransmission timeout value. The valid range is 1 to 255 seconds. The default value is 5
seconds.
Toggles the use of transfer size. This option is implemented for binary mode
transfers only. By default, this option is disabled. If this option is enabled, it allows the receiving side to deter-
mine the size of the file being transferred. When the command is used in binary mode and the size of the file is greater
than the free disk space, transfer will be aborted immediately. When the command is used in binary mode, the size of the
file will be sent to the server.
Print help information.
WARNINGS
Since there is no user-login or validation within the TFTP protocol, the remote site probably has some sort of file-access restrictions in
place. The exact methods are specific to each site and are therefore difficult to document here.
AUTHOR
was developed by the University of California, Berkeley.
SEE ALSO
tftpd(1M).
tftp(1)