可抓http,ftp protocol, 且可一次傳輸整個目錄, 多線傳輸的ftp client
Commands
1.! shell command
執行local端的指令
EX:
!ls 列出本機資料夾內容
2.alias
設定指令別名
EX:
alias dir ls -lF 下dir=下ls -lF
3.bookmark
建立我的最愛
add
add current place or given location to bookmarks and bind to given name
del
remove bookmark with name
edit
start editor on bookmarks file
import
import foreign bookmarks
list
list bookmarks (default)
4.cat files
cat outputs the remote file(s) to stdout.
5.cd rdir
6.close [-a]
切斷閒置的連線
Close idle connections.
By default only with the current server,
use -a to close all idle connections.
7.echo [-n]
guess what it does. //man lftp原文就是這樣寫的XD
8.exit code
離開,or丟到background跑
下exit bg就直接丟到背景執行
9.get
抓檔 //可指定多個檔案,但不可用萬用字元"*"
-c continue, reget
續傳下載
-E delete remote files after successful transfer
下載完後刪除遠端檔案
-a use ascii mode (binary is the default)
使用ASCII下載
-O < base > specifies base directory or URL where files should be place
選擇下載後的目錄,檔名,位置(URL)
EX:
get README
get README -o debian.README
get README README.mirrors
get README -o debian.README README.mirrors -o debian.mirrors
get README -o ftp://some.host.org/debian.README
get README -o ftp://some.host.org/debian-dir/ (end slash is importan
t)
10.?/help
"中文"說明唷
11.lcd ldir
12.lpwd
13.ls
14.mget
Gets selected files with expanded wildcards.
-c continue, reget.
-d
create directories the same as file names and get
the files into them instead of current directory.
-E delete remote files after successful transfer
-a
use ascii mode (binary is the default)
-O
15.Mirror
做mirror
16.mkdir [-p] dir(s)
Make remote directories. If -p is used, make all components of paths.
17.mput [-c] [-d] [-a] [-E] [-O base] files
Upload files with wildcard expansion.
-c continue, reput
-d
create directories the same as in file names and put the files into them instead
of current directory
-E
delete remote files after successful transfer (dangerous)
-a use ascii mode (binary is the default)
-O
18.mrm file(s)
Removes specified file(s) with 萬用字元"*".
19.mv file1 file2
20.open
21.pget [OPTS] rfile [-o lfile ]
多線下載
-n 設定幾線下載,預設是5
22.put
-o
specifies remote file name (default - basename of lfi
le)
-c
continue, reput it requires permission to overwrite remote files
-E delete local files after successful transfer (dangerous)
-a use ascii mode (binary is the default)
-O
23.pwd
24.rm[-r]
功能多指令就多...雖然有中文help
相較於BSD內建的ftp client或是較為popular的ncftp,我覺得lftp是個很好的alternate
--
本文首次發表於Jan 31 2004,濟城歲月(telnet://bbs.cksh.tp.edu.tw)
