📄 tftp.1.in
字号:
.\" -*- nroff -*- --------------------------------------------------------- *.\" $Id: tftp.1.in,v 1.3 2004/01/08 20:47:00 hpa Exp $.\" .\" Copyright (c) 1990, 1993, 1994.\" The Regents of the University of California. All rights reserved..\".\" Copyright 2001 H. Peter Anvin - All Rights Reserved.\".\" Redistribution and use in source and binary forms, with or without.\" modification, are permitted provided that the following conditions.\" are met:.\" 1. Redistributions of source code must retain the above copyright.\" notice, this list of conditions and the following disclaimer..\" 2. Redistributions in binary form must reproduce the above copyright.\" notice, this list of conditions and the following disclaimer in the.\" documentation and/or other materials provided with the distribution..\" 3. Neither the name of the University nor the names of its contributors.\" may be used to endorse or promote products derived from this software.\" without specific prior written permission..\".\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION).\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF.\" SUCH DAMAGE..\".\"----------------------------------------------------------------------- */.TH TFTP 1 "2 February 2003" "tftp-hpa @@VERSION@@" "User's Manual".SH NAME.B tftp\- IPv4 Trivial File Transfer Protocol client.SH SYNOPSIS.B tftp[ \fIoptions...\fP ][\fIhost\fP [\fIport\fP]][\fB\-c\fP \fIcommand\fP].br.SH DESCRIPTION.B tftpis a client for the IPv4 Trivial file Transfer Protocol, which can beused to transfer files to and from remote machines, including somevery minimalistic, usually embedded, systems. The remote.I hostmay be specified on the command line, in which case.B tftpuses.I hostas the default host for future transfers (see the.B connectcommand below.).SH OPTIONS.TP\fB\-c\fP \fIcommand\fPExecute \fIcommand\fP as if it had been entered on the tftp prompt.Must be specified last on the command line..TP\fB\-m\fP \fImode\fPSet the default transfer mode to \fImode\fP. This is usually used with \-c..TP.B \-vDefault to verbose mode..TP.B \-VPrint the version number and configuration to standard output, thenexit gracefully..SH COMMANDSOnce.B tftpis running, it issues the prompt\f(CWtftp>\fPand recognizes the following commands:.TP\fB?\fP \fIcommand-name...\fP.TP\fBhelp\fP \fIcommand-name...\fPPrint help information.TP.B asciiShorthand for.BR "mode ascii" ..TP.B binaryShorthand for.BR "mode binary" ..TP\fBconnect\fP \fIhost [port]\fPSet the.I host(and optionally.IR port )for transfers. Note that the TFTP protocol, unlike the FTP protocol,does not maintain connections between transfers; thus, the.B connectcommand does not actually create a connection, but merely rememberswhat host is to be used for transfers. You do not have to use the.B connectcommand; the remote host can be specified as part of the.B getor.B putcommands..TP\fBget\fP \fIfile\fP.sp -.6l.TP\fBget\fP \fIremotefile localfile\fP.sp -.6l.TP\fBget\fP \fIfile1 file2 file3...\fPGet a file or set of files from the specified sources. A remotefilename can be in one of two forms: a plain filename on the remotehost, if the host has already been specified, or a string of the form.I "host:filename"to specify both a host and filename at the same time. If the latterform is used, the last hostname specified becomes the default forfuture transfers..TP\fBmode\fP \fItransfer-mode\fPSpecify the mode for transfers;.I transfer-modemay be one of.B ascii(or.BR netascii )or.B binary(or.BR octet .)The default is.BR ascii ..TP\fBput\fP \fIfile\fP.sp -.6l.TP\fBput\fP \fIlocalfile remotefile\fP.sp -.6l.TP\fBput\fP \fIfile1 file2 file3... remote-directory\fPPut a file or set of files to the specified remote file or directory.The destination can be in one of two forms: a filename on the remotehost, if the host has already been specified, or a string of the form.I "host:filename"to specify both a host and filename at the same time. If the latterform is used, the hostname specified becomes the default for futuretransfers. If the remote-directory form is used, the remote host isassumed to be a UNIX system or another system using.B /as directory separator..TP.B quitExit.BR tftp .End-of-file will also exit..TP\fBrexmt\fP \fIretransmission-timeout\fPSet the per-packet retransmission timeout, in seconds..TP.B statusShow current status..TP\fBtimeout\fP \fItotal-transmission-timeout\fPSet the total transmission timeout, in seconds..TP.B traceToggle packet tracing (a debugging feature.).TP.B verboseToggle verbose mode..SH "NOTES"The TFTP protocol provides no provisions for authentication orsecurity. Therefore, the remote server will probably implement somekinds of access restriction or firewalling. These access restrictionsare likely to be site- and server-specific..SH "AUTHOR"This version of.B tftpis maintained by H. Peter Anvin <hpa@zytor.com>. It was derived from,but has substantially diverged from, an OpenBSD source base, withadded patches by Markus Gutschke and Gero Kulhman..SH "SEE ALSO".BR tftpd (8).
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -