tftp(1)tftp(1)NAMEtftp - trivial file transfer program
SYNOPSIS
val] val] [host [port]]
DESCRIPTION
is the user interface to the Internet TFTP (Trivial File Transfer Pro‐
tocol), 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 com‐
mands:
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
command does not actually create a connection, but
merely remembers what host is to be used for trans‐
fers. 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 host‐
name specified 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
speci‐
fied sources.
source
can
be
in
one
of
two
forms:
a
file‐
name
on
the
remote
host
if
the
host
has
already
been
spec‐
i‐
fied,
or
a
string
of
the
form
to
spec‐
ify
both
a
host
and
file‐
name
at
the
same
time.
If
the
lat‐
ter
form
is
used,
the
last
host‐
name
spec‐
i‐
fied
becomes
the
default
for
future
trans‐
fers.
To
invoke
the com‐
mand
with
an
IPv6
address,
the
IPv6
address
must
be
enclosed
in
a
pair
of
square
brack‐
ets
Exit Typ‐
ing
the
end-
of-
file
char‐
ac‐
ter
also
causes
an
exit.
Toggle
verbose
mode.
Toggle
packet
tracing.
Show
current
status.
Set the
per-
packet
retrans‐
mission
timeout,
in sec‐
onds.
Set the
total
trans‐
mission
timeout,
in sec‐
onds.
Short‐
hand for
"mode
ascii"
Short‐
hand for
"mode
binary"
Set the
block
size for
data
trans‐
fer. The
client
and the
server
communi‐
cate to
arrive
upon
a
block
size
that
is
suit‐
able
for
use
on
the
net‐
work
medium.
The
valid
range
is
8
to
65464
octets.
The
default
value
is
512
octets.
Set the
retrans‐
mission
timeout,
in sec‐
onds.
The
client
and the
server com‐
mu‐
ni‐
cate
to
arrive
upon
a
retrans‐
mis‐
sion
time‐
out
value.
The
valid
range
is
1
to
255
sec‐
onds.
The
default
value
is
5
sec‐
onds.
Toggles
the use
of
transfer
size.
This
option
is
imple‐
mented
for
binary
mode trans‐
fers
only.
By
default,
this
option
is
dis‐
abled.
If
this
option
is
enabled,
it
allows
the
receiv‐
ing
side
to
deter‐
mine
the
size
of
the
file
being
trans‐
ferred.
When
the
com‐
mand
is
used
in
binary
mode
and
the
size
of
the
file
is
greater
than
the
free
disk
space,
trans‐
fer
will
be
aborted
imme‐
di‐
ately.
When
the
com‐
mand
is
used
in
binary
mode,
the
size
of
the
file
will
be
sent
to
the
server.
Print
help
informa‐
tion.
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 Univer‐
sity of Cali‐
fornia, Berke‐
ley.
SEE ALSOtftpd(1M).
tftp(1)