一、简介:
在大多发行版都有打包,请到各大发行版的ftp列表中得到,或者在发行版的安装盘中也能得到 。lftp是一个命令行式的ftp客户端 。对中文支持较好 。如果您在linux 的text模式下,要安装zhcon或者cce之类的 。
安装:
1、RPM包管理的系统,请到
http://freshrpms.net
http;//rpmfind.net 上查找lftp的最新包,可以用
#rpm -ivh name.rpm
#rpm -Uvh name.rpm 这是升级之用
2、源码包安装举例:lftp-3.2.0.tar.bz2
#tar zxvf lftp-3.2.0.tar.bz2
#cd lftp-3.2.0
#./configure
#make
#make install
3.调用方法:
lftp ftp://用户名:密码@地址
比如:
[beinan@S01~]$lftp ftp://beinan@192.168.1.2
口令:
lftp beinan@192.168.1.2:~>
lftp beinan@192.168.1.2:~>ls
-rw-r--r-- 1 1000 100 44387 May 18 10:04 xvmain.jpg
-rw-r--r-- 1 1000 100 202643 May 18 09:45 xxx.jpeg
-rw-r--r-- 1 1000 100 0 May 20 10:01 鲨鱼的故事.txt
二、使用方法:
0.简单的用法:lcd 切换本地目录,比如 lcd /opt
get 取回一个文件,put 向ftp服务器传文件;
1、获得帮助:
代码:
lftp beinan@192.168.1.2:~> help
!(commands)
alias [ []]anon
bookmark [SUBCMD]cache [SUBCMD]
cat [-b] cd
chmod [OPTS] mode file...close [-a]
[re]cls [opts] [path/][pattern] debug [ off] [-o ]
du [options]exit [ bg]
get [OPTS][-o ] glob [OPTS]
help []history -w file -r file -c -l [cnt]
jobs [-v]kill all
lcdlftp [OPTS]
ls [] mget [OPTS]
mirror [OPTS] [remote [local]] mkdir [-p]
module name [args] more
mput [OPTS]mrm
mv[re]nlist []
open [OPTS]pget [OPTS][-o ]
put [OPTS][-o ] pwd [-p]
queue [OPTS] []quote
repeat [delay] [command]rm [-r] [-f]
rmdir [-f]scache []
set [OPT] [ []]site
sourceuser[]
version wait []
zcat zmore 如果针对lftp的每个命令的帮助,应该是:
lftp beinan@192.168.1.2:~> help 命令
比如
代码:
lftp beinan@192.168.1.2:~> help get
用法: 【Linux操作系统中的FTP客户端】get [OPTS][-o ]
Retrieve remote fileand store it to local file .
-ospecifies local file name (default - basename of rfile)
-c continue, reget
-E delete remote files after successful transfer
-a use ascii mode (binary is the default)
-Ospecifies base directory or URL where files should be placed
推荐阅读
- 如何将图片中的衣服去掉
- 深入研究XP中的各项系统服务
- 笔记本电脑操作系统优化八大技巧
- 怎么将支付宝app中的常用软件移到首页?
- 全面给操作系统托盘区“减负”
- 8种操作系统安全模式解析及应用
- word背景颜色怎么设置
- 如何设置单元格格式
- 网友荐:Win XP操作系统优化精髓
- Windows中的记事本也能自动存盘
