加入收藏
举报
02-14 20:03
#0
文件名称:
tftp.md
所在目录:
Openharmony v1.0 / docs / docs-en / kernel
文件大小:
5.14 KB
下载地址:
fenwii/OpenHarmony
   
免责声明:本网站仅提供指向 GitHub 上的文件的链接,所有文件的版权归原作者所有,本网站不对文件内容的合法性、准确性或安全性承担任何责任。
文本预览:
# tftp
## Command Function
Trivial 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.
The **tftp** command is used to download files from the TFTP server.
## Syntax
tftp _<-g/-p\>_ _-l_ _\[FullPathLocalFile\] -r \[RemoteFile\] \[Host\]_
## Parameter Description
**Table 1** Parameters























Parameter


Description


Value Range


-g/-p


Indicates the file transfer direction.


  • -g: downloads files from the TFTP server.
  • -p: uploads files to the TFTP server.

N/A


-l FullPathLocalFile


Indicates the complete path of a local file.


N/A


-r RemoteFile


Indicates the file name on the server.


N/A


Host


Indicates the server IP address.


N/A



## Usage
1. Deploy a TFTP server on the server and configure the TFTP server correctly.
2. Use the **tftp** command to upload and download files on the OpenHarmony board.
3. The size of the file to be transferred cannot exceed 32 MB.
>![](public_sys-resources/icon-notice.gif) **NOTICE:**
>TFTP is under debugging and disabled by default. Do not use it in formal products.
## Example
Download the **out** file from the server.
## Output
```
OHOS # tftp -g -l /nfs/out -r out 192.168.1.2
TFTP transfer finish
```
After 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.
点赞 回复
回帖
支持markdown部分语法 ?