ubuntu curl 物联网

上一篇博客已经在windows10上搭建好ftp服务器。我的ftp服务器没有设置密码

1.下载在ubuntu通过curl下载文件

需要关闭windows防火墙或者开放端口,否则造成下载不成。

curl ftp://192.168.0.102/test.txt -o test.txt

 2.ubuntu上传文件到ftp服务器

curl -T ubuntu.txt ftp://192.168.0.102

 

3.列出服务器的目录 

curl ftp://192.168.0.102/

4.从服务器上删除文件 

curl ftp://192.168.0.102/ -X 'DELE test.txt'

猜你喜欢

转载自blog.csdn.net/weixin_42627035/article/details/84992391