wget
来源:互联网 发布:淘宝两元包邮 编辑:程序博客网 时间:2024/06/05 23:49
wget使用范例
1、下载单个文件
$ wget http://osmond.cn/cdbe/CDBE.zip
$ wget http://osmond.cn/cdbe/CDBE.zip
2、以续传方式后台下载单个文件
$ wget -bc http://ftp.hostrino.com/pub/centos/5.0/isos/i386/CentOS-5.0-i386-bin-1of6.iso
3、只下载单一HTML文件,确保影响着页面显示的所有元素均被下载,并重新建立链接
$ wget -p -k http://osmond.cn/cdbe/manual/index.html
4、下载 http://osmond.cn/cdbe/manual/ 目录下的所有文件
$ wget -p -np -r -k http://osmond.cn/cdbe/manual/index.html
5、在本地镜像网站 http://www.xyz.edu.cn 的内容
$ wget –m –l4 -t0 http://www.xyz.edu.cn
6、只下载网站指定的目录,避免向远程主机的其他目录扩散,并拒绝下载gif和jpg文件
$ wget -r –L -R gif,jpg http://www.xyz.edu.cn/doc/
7、递归下载 http://www.xyz.edu.cn 下的 blog 和 wiki 目录并将文件后缀存为html
$ wget -r -k -p -np -E -I blog,wiki http://www.xyz.edu.cn
8、递归下载 http://ayo.freshrpms.net/redhat/9/i386/updates/RPMS 的所有文件到当前目录
$ wget -r -nH -nd http://ayo.freshrpms.net/redhat/9/i386/updates/RPMS
9、批量下载(首先将每个要下载文件的URL写一行,生成文件 download.txt)
$ wget -i download.txt -o download.log
10、使用代理下载
$ wget -Y -i download.txt -o download.log
如何设置代理
在环境变量中设定代理
$ export PROXY=111.111.111.111:8080
在 ~/.wge trc 中设定代理
http_proxy = 111.111.111.111:8080
ftp_proxy = 111.111.111.111:8080
0 0
- wget
- wget
- wget
- wget
- wget
- wget
- wget
- wget
- Wget
- Wget
- wget
- wget
- wget
- wget
- wget
- wget
- wget
- Wget
- iOS多线程编程之NSThread的使用
- 唐山自闭症哪家治疗好
- LFS6.3安装全过程(四)
- jQuery html()等方法介绍
- solr5.1 部署 Tomcat 7
- wget
- LFS6.3安装全过程(五)
- VS2010 C++ MFC框架学习笔记2 - 创建一个简单的加法计算器(2)
- 扫描文件转换方法
- virtualbox + Debian 模拟linux局域网配置
- 唐山自闭症去哪家治
- 深入了解 Dojo 的服务器推送技术
- 将树莓派Raspberry Pi设置为无线路由器(WiFi热点AP,RTL8188CUS芯片)
- spring.net官网下载