Besides FTP, it also supports FTPS, HTTP, HTTPS, HFTP, FISH, and SFTP by specifying the desired protocol in a location URL.
debug 3 #set ftp:passtive-mode no #alias utf8 " set ftp:charset UTF-8" #alias Big5 " set ftp:charset Big5"
lftp> bookmark add 123 lftp> bookmark edit lftp> open 123 lftp> bookmark list lftp> help bookmark
$ lftp user@site:port
$ lftp ftp://user:password@site:port $ lftp user:password@site:port $ lftp site -p port -u user,password $ lftp site:port -u user,password
lftp> mget -d dirname/* lftp> mirror dirname
lftp> mput -d dirname/* lftp> mirror -R dirname
lftp> ls -R | grep .css lftp> find -d 3 | grep .css
get/mget/pget
put/mput/
lftp> rm -r
mirror [OPTS] [remote [local]] -c 續傳 -e 比較遠端和本地端的檔案,如果遠端沒有的檔案,就將本地端的檔案刪除 -R 上傳整個目錄 -n 只下載較新的檔案 -r 不用遞迴到目錄中 --parallel=n 同時下載 n 個檔案(預設一次只下載一個)
lftpget [options] url
lftp> cat file | gzip > file.gz lftp> get file & lftp> (cd /path && get file) &
進入 lftp 後
set ftp:charset Big5
[ 書籤 | 搜尋 | blog | 留言 | Home ]
最後更新 二月 8, 2008 , by alan
本 著作 係採用
創用 CC 姓名標示-非商業性-相同方式分享 2.5 台灣 授權條款授權.