lftp是linux中一款ftp服务器,相比windows中的ftp显得要复杂不少了,下面我来总结一下lftp文件上传,文件下载,及文件查找等等相关命令吧。

语法格式: lftpget [参数] [文件]

常用参数:

-c 继续先前的下载
-d 输出调试信息

参考实例

lftp上传单个文件命令:

[root@linuxcool ~]# lftp webmaster@linuxprobe.com:/> put test.txt

lftp上传多个文件命令:

[root@linuxcool ~]# lftp webmaster@linuxprobe.com:/> mput *.txt

选择某个目录下某种扩展名的下载:

[root@linuxcool ~]# lftp webmaster@linuxprobe.com:/usr/local> mget *.php

断点续传功能:

[root@linuxcool ~]# lftp webmaster@linuxprobe.com:/> mget -c ./usr/local /*.*

下载整个目录:

[root@linuxcool ~]# lftp webmaster@linuxprobe.com:/> mirror  /usr/local /
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。