1tftp(1)                          User Commands                         tftp(1)
2
3
4

NAME

6       tftp - trivial file transfer program
7

SYNOPSIS

9       tftp [host [port]]
10
11

DESCRIPTION

13       tftp  is the user interface to the Internet TFTP (Trivial File Transfer
14       Protocol), which allows users to transfer files to and  from  a  remote
15       machine. The remote host and optional port may be specified on the com‐
16       mand line, in which case tftp uses host as the  default  host,  and  if
17       specified, port as the default port, for future transfers. See the con‐
18       nect command below.
19

USAGE

21       Once tftp is running, it issues the prompt  tftp>  and  recognizes  the
22       following commands:
23
24   Commands
25       connect host-name [ port ]
26
27           Set  the  host, and optionally port, for transfers. The TFTP proto‐
28           col, unlike the FTP protocol, does not maintain connections between
29           transfers;  thus,  the  connect  command does not actually create a
30           connection, but merely remembers what host is to be used for trans‐
31           fers.  You  do not have to use the connect command; the remote host
32           can be specified as part of the get or put commands.
33
34
35       mode transfer-mode
36
37           Set the mode for transfers; transfer-mode may be one  of  ascii  or
38           binary. The default is ascii.
39
40
41       put filename
42       put localfile remotefile
43       put filename1 filename2 ... filenameN remote-directory
44
45           Transfer a file, or a set of files, to the specified remote file or
46           directory. The destination can be in one of two forms:  a  filename
47           on  the  remote  host  if the host has already been specified, or a
48           string of the form:
49
50             host:filename
51
52           to specify both a host and filename at the same time. If the latter
53           form  is  used,  the  specified host becomes the default for future
54           transfers. If the remote-directory form is used, the remote host is
55           assumed to be running the UNIX system.
56
57           The  host  can  be  a  host  name (see hosts(4)) or an IPv4 or IPv6
58           address string (see inet(7P) or inet6(7P)).  Since  IPv6  addresses
59           already  contain ":"s, the host should be enclosed in square brack‐
60           ets when an IPv6 address is used. Otherwise, the  first  occurrence
61           of  a  colon  will be interpreted as the separator between the host
62           and the filename. For example,
63
64             [1080::8:800:200c:417A]:myfile
65
66           Files may be written only if they already exist  and  are  publicly
67           writable. See in.tftpd(1M).
68
69
70       get filename
71       get remotename localname
72       get filename1 filename2 filename3 ... filenameN
73
74           Get  a  file  or  set  of  files (three or more) from the specified
75           remote sources. source can be in one of two forms:  a  filename  on
76           the remote host if the host has already been specified, or a string
77           of the form:
78
79             host:filename
80
81           to specify both a host and filename at the same time. If the latter
82           form  is  used,  the  last  host  specified becomes the default for
83           future transfers. See the put command regarding specifying a host.
84
85
86       quit
87
88           Exit tftp. An EOF also exits.
89
90
91       verbose
92
93           Toggle verbose mode.
94
95
96       trace
97
98           Toggle packet tracing.
99
100
101       status
102
103           Show current status.
104
105
106       rexmtretransmission-timeout
107
108           Set the per-packet retransmission timeout, in seconds.
109
110
111       timeouttotal-transmission-timeout
112
113           Set the total transmission timeout, in seconds.
114
115
116       ascii
117
118           Shorthand for mode ascii.
119
120
121       binary
122
123           Shorthand for mode binary.
124
125
126       blksize transfer-blocksize
127
128           The value of the transfer blocksize option to  negotiate  with  the
129           server. A value of 0 disables the negotiation of this option.
130
131
132       srexmt server-retransmission-timeout
133
134           The  value of the retransmission timeout option to request that the
135           server uses. A value of 0 disables the negotiation of this option.
136
137
138       tsize
139
140           A toggle that sends the transfer size  option  to  the  server.  By
141           default,  the  option  is not sent. The transfer size option is not
142           sent with a write request when the transfer-mode is ascii.
143
144
145       ? [ command-name ... ]
146
147           Print help information.
148
149

ATTRIBUTES

151       See attributes(5) for descriptions of the following attributes:
152
153
154
155
156       ┌─────────────────────────────┬─────────────────────────────┐
157       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
158       ├─────────────────────────────┼─────────────────────────────┤
159       │Availability                 │SUNWtftp                     │
160       └─────────────────────────────┴─────────────────────────────┘
161

SEE ALSO

163       in.tftpd(1M), hosts(4), attributes(5),inet(7P), inet6(7P)
164
165
166       Malkin, G. and Harkin, A. RFC 2347, TFTP Option Extension. The Internet
167       Society. May 1998
168
169
170       Malkin, G. and Harkin, A. RFC 2348, TFTP Blocksize Option. The Internet
171       Society. May 1998
172
173
174       Malkin, G. and Harkin, A. RFC 2349, TFTP Timeout Interval and  Transfer
175       Size Options. The Internet Society. May 1998
176
177
178       Sollins, K.R. RFC 1350, The TFTP Protocol (Revision 2). Network Working
179       Group. July 1992.
180

NOTES

182       The default transfer-mode is ascii. This differs from pre-SunOS 4.0 and
183       pre-4.3BSD  systems, so explicit action must be taken when transferring
184       non-ASCII binary files such as executable commands.
185
186
187       Because there is no user-login or validation within the TFTP  protocol,
188       many  remote sites restrict file access in various ways. Approved meth‐
189       ods for file access are specific to each site, and therefore cannot  be
190       documented here.
191
192
193       When  using  the  get  command to transfer multiple files from a remote
194       host, three or more files must be specified. If two  files  are  speci‐
195       fied, the second file is used as a local file.
196
197
198       With  the  default block size of 512 octets and a 16-bit block counter,
199       some  TFTP  implementations  might  have  problems  with   files   over
200       33,553,919  octets  (513  octets  short  of  32MB) in size. The Solaris
201       implementation can transfer files up to 4GB in size.
202
203
204       By default, the Solaris TFTP client does not enable  the  blocksize  or
205       transfer  size  options. Setting the blocksize option to a higher value
206       is sometimes useful as a workaround when dealing with peers that have a
207       32MB limit.
208
209
210
211SunOS 5.11                        7 May 2007                           tftp(1)
Impressum