📄 tftp.1
字号:
.\" Copyright (c) 1986 The Regents of the University of California..\" All rights reserved..\".\" Redistribution and use in source and binary forms are permitted.\" provided that the above copyright notice and this paragraph are.\" duplicated in all such forms and that any documentation,.\" advertising materials, and other materials related to such.\" distribution and use acknowledge that the software was developed.\" by the University of California, Berkeley. The name of the.\" University may not be used to endorse or promote products derived.\" from this software without specific prior written permission..\" THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR.\" IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED.\" WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE..\".\" @(#)tftp.1 5.3 (Berkeley) 9/20/88.\".TH TFTP 1 "September 20, 1988".UC 6.SH NAMEtftp \- trivial file transfer program.SH SYNOPSIS.B tftp[host].SH DESCRIPTION.I Tftpis the user interface to the Internet TFTP(Trivial File Transfer Protocol),which allows users to transfer files to and from a remote machine.The remote.I hostmay be specified on the command line, in which case.I tftpuses.I hostas the default host for future transfers (see the.B connectcommand below)..SH COMMANDSOnce.I tftpis running, it issues the prompt.B tftp>and recognizes the following commands:.TP\fBconnect\fP \fIhost-name\fP [ \fIport\fP ]Set the.I host(and optionally.IR port )for transfers.Note that the TFTP protocol, unlike the FTP protocol,does not maintain connections betweeen transfers; thus, the.I 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 .I connectcommand; the remote host can be specified as part of the.I getor.I putcommands..TP\fBmode\fP \fItransfer-mode\fPSet the mode for transfers; .I transfer-modemay be one of.IR asciior.IR binary .The default is.IR ascii ..TP\fBput\fP \fIfile\fP.ns.TP\fBput\fP \fIlocalfile remotefile\fP.ns.TP\fBput\fP \fIfile1 file2 ... fileN remote-directory\fPPut 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.I host: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.I UNIXmachine..TP\fBget\fP \fIfilename\fP.ns.TP\fBget\fP \fIremotename\fP \fIlocalname\fP.ns.TP\fBget\fP \fIfile1\fP \fIfile2\fP ... \fIfileN\fPGet a file or set of files from the specified.IR sources ..I 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.I host: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..TP.B quitExit.IR tftp .An end of file also exits..TP.B verboseToggle verbose mode..TP.B traceToggle packet tracing..TP.B statusShow current status..TP\fBrexmt\fP \fIretransmission-timeout\fPSet the per-packet retransmission timeout, in seconds..TP\fBtimeout\fP \fItotal-transmission-timeout\fPSet the total transmission timeout, in seconds..TP.B asciiShorthand for "mode ascii".TP.B binaryShorthand for "mode binary".TP\fBblocksize\fP \fItransfer-blocksize\fPSet the blocksize that is used for transfers. This assumes that theserver knows about RFC1782 and RFC1783 extensions to the TFTPprotocol; automatic fallback is supported and will result in a defaultblocksize of 512 octets..TP\fB?\fP \ [ \fIcommand-name\fP ... ]Print help information..SH BUGS.PPBecause there is no user-login or validation withinthe.I 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.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -