xref: /csrg-svn/usr.bin/tftp/tftp.1 (revision 48538)
1*48538Scael.\" Copyright (c) 1990 The Regents of the University of California.
235643Sbostic.\" All rights reserved.
327201Slepreau.\"
4*48538Scael.\" %sccs.include.redist.roff%
527201Slepreau.\"
6*48538Scael.\"     @(#)tftp.1	5.4 (Berkeley) 04/22/91
735643Sbostic.\"
8*48538Scael.Dd
9*48538Scael.Dt TFTP 1
10*48538Scael.Os BSD 4.3
11*48538Scael.Sh NAME
12*48538Scael.Nm tftp
13*48538Scael.Nd trivial file transfer program
14*48538Scael.Sh SYNOPSIS
15*48538Scael.Nm tftp
16*48538Scael.Op Ar host
17*48538Scael.Sh DESCRIPTION
18*48538Scael.Nm Tftp
19*48538Scaelis the user interface to the Internet
20*48538Scael.Tn TFTP
2126991Slepreau(Trivial File Transfer Protocol),
2226991Slepreauwhich allows users to transfer files to and from a remote machine.
2326991SlepreauThe remote
24*48538Scael.Ar host
2526991Slepreaumay be specified on the command line, in which case
26*48538Scael.Nm tftp
2726991Slepreauuses
28*48538Scael.Ar host
2926991Slepreauas the default host for future transfers (see the
30*48538Scael.Cm connect
3126991Slepreaucommand below).
32*48538Scael.Sh COMMANDS
3326991SlepreauOnce
34*48538Scael.Nm tftp
3526991Slepreauis running, it issues the prompt
36*48538Scael.LI tftp>
3726991Slepreauand recognizes the following commands:
38*48538Scael.Pp
39*48538Scael.Bl -tag -width verbose -compact
40*48538Scael.It Cm \&? Ar command-name ...
41*48538ScaelPrint help information.
42*48538Scael.Pp
43*48538Scael.It Cm ascii
44*48538ScaelShorthand for "mode ascii"
45*48538Scael.Pp
46*48538Scael.It Cm binary
47*48538ScaelShorthand for "mode binary"
48*48538Scael.Pp
49*48538Scael.It Cm connect Ar host-name Op Ar port
5026991SlepreauSet the
51*48538Scael.Ar host
5226991Slepreau(and optionally
53*48538Scael.Ar port )
5426991Slepreaufor transfers.
55*48538ScaelNote that the
56*48538Scael.Tn TFTP
57*48538Scaelprotocol, unlike the
58*48538Scael.Tn FTP
59*48538Scaelprotocol,
6026991Slepreaudoes not maintain connections betweeen transfers; thus, the
61*48538Scael.Cm connect
6226991Slepreaucommand does not actually create a connection,
6326991Slepreaubut merely remembers what host is to be used for transfers.
6426991SlepreauYou do not have to use the
65*48538Scael.Cm connect
6626991Slepreaucommand; the remote host can be specified as part of the
67*48538Scael.Cm get
6826991Slepreauor
69*48538Scael.Cm put
7026991Slepreaucommands.
71*48538Scael.Pp
72*48538Scael.It Cm get Ar filename
73*48538Scael.It Cm get Ar remotename localname
74*48538Scael.It Cm get Ar file1 file2 ...  fileN
75*48538ScaelGet a file or set of files from the specified
76*48538Scael.Ar sources .
77*48538Scael.Ar Source
78*48538Scaelcan be in one of two forms:
79*48538Scaela filename on the remote host, if the host has already been specified,
80*48538Scaelor a string of the form
81*48538Scael.Ar hosts:filename
82*48538Scaelto specify both a host and filename at the same time.
83*48538ScaelIf the latter form is used,
84*48538Scaelthe last hostname specified becomes the default for future transfers.
85*48538Scael.Pp
86*48538Scael.It Cm mode Ar transfer-mode
8726991SlepreauSet the mode for transfers;
88*48538Scael.Ar transfer-mode
8926991Slepreaumay be one of
90*48538Scael.Em ascii
9126991Slepreauor
92*48538Scael.Em binary .
9326991SlepreauThe default is
94*48538Scael.Em ascii .
95*48538Scael.Pp
96*48538Scael.It Cm put Ar file
97*48538Scael.It Cm put Ar localfile remotefile
98*48538Scael.It Cm put Ar file1 file2 ... fileN remote-directory
9926991SlepreauPut a file or set of files to the specified
10026991Slepreauremote file or directory.
10126991SlepreauThe destination
10226991Slepreaucan be in one of two forms:
10326991Slepreaua filename on the remote host, if the host has already been specified,
10426991Slepreauor a string of the form
105*48538Scael.Ar hosts:filename
10626991Slepreauto specify both a host and filename at the same time.
10726991SlepreauIf the latter form is used,
10826991Slepreauthe hostname specified becomes the default for future transfers.
10926991SlepreauIf the remote-directory form is used, the remote host is
11026991Slepreauassumed to be a
111*48538Scael.Tn UNIX
11226991Slepreaumachine.
113*48538Scael.Pp
114*48538Scael.It Cm quit
11526991SlepreauExit
116*48538Scael.Nm tftp .
11727201SlepreauAn end of file also exits.
118*48538Scael.Pp
119*48538Scael.It Cm rexmt Ar retransmission-timeout
120*48538ScaelSet the per-packet retransmission timeout, in seconds.
121*48538Scael.Pp
122*48538Scael.It Cm status
12326991SlepreauShow current status.
124*48538Scael.Pp
125*48538Scael.It Cm timeout Ar total-transmission-timeout
12626991SlepreauSet the total transmission timeout, in seconds.
127*48538Scael.Pp
128*48538Scael.It Cm trace
129*48538ScaelToggle packet tracing.
130*48538Scael.Pp
131*48538Scael.It Cm verbose
132*48538ScaelToggle verbose mode.
133*48538Scael.El
134*48538Scael.Sh BUGS
135*48538Scael.Pp
13626991SlepreauBecause there is no user-login or validation within
13726991Slepreauthe
138*48538Scael.Tn TFTP
13926991Slepreauprotocol, the remote site will probably have some
14026991Slepreausort of file-access restrictions in place.  The
14126991Slepreauexact methods are specific to each site and therefore
14226991Slepreaudifficult to document here.
143*48538Scael.Sh HISTORY
144*48538ScaelThe
145*48538Scael.Nm
146*48538Scaelcommand appeared in
147*48538Scael.Bx 4.3 .
148