LinuxCommandLibrary

tftp

TLDR

Connect to server

$ tftp [server_ip] [port]
copy
Execute command directly
$ tftp [server_ip] -c [command]
copy
Connect with IPv6 and port range
$ tftp [server_ip] -6 -R [port:port]
copy
Set transfer mode (interactive)
$ mode [binary|ascii]
copy
Download file (interactive)
$ get [file]
copy
Upload file (interactive)
$ put [file]
copy
Exit (interactive)
$ quit
copy

SYNOPSIS

tftp [OPTIONS] [HOST [PORT]]

DESCRIPTION

tftp is a client for the Trivial File Transfer Protocol, a simple protocol for transferring files without authentication. TFTP operates over UDP and is commonly used for network booting (PXE) and firmware updates.

PARAMETERS

-c COMMAND

Execute TFTP command and exit
-6
Use IPv6
-R PORT:PORT
Force originating port range
-v
Verbose output

INTERACTIVE COMMANDS

get file

Download file from server
put file
Upload file to server
mode binary|ascii
Set transfer mode
status
Show current status
quit
Exit client

CAVEATS

No authentication or encryption. UDP-based, may have issues with firewalls. Limited error handling compared to FTP. Maximum file size limited by protocol.

HISTORY

TFTP was defined in RFC 1350 (1992) and is one of the oldest file transfer protocols. It's designed for simplicity, making it suitable for embedded systems and network boot environments.

SEE ALSO

ftp(1), curl(1), wget(1)

Copied to clipboard