|
发表于 2003-5-8 19:08:07
|
显示全部楼层
Ep原创:
- /etc/lftp.conf
- ~/.lftprc
- alias lls !ls
- ##是否使用passive mode,取决于服务器时候支持
- #set ftp:passive-mode off
- ##设置代理服务器
- #set ftp:proxy [user:pass@]your_ftp_proxy:port
- #set http:proxy your_http_proxy[:port]
- #set bmk:save-passwords on
- ## save plain text passwords in ~/.lftp/bookmarks on `bookmark add' command. Off by default.
- #set cmd:ls-default '-F --color'
- lftp可以自动续传文件。
- 1. command& 后台执行命令或者ctrl+Z将程序放到后台
- 2. (group command)& 将一组程序放到后台执行
- 3. fg或者wait将后天程序提到前台
- 4. jobs 列出正在运行的任务
- kill all|job_no,杀掉所有任务或指定job_no的任务
- 5. 当退出lftp时,如果还有未完成任务。自动以nohup方式后台执行
- 6. lftp中‘set -a’查看左右的可设置变量,’set -d‘查看变量及其缺省值
- 7. bookmark [subcommand]
- add <name> [<loc>] add current place or given location to bookmarks
- del <name> remove bookmark with name
- edit start editor on bookmarks file
- list list bookmarks (default)
- 8. cache [subcommand]
- stat print cache status (default)
- on|off turn on/off caching
- flush flush cache
- expire Nx set cache expiration time to Nx(x=s,m,d)
- 9. cat files
- 10. mget [-a] [-c] [-d] [-O base] rfile [-o lfile]
- -c continue, reget
- -a use ascii mode (binary is the default)
- -d create directories the same as in file names and put the files into them
- -O <base> specifies base directory or URL where files should be placed
- 11. mirror [OPTS] [remote [local]]
- -c, --continue continue a mirror job if possible
- -s, --allow-suid set suid/sgid bits according to remote site
- --allow-chown try to set owner and group on files
- -n, --only-newer download only newer files (-c won't work)
- -r, --no-recursion don't go to subdirectories
- -R, --reverse reverse mirror (put files)
- -L, --dereference download symbolic links as files
- -P, --parallel[=N] download N files in parallel
- 12. nlist 显示服务器上文件名字
- renlist Same as 'nlist', but ignores the cache
- 13. open [-u user[,pass]] [-p port] host|url 连接服务器
- 14. pget -n maxconn rfile [-o lfile ]
- -n maxconn set maximum number of connections(default 5)
- 15. reget rfile [-o lfile]
- 'get -c' 续传文件
复制代码 |
|