TFTP(1) BSD Reference Manual TFTP(1) NNAAMMEE ttffttpp - trivial file transfer program SSYYNNOOPPSSIISS ttffttpp [_h_o_s_t] DDEESSCCRRIIPPTTIIOONN TTffttpp is the user interface to the Internet TFTP (Trivial File Transfer Protocol), which allows users to transfer files to and from a remote ma- chine. The remote _h_o_s_t may be specified on the command line, in which case ttffttpp uses _h_o_s_t as the default host for future transfers (see the ccoonnnneecctt command below). CCOOMMMMAANNDDSS Once ttffttpp is running, it issues the prompt and recognizes the following commands: ?? _c_o_m_m_a_n_d_-_n_a_m_e _._._. Print help information. aasscciiii Shorthand for "mode ascii" bbiinnaarryy Shorthand for "mode binary" ccoonnnneecctt _h_o_s_t_-_n_a_m_e [_p_o_r_t] Set the _h_o_s_t (and optionally _p_o_r_t) for transfers. Note that the TFTP protocol, unlike the FTP protocol, does not maintain con- nections betweeen transfers; thus, the ccoonnnneecctt 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 ccoonnnneecctt command; the remote host can be specified as part of the ggeett or ppuutt commands. ggeett _f_i_l_e_n_a_m_e ggeett _r_e_m_o_t_e_n_a_m_e _l_o_c_a_l_n_a_m_e ggeett _f_i_l_e_1 _f_i_l_e_2 _._._. _f_i_l_e_N Get a file or set of files from the specified _s_o_u_r_c_e_s. _S_o_u_r_c_e 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 _h_o_s_t_s_:_f_i_l_e_n_a_m_e 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. mmooddee _t_r_a_n_s_f_e_r_-_m_o_d_e Set the mode for transfers; _t_r_a_n_s_f_e_r_-_m_o_d_e may be one of _a_s_c_i_i or _b_i_n_a_r_y. The default is _a_s_c_i_i. ppuutt _f_i_l_e ppuutt _l_o_c_a_l_f_i_l_e _r_e_m_o_t_e_f_i_l_e ppuutt _f_i_l_e_1 _f_i_l_e_2 _._._. _f_i_l_e_N _r_e_m_o_t_e_-_d_i_r_e_c_t_o_r_y Put a file or set of files to the specified remote file or di- rectory. 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 _h_o_s_t_s_:_f_i_l_e_n_a_m_e 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-directory form is used, the remote host is assumed to be a UNIX machine. qquuiitt Exit ttffttpp. An end of file also exits. rreexxmmtt _r_e_t_r_a_n_s_m_i_s_s_i_o_n_-_t_i_m_e_o_u_t Set the per-packet retransmission timeout, in seconds. ssttaattuuss Show current status. ttiimmeeoouutt _t_o_t_a_l_-_t_r_a_n_s_m_i_s_s_i_o_n_-_t_i_m_e_o_u_t Set the total transmission timeout, in seconds. ttrraaccee Toggle packet tracing. vveerrbboossee Toggle verbose mode. BBUUGGSS Because there is no user-login or validation within the TFTP protocol, the remote site will probably have some sort of file-access restrictions in place. The exact methods are specific to each site and therefore dif- ficult to document here. HHIISSTTOORRYY The ttffttpp command appeared in 4.3BSD. 4.3 Berkeley Distribution June 6, 1993 2