1# tftp 2 3 4## Command Function 5 6Trivial File Transfer Protocol (TFTP) is a protocol in the TCP/IP protocol suite for transferring files between clients and servers. TFTP provides simple and low-overhead file transfer services. The port number is 69. 7 8The **tftp** command is used to transfer files with a TFTP server. 9 10 11## Syntax 12 13./bin/tftp *<-g/-p>**-l**[FullPathLocalFile] -r [RemoteFile] [Host]* 14 15 16## Parameters 17 18**Table 1** Parameter description 19 20| Parameter| Description| Value Range| 21| -------- | -------- | -------- | 22| -g/-p | Specifies the file transfer direction.<br>- **-g**: obtains a file from the TFTP server.<br>- **-p**: uploads a file to the TFTP server.| N/A | 23| -l FullPathLocalFile | Specifies the complete path of a local file.| N/A | 24| -r RemoteFile | Specifies the file name on the server.| N/A | 25| Host | Specifies the server IP address.| N/A | 26 27 28## Usage Guidelines 29 301. Deploy a TFTP server on the server and configure the TFTP server correctly. 31 322. Use the **tftp** command to upload files from or download files to an OpenHarmony board. 33 343. The size of the file to be transferred cannot exceed 32 MB. 35 > **NOTICE**<br> 36 > TFTP is used for debugging and disabled by default. Do not use it in formal products. 37 38 39## Example 40 41Download the **out** file from the server. 42 43 44## Output 45 46 47``` 48OHOS # ./bin/tftp -g -l /nfs/out -r out 192.168.1.2 49TFTP transfer finish 50``` 51 52After the **tftp** command is executed, **TFTP transfer finish** is displayed if the file transfer is complete. If the file transfer fails, other information is displayed to help locate the fault. 53