网站运营
位置:首页>> 网站运营>> Linux操作系统中的FTP客户端

Linux操作系统中的FTP客户端

 来源:asp之家 发布时间:2009-12-07 19:08:00 

标签:linux,ftp,操作系统

一、简介:

在大多发行版都有打包,请到各大发行版的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|
  lcd              lftp [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
  source             user []
  version               wait []
  zcat             zmore


0
投稿

猜你喜欢

手机版 网站运营 asp之家 www.aspxhome.com