Linux操作系統(tǒng)中的FTP客戶端
一、簡(jiǎn)介:在大多發(fā)行版都有打包,請(qǐng)到各大發(fā)行版的ftp列表中得到,或者在發(fā)行版的安裝盤中也能得到。lftp是一個(gè)命令行式的ftp客戶端。對(duì)中文支持較好。如果您在linux 的text模式下,要安裝zhcon或者cce之類的。安裝:1、RPM包管理的系統(tǒng),請(qǐng)到http://freshrpms.nethttp;//rpmfind.net 上查找lftp的最新包,可以用#rpm -ivh name.rpm#rpm -Uvh name.rpm 這是升級(jí)之用2、源碼包安裝舉例:lftp-3.2.0.tar.bz2#tar zxvf lftp-3.2.0.tar.bz2#cd lftp-3.2.0#./configure#make#make install3.調(diào)用方法: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.簡(jiǎn)單的用法:lcd 切換本地目錄,比如 lcd /optget 取回一個(gè)文件,put 向ftp服務(wù)器傳文件;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
如果針對(duì)lftp的每個(gè)命令的幫助,應(yīng)該是: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
相關(guān)文章:
1. 七招制造安全的Windows XP操作系統(tǒng)2. 如何讓W(xué)indows操作系統(tǒng)系統(tǒng)從USB啟動(dòng)3. Windows XP操作系統(tǒng)虛擬專用網(wǎng)絡(luò)揭秘4. UNIX 操作系統(tǒng)復(fù)雜的關(guān)機(jī)過程5. 統(tǒng)信UOS專用設(shè)備操作系統(tǒng)V20正式發(fā)布 鏡像不到800MB6. Windows操作系統(tǒng)圖形化維護(hù)全攻略7. win7系統(tǒng)安裝不了IE8瀏覽器提示此安裝不支持您的操作系統(tǒng)的解決方法圖文教程8. 高手談Windows操作系統(tǒng)優(yōu)化9. 深度操作系統(tǒng)15.5正式版怎么樣?新增了哪些內(nèi)容?(附下載地址)10. 十二招Windows操作系統(tǒng)的網(wǎng)絡(luò)管理技巧
