Version from Minshall
[unix-history] / usr / src / usr.bin / tftp / tftp.1
CommitLineData
b28a081b
JL
1.TH TFTP 1C "7 February 1986"
2.SH NAME
3tftp \- trivial file transfer program
4.SH SYNOPSIS
5.B tftp
6[
7host
8]
9.SH DESCRIPTION
10.I Tftp
11is the user interface to the Internet TFTP
12(Trivial File Transfer Protocol),
13which allows users to transfer files to and from a remote machine.
14The remote
15.I host
16may be specified on the command line, in which case
17.I tftp
18uses
19.I host
20as the default host for future transfers (see the
21.B connect
22command below).
23.SH COMMANDS
24Once
25.I tftp
26is running, it issues the prompt
27.B tftp>
28and recognizes the following commands:
29.TP
30\fBconnect\fP \fIhost-name\fP [ \fIport\fP ]
31Set the
32.I host
33(and optionally
34.IR port )
35for transfers.
36Note that the TFTP protocol, unlike the FTP protocol,
37does not maintain connections betweeen transfers; thus, the
38.I connect
39command does not actually create a connection,
40but merely remembers what host is to be used for transfers.
41You do not have to use the
42.I connect
43command; the remote host can be specified as part of the
44.I get
45or
46.I put
47commands.
48.TP
49\fBmode\fP \fItransfer-mode\fP
50Set the mode for transfers;
51.I transfer-mode
52may be one of
53.IR ascii
54or
55.IR binary .
56The default is
57.IR ascii .
58.TP
59\fBput\fP \fIfile\fP
60.TP
61\fBput\fP \fIlocalfile remotefile\fP
62.TP
63\fBput\fP \fIfile1 file2 ... fileN remote-directory\fP
64Put a file or set of files to the specified
65remote file or directory.
66The destination
67can be in one of two forms:
68a filename on the remote host, if the host has already been specified,
69or a string of the form
70.I host:filename
71to specify both a host and filename at the same time.
72If the latter form is used,
73the hostname specified becomes the default for future transfers.
74If the remote-directory form is used, the remote host is
75assumed to be a
76.I UNIX
77machine.
78.TP
79\fBget\fP \fIfilename\fP
80.TP
81\fBget\fP \fIremotename\fP \fIlocalname\fP
82.TP
83\fBget\fP \fIfile1\fP \fIfile2\fP ... \fIfileN\fP
84Get a file or set of files from the specified
85.IR sources .
86.I Source
87can be in one of two forms:
88a filename on the remote host, if the host has already been specified,
89or a string of the form
90.I host:filename
91to specify both a host and filename at the same time.
92If the latter form is used,
93the last hostname specified becomes the default for future transfers.
94.TP
95.B quit
96Exit
97.IR tftp .
98.TP
99.B verbose
100Toggle verbose mode.
101.TP
102.B trace
103Toggle packet tracing.
104.TP
105.B status
106Show current status.
107.TP
108\fBrexmt\fP \fIretransmission-timeout\fP
109Set the per-packet retransmission timeout, in seconds.
110.TP
111\fBtimeout\fP \fItotal-transmission-timeout\fP
112Set the total transmission timeout, in seconds.
113.TP
114.B ascii
115Shorthand for "mode ascii"
116.TP
117.B binary
118Shorthand for "mode binary"
119.TP
120\fB?\fP \ [ \fIcommand-name\fP ... ]
121Print help information.
122.SH BUGS
123.PP
124Because there is no user-login or validation within
125the
126.I TFTP
127protocol, the remote site will probably have some
128sort of file-access restrictions in place. The
129exact methods are specific to each site and therefore
130difficult to document here.