| TFTP(1) | General Commands Manual | TFTP(1) |
tftp — trivial
file transfer program
tftp |
[host [port]] |
tftp 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
port may be specified on the command line, in which
case tftp uses them as the default for future
transfers (see the connect command below).
Once tftp is running, it issues the prompt
‘tftp>’ and recognizes the
following commands:
?|help
[command ...]asciimode ascii.
binarymode binary.
blksize
block-sizeconnect
host [port]connect 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 connect command; the
remote host can be specified as part of the get or
put commands.
get
[host:]file
[localname]get
[host1:]file1
[host2:]file2 ...
[hostN:]fileNNote that it is not possible to download two files at the same time; only one, three, or more than three files can be downloaded at the same time.
mode
transfer-modeput
file
[[host:]remotename]put
file1 file2 ... fileN
[[host:]remote-directory]Note that files may only be written to if they already exist on the remote host and are publicly writable. See tftpd(8) for further details.
quittftp. An end-of-file also exits.
rexmt
retransmission-timeoutstatustimeout
total-transmission-timeouttouttout option. This option delivers the
retransmission timeout, which is set by rexmt, to
the server, so the server uses the same retransmission timeout as the
client.
tsizetsize option. This option delivers the
total size of the file to be transferred. With this value given, the
client or server can decide whether they are able to accept the file.
traceverboseThe tftp command appeared in
4.3BSD.
Because 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 difficult to document here.
| October 4, 2022 | openbsd |