BSD 4_3_Tahoe development
[unix-history] / usr / man / cat1 / tftp.0
TFTP(1C) UNIX Programmer's Manual TFTP(1C)
N\bNA\bAM\bME\bE
tftp - trivial file transfer program
S\bSY\bYN\bNO\bOP\bPS\bSI\bIS\bS
t\btf\bft\btp\bp [ host ]
D\bDE\bES\bSC\bCR\bRI\bIP\bPT\bTI\bIO\bON\bN
_\bT_\bf_\bt_\bp 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 _\bh_\bo_\bs_\bt may be
specified on the command line, in which case _\bt_\bf_\bt_\bp uses _\bh_\bo_\bs_\bt
as the default host for future transfers (see the c\bco\bon\bnn\bne\bec\bct\bt
command below).
C\bCO\bOM\bMM\bMA\bAN\bND\bDS\bS
Once _\bt_\bf_\bt_\bp is running, it issues the prompt t\btf\bft\btp\bp>\b> and recog-
nizes the following commands:
c\bco\bon\bnn\bne\bec\bct\bt _\bh_\bo_\bs_\bt-_\bn_\ba_\bm_\be [ _\bp_\bo_\br_\bt ]
Set the _\bh_\bo_\bs_\bt (and optionally _\bp_\bo_\br_\bt) for transfers. Note
that the TFTP protocol, unlike the FTP protocol, does
not maintain connections betweeen transfers; thus, the
_\bc_\bo_\bn_\bn_\be_\bc_\bt 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 _\bc_\bo_\bn_\bn_\be_\bc_\bt command;
the remote host can be specified as part of the _\bg_\be_\bt or
_\bp_\bu_\bt commands.
m\bmo\bod\bde\be _\bt_\br_\ba_\bn_\bs_\bf_\be_\br-_\bm_\bo_\bd_\be
Set the mode for transfers; _\bt_\br_\ba_\bn_\bs_\bf_\be_\br-_\bm_\bo_\bd_\be may be one of
_\ba_\bs_\bc_\bi_\bi or _\bb_\bi_\bn_\ba_\br_\by. The default is _\ba_\bs_\bc_\bi_\bi.
p\bpu\but\bt _\bf_\bi_\bl_\be
p\bpu\but\bt _\bl_\bo_\bc_\ba_\bl_\bf_\bi_\bl_\be _\br_\be_\bm_\bo_\bt_\be_\bf_\bi_\bl_\be
p\bpu\but\bt _\bf_\bi_\bl_\be_\b1 _\bf_\bi_\bl_\be_\b2 ... _\bf_\bi_\bl_\be_\bN _\br_\be_\bm_\bo_\bt_\be-_\bd_\bi_\br_\be_\bc_\bt_\bo_\br_\by
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
_\bh_\bo_\bs_\bt:_\bf_\bi_\bl_\be_\bn_\ba_\bm_\be 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 _\bU_\bN_\bI_\bX machine.
g\bge\bet\bt _\bf_\bi_\bl_\be_\bn_\ba_\bm_\be
g\bge\bet\bt _\br_\be_\bm_\bo_\bt_\be_\bn_\ba_\bm_\be _\bl_\bo_\bc_\ba_\bl_\bn_\ba_\bm_\be
g\bge\bet\bt _\bf_\bi_\bl_\be_\b1 _\bf_\bi_\bl_\be_\b2 ... _\bf_\bi_\bl_\be_\bN
Get a file or set of files from the specified _\bs_\bo_\bu_\br_\bc_\be_\bs.
_\bS_\bo_\bu_\br_\bc_\be 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 _\bh_\bo_\bs_\bt:_\bf_\bi_\bl_\be_\bn_\ba_\bm_\be to specify both a
Printed 7/9/88 April 20, 1986 1
TFTP(1C) UNIX Programmer's Manual TFTP(1C)
host and filename at the same time. If the latter form
is used, the last hostname specified becomes the
default for future transfers.
q\bqu\bui\bit\bt Exit _\bt_\bf_\bt_\bp. An end of file also exits.
v\bve\ber\brb\bbo\bos\bse\be
Toggle verbose mode.
t\btr\bra\bac\bce\be
Toggle packet tracing.
s\bst\bta\bat\btu\bus\bs
Show current status.
r\bre\bex\bxm\bmt\bt _\br_\be_\bt_\br_\ba_\bn_\bs_\bm_\bi_\bs_\bs_\bi_\bo_\bn-_\bt_\bi_\bm_\be_\bo_\bu_\bt
Set the per-packet retransmission timeout, in seconds.
t\bti\bim\bme\beo\bou\but\bt _\bt_\bo_\bt_\ba_\bl-_\bt_\br_\ba_\bn_\bs_\bm_\bi_\bs_\bs_\bi_\bo_\bn-_\bt_\bi_\bm_\be_\bo_\bu_\bt
Set the total transmission timeout, in seconds.
a\bas\bsc\bci\bii\bi
Shorthand for "mode ascii"
b\bbi\bin\bna\bar\bry\by
Shorthand for "mode binary"
?\b? [ _\bc_\bo_\bm_\bm_\ba_\bn_\bd-_\bn_\ba_\bm_\be ... ]
Print help information.
B\bBU\bUG\bGS\bS
Because there is no user-login or validation within the _\bT_\bF_\bT_\bP
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.
Printed 7/9/88 April 20, 1986 2