⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 tftp.1

📁 linux下tftp客气端的源码实现
💻 1
字号:
.\" Copyright (c) 1990, 1993, 1994.\"	The Regents of the University of California.  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..\" 4. 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..\".\"     @(#)tftp.1	8.2 (Berkeley) 4/18/94.\".Dd April 18, 1994.Dt TFTP 1.Os BSD 4.3.Sh NAME.Nm tftp.Nd trivial file transfer program.Sh SYNOPSIS.Nm tftp.Op Ar host.Sh DESCRIPTION.Nm Tftpis the user interface to the Internet.Tn TFTP(Trivial File Transfer Protocol),which allows users to transfer files to and from a remote machine.The remote.Ar hostmay be specified on the command line, in which case.Nm tftpuses.Ar hostas the default host for future transfers (see the.Cm connectcommand below)..Sh COMMANDSOnce.Nm tftpis running, it issues the prompt.LI tftp>and recognizes the following commands:.Pp.Bl -tag -width verbose -compact.It Cm \&? Ar command-name ...Print help information..Pp.It Cm asciiShorthand for "mode ascii".Pp.It Cm binaryShorthand for "mode binary".Pp.It Cm connect Ar host-name Op Ar portSet the.Ar host(and optionally.Ar port )for transfers.Note that the.Tn TFTPprotocol, unlike the.Tn FTPprotocol,does not maintain connections between transfers; thus, the.Cm connectcommand does not actually create a connection,but merely remembers what host is to be used for transfers.You do not have to use the.Cm connectcommand; the remote host can be specified as part of the.Cm getor.Cm putcommands..Pp.It Cm get Ar filename.It Cm get Ar remotename localname.It Cm get Ar file1 file2 ...  fileNGet a file or set of files from the specified.Ar sources ..Ar Sourcecan be in one of two forms:a filename on the remote host, if the host has already been specified,or a string of the form.Ar hosts:filenameto specify both a host and filename at the same time.If the latter form is used,the last hostname specified becomes the default for future transfers..Pp.It Cm mode Ar transfer-modeSet the mode for transfers;.Ar transfer-modemay be one of.Em asciior.Em binary .The default is.Em ascii ..Pp.It Cm put Ar file.It Cm put Ar localfile remotefile.It Cm put Ar file1 file2 ... fileN remote-directoryPut a file or set of files to the specifiedremote file or directory.The destinationcan be in one of two forms:a filename on the remote host, if the host has already been specified,or a string of the form.Ar hosts:filenameto specify both a host and filename at the same time.If the latter form is used,the hostname specified becomes the default for future transfers.If the remote-directory form is used, the remote host isassumed to be a.Tn UNIXmachine..Pp.It Cm quitExit.Nm tftp .An end of file also exits..Pp.It Cm rexmt Ar retransmission-timeoutSet the per-packet retransmission timeout, in seconds..Pp.It Cm statusShow current status..Pp.It Cm timeout Ar total-transmission-timeoutSet the total transmission timeout, in seconds..Pp.It Cm traceToggle packet tracing..Pp.It Cm verboseToggle verbose mode..El.Sh BUGS.PpBecause there is no user-login or validation withinthe.Tn TFTPprotocol, the remote site will probably have somesort of file-access restrictions in place.  Theexact methods are specific to each site and thereforedifficult to document here..Sh HISTORYThe.Nmcommand appeared in.Bx 4.3 .

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -