• 要找福利?记不住网址?搜不到?如何与我们保持联系?试试 CTRL+D 把零点博客添加进您的浏览器收藏夹,一键直达永不失联!

Linux tftp命令

linux系统 涛涛 134次浏览 0个评论

Linux tftp命令用于传输文件。

FTP让用户得以下载存放于远端主机的文件,也能将文件上传到远端主机放置。tftp是简单的文字模式ftp程序,它所使用的指令和FTP类似。

语法

<span class="pln">tftp </span><span class="pun">[主机名称或</span><span class="pln">IP</span><span class="pun">地址]</span>

操作说明:

  • connect:连接到远程tftp服务器
  • mode:文件传输模式
  • put:上传文件
  • get:下载文件
  • quit:退出
  • verbose:显示详细的处理信息
  • trace:显示包路径
  • status:显示当前状态信息
  • binary:二进制传输模式
  • ascii:ascii 传送模式
  • rexmt:设置包传输的超时时间
  • timeout:设置重传的超时时间
  • help:帮助信息
  • ? :帮助信息

实例

连接远程服务器”218.28.188.288″,然后使用put 命令下载其中根目录下的文件”README”,可使用命令如下:

<span class="pln">tftp </span><span class="lit">218.28</span><span class="pun">.</span><span class="lit">188.288</span> <span class="com">#连接远程服务器 </span>

连接服务器之后可进行相应的操作,具体如下:

<span class="pln">$ tftp </span><span class="lit">218.28</span><span class="pun">.</span><span class="lit">188.228</span>                      <span class="com">#连接远程服务器  </span><span class="pln">
tftp</span><span class="pun">></span> <span class="pun">?</span>                                    <span class="com">#使用?,参考帮助  </span>
<span class="typ">Commands</span><span class="pln"> may be abbreviated</span><span class="pun">.</span> <span class="typ">Commands</span><span class="pln"> are</span><span class="pun">:</span> <span class="com">#帮助命令列表  </span><span class="pln">
connect connect to remote tftp  
mode </span><span class="kwd">set</span><span class="pln"> file transfer mode  
put send file  
</span><span class="kwd">get</span><span class="pln"> receive file  
quit </span><span class="kwd">exit</span><span class="pln"> tftp  
verbose toggle verbose mode  
trace toggle packet tracing  
status show current status  
binary </span><span class="kwd">set</span><span class="pln"> mode to octet  
ascii </span><span class="kwd">set</span><span class="pln"> mode to netascii  
rexmt </span><span class="kwd">set</span><span class="pln"> per</span><span class="pun">-</span><span class="pln">packet retransmission timeout  
timeout </span><span class="kwd">set</span><span class="pln"> total retransmission timeout  
</span><span class="pun">?</span> <span class="kwd">print</span><span class="pln"> help information  
tftp</span><span class="pun">></span><span class="kwd">get</span><span class="pln"> README                             </span><span class="com">#远程下载README文件  </span><span class="pln">
getting </span><span class="kwd">from</span> <span class="lit">218.28</span><span class="pun">.</span><span class="lit">188.288</span><span class="pln"> to </span><span class="pun">/</span><span class="pln">home</span><span class="pun">/</span><span class="pln">cmd  
</span><span class="typ">Recived</span> <span class="lit">168236</span><span class="pln"> bytes </span><span class="kwd">in</span> <span class="lit">1.5</span><span class="pln"> seconds</span><span class="pun">[</span><span class="lit">112157</span><span class="pln"> bit</span><span class="pun">/</span><span class="pln">s</span><span class="pun">]</span><span class="pln">  
tftp</span><span class="pun">></span><span class="pln">quit                                   </span><span class="com">#离开tftp </span>

欢迎转载本文:Linux tftp命令
喜欢 (0)
[ld]
分享 (0)
发表我的评论
取消评论
表情 贴图 加粗 删除线 居中 斜体 签到

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址