Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

tftp(1) [redhat man page]

TFTP(1) 							UNIX User's Manual							   TFTP(1)

NAME
tftp - IPv4 Trivial File Transfer Protocol client SYNOPSIS
tftp [options...] [host] DESCRIPTION
tftp is a client for the IPv4 Trivial file Transfer Protocol, which can be used to transfer files to and from remote machines, including some very minimalistic, usually embedded, systems. The remote host may be specified on the command line, in which case tftp uses host as the default host for future transfers (see the connect command below.) OPTIONS
-v Default to verbose mode. -V Print the version number and configuration to standard output, then exit gracefully. COMMANDS
Once tftp is running, it issues the prompt tftp> and recognizes the following commands: ? command-name... help command-name... Print help information ascii Shorthand for mode ascii. binary Shorthand for mode binary. connect host [port] Set the host (and optionally port) for transfers. Note that the TFTP protocol, unlike the FTP protocol, does not maintain connec- tions between transfers; thus, the connect command does not actually create a connection, but merely remembers what host is to be used for transfers. You do not have to use the connect command; the remote host can be specified as part of the get or put com- mands. get file get remotefile localfile get file1 file2 file3... Get a file or set of files from the specified sources. A remote filename can be in one of two forms: a plain filename on the remote host, if the host has already been specified, or a string of the form host:filename to specify both a host and filename at the same time. If the latter form is used, the last hostname specified becomes the default for future transfers. mode transfer-mode Specify the mode for transfers; transfer-mode may be one of ascii (or netascii) or binary (or octet.) The default is ascii. put file put localfile remotefile put file1 file2 file3... remote-directory Put a file or set of files to the specified remote file or directory. The destination can be in one of two forms: a filename on the remote host, if the host has already been specified, or a string of the form host:filename to specify both a host and filename at the same time. If the latter form is used, the hostname specified becomes the default for future transfers. If the remote-direc- tory form is used, the remote host is assumed to be a UNIX system or another system using / as directory separator. quit Exit tftp. End-of-file will also exit. rexmt retransmission-timeout Set the per-packet retransmission timeout, in seconds. status Show current status. timeout total-transmission-timeout Set the total transmission timeout, in seconds. trace Toggle packet tracing (a debugging feature.) verbose Toggle verbose mode. NOTES
The TFTP protocol provides no provisions for authentication or security. Therefore, the remote server will probably implement some kinds of access restriction or firewalling. These access restrictions are likely to be site- and server-specific. AUTHOR
This version of tftp is maintained by H. Peter Anvin <hpa@zytor.com>. It was derived from, but has substantially diverged from, an OpenBSD source base, with added patches by Markus Gutschke and Gero Kulhman. SEE ALSO
tftpd(8). tftp-hpa 0.32 13 November 2001 TFTP(1)

Check Out this Related Man Page

tftp(1c)																  tftp(1c)

Name
       tftp - trivial file transfer program

Syntax
       tftp [host] [port]

Description
       The  command  provides  the  user interface to the Internet standard Trivial File Transfer Protocol.  The program allows a user to transfer
       files to and from a remote network site.  The remote host can be specified on the command line.	If you specify the remote host on the com-
       mand line uses host as the default host for future transfers.

       If  a  port is specified, uses that port number instead of the standard service port.  When the user invokes the program enters its command
       interpreter and awaits instructions.  The prompt tftp> is displayed on the screen.

       The following commands are recognized by

       ?		   Displays a help message that gives a brief summary of the commands.

       ascii		   Specifies mode ascii.

       binary		   Specifies mode binary.

       connect host-name [ port ]
			   Sets the host and, optionally, sets port for transfers.  Note that the TFTP	protocol  does	not  maintain  connections
			   between transfers.  Because merely remembers what host should be used for transfers instead of actually creating a con-
			   nection, it is not necessary to use the command.  The remote host can be specified as part of the or commands.

       get remote-file... [ local-file ]
			   Gets a file or set of files from the specified sources.  If the host has already been specified, the source can  be	in
			   the	form of a filename on the remote host.	If the host has not been specified, the source can be a string of the form
			   host:file, specifying both a host and filename at the same time.  If the latter form is used, the last hostname entered
			   becomes the default for future transfers.

       mode		   Sets the file transfer type to network ASCII or binary.  The default type is network ASCII.

       put local-file... [ remote-file/directory ]
			   Puts  a file or set of files to the specified remote file or directory.  If the remote host has already been specified,
			   the destination can be a filename on it.  If the remote host has not been specified, the destination can be a string of
			   the	form  host:filename,  specifying  both a host and filename at the same time.  If the latter form is used, the last
			   hostname entered becomes the default for future transfers.  If the remote-directory form is used, the  remote  host	is
			   assumed to be a UNIX machine.

       quit		   Exits the program.

       rexmt		   Sets the retransmit timer.

       status		   Shows what believes to be the current connection status.

       timeout		   Set the transaction timeout.

       trace		   Sets the packet trace flag.

       verbose		   Sets the verbose mode flag.

Restrictions
       Since the TFTP protocol does not support any authentication, files must be world read (writable) on the remote system.

       Because	there  is  no user-login validation within the TFTP protocol, the remote site should have some sort of file access restrictions in
       place.  The exact methods are specific to each site.

																	  tftp(1c)
Man Page