version 1.7, 2003/06/03 02:56:18 |
version 1.8, 2003/09/25 09:45:46 |
|
|
.Sh SYNOPSIS |
.Sh SYNOPSIS |
.Nm tftp |
.Nm tftp |
.Op Ar host |
.Op Ar host |
|
.Op Ar port |
.Sh DESCRIPTION |
.Sh DESCRIPTION |
.Nm |
.Nm |
is the user interface to the Internet |
is the user interface to the Internet |
|
|
which allows users to transfer files to and from a remote machine. |
which allows users to transfer files to and from a remote machine. |
The remote |
The remote |
.Ar host |
.Ar host |
|
and |
|
.Ar port |
may be specified on the command line, in which case |
may be specified on the command line, in which case |
.Nm |
.Nm |
uses |
uses them as the default for future transfers (see the |
.Ar host |
|
as the default host for future transfers (see the |
|
.Ic connect |
.Ic connect |
command below). |
command below). |
.Sh COMMANDS |
.Sh COMMANDS |
|
|
.Pp |
.Pp |
.It Ic ascii |
.It Ic ascii |
Shorthand for |
Shorthand for |
.Ic mode ascii . |
.Ic mode Ar ascii . |
.Pp |
.Pp |
.It Ic binary |
.It Ic binary |
Shorthand for |
Shorthand for |
.Ic mode binary . |
.Ic mode Ar binary . |
.Pp |
.Pp |
.It Ic connect Ar host Op Ar port |
.It Ic connect Ar host Op Ar port |
Set the |
Set the |
|
|
.Ic put |
.Ic put |
commands. |
commands. |
.Pp |
.Pp |
.It Ic get Ar filename |
.It Xo |
.It Ic get Ar remotename localname |
.Ic get Oo Ar host Ns : Oc Ns |
.It Ic get Ar file Op Ar ... |
.Ar file Op Ar localname |
Get a file or set of files from the specified |
.Xc |
.Ar sources . |
.It Xo |
.Ar source |
.Ic get Oo Ar host1 Ns : Oc Ns |
can be in one of two forms: |
.Ar file1 |
a filename on the remote host, if the host has already been specified, |
.Oo Ar host2 Ns : Oc Ns |
or a string of the form |
.Ar file2 |
.Ar hosts:filename |
.Ar ... |
to specify both a host and filename at the same time. |
.Oo Ar hostN Ns : Oc Ns |
If the latter form is used, |
.Ar fileN |
the last hostname specified becomes the default for future transfers. |
.Xc |
|
Get a file or set of files from the remote host. |
|
When using the |
|
.Ar host |
|
argument, the |
|
.Ar host |
|
will be used as the default host for future transfers. |
|
If |
|
.Ar localname |
|
is specified, |
|
the file is stored locally as |
|
.Ar localname , |
|
otherwise the original filename is used. |
.Pp |
.Pp |
|
Note that it is not possible to download two files at the same time; |
|
only one, three, or more than three files |
|
can be downloaded at the same time. |
|
.Pp |
.It Ic mode Ar transfer-mode |
.It Ic mode Ar transfer-mode |
Set the mode for transfers; |
Set the mode for transfers; |
.Ar transfer-mode |
.Ar transfer-mode |
may be one of |
may be one of |
.Ic ascii |
.Ar ascii |
or |
or |
.Ic binary . |
.Ar binary . |
The default is |
The default is |
.Ic ascii . |
.Ar ascii . |
.Pp |
.Pp |
.It Ic put Ar file |
.It Xo |
.It Ic put Ar localfile remotefile |
.Ic put Ar file |
.It Ic put Ar file1 file2 ... fileN remote-directory |
.Oo Oo Ar host Ns : Oc Ns |
Put a file or set of files to the specified |
.Ar remotename Oc |
remote file or directory. |
.Xc |
The destination |
.It Xo |
can be in one of two forms: |
.Ic put Ar file1 file2 ... fileN |
a filename on the remote host, if the host has already been specified, |
.Oo Oo Ar host Ns : Oc Ns |
or a string of the form |
.Ar remote-directory Oc |
.Ar hosts:filename |
.Xc |
to specify both a host and filename at the same time. |
Put a file or set of files to the remote host. |
If the latter form is used, |
When using the |
the hostname specified becomes the default for future transfers. |
.Ar host |
If the remote-directory form is used, the remote host is |
argument, the |
assumed to be a |
.Ar host |
|
will be used as the default host for future transfers. |
|
If |
|
.Ar remotename |
|
is specified, the file is stored remotely as |
|
.Ar remotename , |
|
otherwise the original filename is used. |
|
If the |
|
.Ar remote-directory |
|
argument is used, the remote host is assumed to be a |
.Tn UNIX |
.Tn UNIX |
machine. |
machine. |
.Pp |
.Pp |
|
Note that files may only be written to if they already exist on the |
|
remote host and are publicly writable. |
|
See |
|
.Xr tftpd 8 |
|
for further details. |
|
.Pp |
.It Ic quit |
.It Ic quit |
Exit |
Exit |
.Nm tftp . |
.Nm tftp . |
|
|
Toggle verbose mode. |
Toggle verbose mode. |
.El |
.El |
.Sh SEE ALSO |
.Sh SEE ALSO |
.Xr ftp 1 |
.Xr ftp 1 , |
|
.Xr tftpd 8 |
.Sh HISTORY |
.Sh HISTORY |
The |
The |
.Nm |
.Nm |
|
|
sort of file access restrictions in place. |
sort of file access restrictions in place. |
The exact methods are specific to each site and therefore |
The exact methods are specific to each site and therefore |
difficult to document here. |
difficult to document here. |
|
.Pp |
|
Files larger than 33488896 octets (65535 blocks) cannot be transferred |
|
without client and server supporting blocksize negotiation (RFC 1783). |
|
.Pp |
|
Many tftp clients will not transfer files over 16744448 octets (32767 blocks). |