Linux操作系統中的FTP客戶端
一、簡介:在大多發行版都有打包,請到各大發行版的ftp列表中得到,或者在發行版的安裝盤中也能得到。lftp是一個命令行式的ftp客戶端。對中文支持較好。如果您在linux 的text模式下,要安裝zhcon或者cce之類的。安裝:1、RPM包管理的系統,請到http://freshrpms.nethttp;//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 install3.調用方法: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 /optget 取回一個文件,put 向ftp服務器傳文件;1、獲得幫助:代碼: lftp beinan@192.168.1.2:~> help!(commands)alias [ []]anonbookmark [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
如果針對lftp的每個命令的幫助,應該是:lftp beinan@192.168.1.2:~> help 命令比如代碼: lftp beinan@192.168.1.2:~> help get用法:
get [OPTS] [-o ]Retrieve remote file and store it to local file .-o 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 specifies base directory or URL where files should be placed
相關文章:
