| 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 !<shell-command> (commands) alias [<name> [<value>]] anon bookmark [SUBCMD] cache [SUBCMD] cat [-b] <files> cd <rdir> chmod [OPTS] mode file... close [-a] [re]cls [opts] [path/][pattern] debug [<level>|off] [-o <file>] du [options] <dirs> exit [<code>|bg] get [OPTS] <rfile> [-o <lfile>] glob [OPTS] <cmd> <args> help [<cmd>] history -w file|-r file|-c|-l [cnt] jobs [-v] kill all|<job_no> lcd <ldir> lftp [OPTS] <site> ls [<args>] mget [OPTS] <files> mirror [OPTS] [remote [local]] mkdir [-p] <dirs> module name [args] more <files> mput [OPTS] <files> mrm <files> mv <file1> <file2> [re]nlist [<args>] open [OPTS] <site> pget [OPTS] <rfile> [-o <lfile>] put [OPTS] <lfile> [-o <rfile>] pwd [-p] queue [OPTS] [<cmd>] quote <cmd> repeat [delay] [command] rm [-r] [-f] <files> rmdir [-f] <dirs> scache [<session_no>] set [OPT] [<var> [<val>]] site <site_cmd> source <file> user <user|URL> [<pass>] version wait [<jobno>] zcat <files> zmore <files> 如果针对lftp的每个命令的帮助,应该是: lftp beinan@192.168.1.2:~> help 命令 比如 代码: lftp beinan@192.168.1.2:~> help get 用法: get [OPTS] <rfile> [-o <lfile>] Retrieve remote file <rfile> and store it to local file <lfile>. -o <lfile> specifies 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) -O <base> specifies base directory or URL where files should be placed 简介:gftp基于gtk的ftp客户端,大家用的也比较多吧,支持中文目录。如果您的gftp不能支持中文,请升级版本。 # Written in C and has a text interface and a GTK+ 1.2/2.x interface # Supports the FTP, FTPS (control connection only), HTTP, HTTPS, SSH and FSP protocols # FTP and HTTP proxy server support # Supports FXP file transfers (transferring files between 2 remote servers via FTP) # Supports UNIX, EPLF, Novell, MacOS, VMS, MVS and NT (DOS) style directory listings # Bookmarks menu to allow you to quickly connect to remote sites 下载安装: 在各大发行版中,都有gftp的打包,可以用各发行版自带的工具来安装。我只说源码包安装: 源码包安装,通用于所有发行版,举例说明:gftp-2.0.18.tar.bz2 代码: [root@S01ftp]#ls -lh 总用量 1.4M -rw-r--r-- 1 root root 1.4M 2005-05-21 09:18 gftp-2.0.18.tar.bz2 [root@S01ftp]#tar jxvf gftp-2.0.18.tar.bz2 [root@S01gftp-2.0.18]#./configure [root@S01gftp-2.0.18]#make [root@S01gftp-2.0.18]#make install 注:因为gftp依赖gtk,如果不能make过去,您应该指定PKG_CONFIG_PATH [root@S01gftp-2.0.18]# export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig 调用: 代码: [root@S01gftp-2.0.18]#gftp  点击看大图 主页: http://www.iglooftp.com/linux/ pro是商业版,不带pro的已经很长时间没有更新了。 http://www.iglooftp.com/linux/index.html 安装比较简单,因为是商业的,Install就行。 对中文的支持还可以,不过是GTK1的,在新版本的发行版上执行的效果不理想。 功能很全,对FXP支持较好。 图片可以到官方网站看。 安装举例: 代码: [root@S01ftp]#tar zxvf IglooFTP-PRO-1.2.4-linux.tar.gz [root@S01ftp]#cd IglooFTP-PRO-1.2.4-linux [root@S01IglooFTP-PRO-1.2.4-linux]#sh Install 调用方法: [root@S01IglooFTP-PRO-1.2.4-linux]#IglooFTP-PRO 主页:http://www.ncftp.com 简介:在 ZHCON 和 X 环境下面都没有问题,对中文支持很好。是一个极不错的text模式的ftp客户端; NcFTP包括 服务器版本和客户端版本,我们在本帖中只介绍客户端。 安装:编译安装 您可以根据自己机器的架构,大多我们用的是intel cpu的机器 ,所以要选 x86版本,当然也能通过源码包编译安装。 本介绍中,我们还是用源码包安装,因为通用。 下载: ftp://ftp.ncftp.com/ncftp/ncftp-3.1.9-src.tar.gz 编译安装: #tar zxvf ncftp-3.1.9-src.tar.gz #cd ncftp-3.1.9 #./configure #make #make install 如果有依赖关系,或者需要指定PKG_CONFIG_PATH的变量,应该尝试一下 #export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig 然后再用上面的命令。 调用: #ncftp ftp地址 比如 : #ncftp 192.168.1.2 对中文支持较好。 看例子: ncftp /pub/电影 > put 鲨鱼的故事.txt 鲨鱼的故事.txt: 0.00 B 0.00 B/s ncftp /pub/电影 > ls 鲨鱼的故事.txt ncftp /pub/电影 > 至于ftp的使用,无非是put文件,get取回文件,mput mget 比如取回单个文件,可以用 get filename 放文件得可用 put filename,如果是取回整个目录,则用get -R 目录名,同理放一个目录到FTP服务器上,可以用 put -R 目录 比如我们想把FTP服务器上的电影 目录取回到 本地机的/opt目录 ncftp /pub > lcd /opt/ ncftp /pub > ls sun/ sunmoon/ 电影/ ncftp /pub > get -R 电影/ 如果想要得到帮助: ncftp /pub > help Commands may be abbreviated. 'help showall' shows hidden and unsupported commands. 'help <command>' gives a brief description of <command>. ascii cat help lpage open quit show bgget cd jobs lpwd page quote site bgput chmod lcd lrename passive rename type bgstart close lchmod lrm pdir rhelp umask binary debug lls lrmdir pls rm version bookmark dir lmkdir ls put rmdir bookmarks get lookup mkdir pwd set For details, please see the manual ("man ncftp" at your regular shell prompt or online at http://www.NcFTP.com/ncftp/doc/ncftp.html). Linux联盟收集整理
 |
频道声明:本频道的文章除部分特别声明禁止转载的专稿外,可以自由转载.但请务必注明出出处和原始作者 文章版权归本频道与文章作者所有.对于被频道转载文章的个人和网站,我们表示深深的谢意。
| 原始作者:佚名 |
录入时间:2007-1-3 3:58:04 |
| 信息来源:不详 |
投稿信箱:itqoo@126.com |
|
|
 |
|
|
|
| 教程录入:itqoo 责任编辑:itqoo |
|
上一个教程: 在Debian操作系统下如何创建QQ图标
下一个教程: 没有了 |
| 【字体:小 大】【发表评论】【加入收藏】【告诉好友】【打印此文】【关闭窗口】 |