tftp [host [port]]

User interface to the TFTP (Trivial File Transfer Protocol), which allows users to transfer files to and from a remote machine. The remote host may be specified, in which case tftp uses host as the default host for future transfers.


Once tftp is running, it issues the prompt:


and recognizes the following commands:

? [ command-name...]

Print help information.


Shorthand for mode ASCII.


Shorthand for mode binary.

connect hostname [ port ]

Set the hostname, and optionally the port, for transfers.

get filename , get remotename localname , get filename1 filename2 filename3...filenameN

Get a file or set of files from the specified remote sources.

mode transfer-mode

Set the mode for transfers. transfer-mode may be ASCII or binary. The default is ASCII.

put filename , put localfile remotefile , put filename1 filename2...filenameN remote-directory

Transfer a file or set of files to the specified remote file or directory.


Exit tftp.

rexmt retransmission-timeout

Set the per-packet retransmission timeout, in seconds.


Print status information: whether tftp is connected to a remote host (i.e., whether a host has been specified for the next connection), the current mode, whether verbose and tracing modes are on, and the values for retransmission timeout and total transmission timeout.

timeout total-transmission-timeout

Set the total transmission timeout, in seconds.


Toggle packet tracing.


Toggle verbose ...

Get Mac OS X in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.