Files
tldr/pages.zh/linux/tftp.md

32 lines
656 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# tftp
> 简单文件传输协议客户端。
> 更多信息:<https://manned.org/tftp.1>。
- 通过指定IP地址和端口连接到TFTP服务器
`tftp {{server_ip}} {{port}}`
- 连接到TFTP服务器并执行TFTP [命令]
`tftp {{server_ip}} -c {{command}}`
- 使用IPv6连接到TFTP服务器并强制来源端口在[R]范围内:
`tftp {{server_ip}} -6 -R {{port}}:{{port}}`
- 通过tftp客户端将传输模式设置为二进制或ASCII
`mode {{binary|ascii}}`
- 通过tftp客户端从服务器下载文件
`get {{file}}`
- 通过tftp客户端将文件上传到服务器
`put {{file}}`
- 退出tftp客户端
`quit`