Annotation of src/usr.bin/tftp/tftp.1, Revision 1.2
1.2 ! deraadt 1: .\" $OpenBSD: tftp.1,v 1.5 1995/08/18 14:45:44 pk Exp $
1.1 deraadt 2: .\" $NetBSD: tftp.1,v 1.5 1995/08/18 14:45:44 pk Exp $
3: .\"
4: .\" Copyright (c) 1990, 1993, 1994
5: .\" The Regents of the University of California. All rights reserved.
6: .\"
7: .\" Redistribution and use in source and binary forms, with or without
8: .\" modification, are permitted provided that the following conditions
9: .\" are met:
10: .\" 1. Redistributions of source code must retain the above copyright
11: .\" notice, this list of conditions and the following disclaimer.
12: .\" 2. Redistributions in binary form must reproduce the above copyright
13: .\" notice, this list of conditions and the following disclaimer in the
14: .\" documentation and/or other materials provided with the distribution.
15: .\" 3. All advertising materials mentioning features or use of this software
16: .\" must display the following acknowledgement:
17: .\" This product includes software developed by the University of
18: .\" California, Berkeley and its contributors.
19: .\" 4. Neither the name of the University nor the names of its contributors
20: .\" may be used to endorse or promote products derived from this software
21: .\" without specific prior written permission.
22: .\"
23: .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
24: .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
25: .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
26: .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
27: .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
28: .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
29: .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
30: .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
31: .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
32: .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
33: .\" SUCH DAMAGE.
34: .\"
35: .\" @(#)tftp.1 8.2 (Berkeley) 4/18/94
36: .\"
37: .Dd April 18, 1994
38: .Dt TFTP 1
39: .Os BSD 4.3
40: .Sh NAME
41: .Nm tftp
42: .Nd trivial file transfer program
43: .Sh SYNOPSIS
44: .Nm tftp
45: .Op Ar host
46: .Sh DESCRIPTION
47: .Nm Tftp
48: is the user interface to the Internet
49: .Tn TFTP
50: (Trivial File Transfer Protocol),
51: which allows users to transfer files to and from a remote machine.
52: The remote
53: .Ar host
54: may be specified on the command line, in which case
55: .Nm tftp
56: uses
57: .Ar host
58: as the default host for future transfers (see the
59: .Cm connect
60: command below).
61: .Sh COMMANDS
62: Once
63: .Nm tftp
64: is running, it issues the prompt
65: .Ql tftp>
66: and recognizes the following commands:
67: .Pp
68: .Bl -tag -width verbose -compact
69: .It Cm \&? Ar command-name ...
70: Print help information.
71: .Pp
72: .It Cm ascii
73: Shorthand for "mode ascii"
74: .Pp
75: .It Cm binary
76: Shorthand for "mode binary"
77: .Pp
78: .It Cm connect Ar host-name Op Ar port
79: Set the
80: .Ar host
81: (and optionally
82: .Ar port )
83: for transfers.
84: Note that the
85: .Tn TFTP
86: protocol, unlike the
87: .Tn FTP
88: protocol,
89: does not maintain connections between transfers; thus, the
90: .Cm connect
91: command does not actually create a connection,
92: but merely remembers what host is to be used for transfers.
93: You do not have to use the
94: .Cm connect
95: command; the remote host can be specified as part of the
96: .Cm get
97: or
98: .Cm put
99: commands.
100: .Pp
101: .It Cm get Ar filename
102: .It Cm get Ar remotename localname
103: .It Cm get Ar file1 file2 ... fileN
104: Get a file or set of files from the specified
105: .Ar sources .
106: .Ar Source
107: can be in one of two forms:
108: a filename on the remote host, if the host has already been specified,
109: or a string of the form
110: .Ar hosts:filename
111: to specify both a host and filename at the same time.
112: If the latter form is used,
113: the last hostname specified becomes the default for future transfers.
114: .Pp
115: .It Cm mode Ar transfer-mode
116: Set the mode for transfers;
117: .Ar transfer-mode
118: may be one of
119: .Em ascii
120: or
121: .Em binary .
122: The default is
123: .Em ascii .
124: .Pp
125: .It Cm put Ar file
126: .It Cm put Ar localfile remotefile
127: .It Cm put Ar file1 file2 ... fileN remote-directory
128: Put a file or set of files to the specified
129: remote file or directory.
130: The destination
131: can be in one of two forms:
132: a filename on the remote host, if the host has already been specified,
133: or a string of the form
134: .Ar hosts:filename
135: to specify both a host and filename at the same time.
136: If the latter form is used,
137: the hostname specified becomes the default for future transfers.
138: If the remote-directory form is used, the remote host is
139: assumed to be a
140: .Tn UNIX
141: machine.
142: .Pp
143: .It Cm quit
144: Exit
145: .Nm tftp .
146: An end of file also exits.
147: .Pp
148: .It Cm rexmt Ar retransmission-timeout
149: Set the per-packet retransmission timeout, in seconds.
150: .Pp
151: .It Cm status
152: Show current status.
153: .Pp
154: .It Cm timeout Ar total-transmission-timeout
155: Set the total transmission timeout, in seconds.
156: .Pp
157: .It Cm trace
158: Toggle packet tracing.
159: .Pp
160: .It Cm verbose
161: Toggle verbose mode.
162: .El
163: .Sh BUGS
164: .Pp
165: Because there is no user-login or validation within
166: the
167: .Tn TFTP
168: protocol, the remote site will probably have some
169: sort of file-access restrictions in place. The
170: exact methods are specific to each site and therefore
171: difficult to document here.
172: .Sh HISTORY
173: The
174: .Nm
175: command appeared in
176: .Bx 4.3 .