mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
38 lines
858 B
Plaintext
38 lines
858 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, linux]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# tftp
|
|
|
|
> Trivial File Transfer Protocol client.
|
|
> More information: <https://manned.org/tftp>.
|
|
|
|
- Connect to a TFTP server with an interactive shell, specifying its IP address and port:
|
|
|
|
`tftp {{server_ip}} {{port}}`
|
|
|
|
- Connect to a TFTP server and execute a TFTP [c]ommand:
|
|
|
|
`tftp {{server_ip}} -c {{command}}`
|
|
|
|
- Connect to a TFTP server using IPv6 and force originating port to be in [R]ange:
|
|
|
|
`tftp {{server_ip}} -6 -R {{port}}:{{port}}`
|
|
|
|
- [Interactive] Set the transfer mode to binary or ASCII through the tftp client:
|
|
|
|
`mode {{binary|ascii}}`
|
|
|
|
- [Interactive] Download file from a server through the tftp client:
|
|
|
|
`get {{file}}`
|
|
|
|
- [Interactive] Upload file to a server through the tftp client:
|
|
|
|
`put {{file}}`
|
|
|
|
- [Interactive] Exit the tftp client:
|
|
|
|
`quit`
|