Wget (Linux File Downloader)使用详解
来源:互联网 发布:log4j xml配置sql语句 编辑:程序博客网 时间:2024/05/23 11:49
原文链接:http://www.javaarch.net/jiagoushi/753.htm
Wget (Linux File Downloader)使用详解1.单个文件下载# wget http://ftp.gnu.org/gnu/wget/wget-1.5.3.tar.gz--2012-10-02 11:28:30-- http://ftp.gnu.org/gnu/wget/wget-1.5.3.tar.gzResolving ftp.gnu.org... 208.118.235.20, 2001:4830:134:3::bConnecting to ftp.gnu.org|208.118.235.20|:80... connected.HTTP request sent, awaiting response... 200 OKLength: 446966 (436K) [application/x-gzip]Saving to: wget-1.5.3.tar.gz100%[===================================================================================>] 446,966 60.0K/s in 7.4s2012-10-02 11:28:38 (58.9 KB/s) - wget-1.5.3.tar.gz2.下载文件重命名 -O参数# wget -O wget.zip http://ftp.gnu.org/gnu/wget/wget-1.5.3.tar.gz--2012-10-02 11:55:54-- http://ftp.gnu.org/gnu/wget/wget-1.5.3.tar.gzResolving ftp.gnu.org... 208.118.235.20, 2001:4830:134:3::bConnecting to ftp.gnu.org|208.118.235.20|:80... connected.HTTP request sent, awaiting response... 200 OKLength: 446966 (436K) [application/x-gzip]Saving to: wget.zip100%[===================================================================================>] 446,966 60.0K/s in 7.5s2012-10-02 11:56:02 (58.5 KB/s) - wget.zip3.从多个url下载多个文件# wget http://ftp.gnu.org/gnu/wget/wget-1.5.3.tar.gz ftp://ftp.gnu.org/gnu/wget/wget-1.10.1.tar.gz.sig--2012-10-02 12:11:16-- http://ftp.gnu.org/gnu/wget/wget-1.5.3.tar.gzResolving ftp.gnu.org... 208.118.235.20, 2001:4830:134:3::bConnecting to ftp.gnu.org|208.118.235.20|:80... connected.HTTP request sent, awaiting response... 200 OKLength: 446966 (436K) [application/x-gzip]Saving to: wget-1.5.3.tar.gz100%[===================================================================================>] 446,966 56.7K/s in 7.6s2012-10-02 12:11:29 (57.1 KB/s) - wget-1.5.3.tar.gz--2012-10-02 12:11:29-- ftp://ftp.gnu.org/gnu/wget/wget-1.10.1.tar.gz.sig => wget-1.10.1.tar.gz.sigLogging in as anonymous ... Logged in!==> SYST ... done. ==> PWD ... done.==> TYPE I ... done. ==> CWD (1) /gnu/wget ... done.==> SIZE wget-1.10.1.tar.gz.sig ... 65==> PASV ... done. ==> RETR wget-1.10.1.tar.gz.sig ... done.Length: 65 (unauthoritative)100%[===================================================================================>] 65 --.-K/s in 0s2012-10-02 12:11:33 (2.66 MB/s) - wget-1.10.1.tar.gz.sigFINISHED --2012-10-02 12:11:33--Downloaded: 2 files, 437K in 7.6s (57.1 KB/s)4.从文件中读取url下载# wget -i /wget/tmp.txt--2012-10-02 12:34:12-- http://ftp.gnu.org/gnu/wget/wget-1.5.3.tar.gz ftp://ftp.gnu.org/gnu/wget/wget-1.10.1.tar.gz.sigResolving ftp.gnu.org... 208.118.235.20, 2001:4830:134:3::bConnecting to ftp.gnu.org|208.118.235.20|:80... connected.HTTP request sent, awaiting response... 200 OKLength: 446966 (436K) [application/x-gzip]Saving to: wget-1.10.1.tar.gz.sig100%[===================================================================================>] 446,966 35.0K/s in 10s2012-10-02 12:34:23 (42.7 KB/s) - wget-1.10.1.tar.gz.sig--2012-10-02 12:34:23-- http://mirrors.hns.net.in/centos/6.3/isos/x86_64/CentOS-6.3-x86_64-LiveDVD.isoResolving mirrors.hns.net.in... 111.91.91.34, 2401:4800::111:91:91:34Connecting to mirrors.hns.net.in|111.91.91.34|:80... connected.HTTP request sent, awaiting response... 200 OKLength: 1761607680 (1.6G) [application/octet-stream]Saving to: CentOS-6.3-x86_64-LiveDVD.iso 45%[========================================== 5.续传 -c参数# wget -c http://mirrors.hns.net.in/centos/6.3/isos/x86_64/CentOS-6.3-x86_64-LiveDVD.iso--2012-10-02 12:46:57-- http://mirrors.hns.net.in/centos/6.3/isos/x86_64/CentOS-6.3-x86_64-LiveDVD.isoResolving mirrors.hns.net.in... 111.91.91.34, 2401:4800::111:91:91:34Connecting to mirrors.hns.net.in|111.91.91.34|:80... connected.HTTP request sent, awaiting response... 206 Partial ContentLength: 1761607680 (1.6G), 1758132697 (1.6G) remaining [application/octet-stream]Saving to: CentOS-6.3-x86_64-LiveDVD.iso 51% [================================================= 6.后台下载# wget -b /wget/log.txt ftp://ftp.iinet.net.au/debian/debian-cd/6.0.5/i386/iso-dvd/debian-6.0.5-i386-DVD-1.isoContinuing in background, pid 3550.7.下载速度限制# wget -c --limit-rate=100k /wget/log.txt ftp://ftp.iinet.net.au/debian/debian-cd/6.0.5/i386/iso-dvd/debian-6.0.5-i386-DVD-1.iso/wget/log.txt: Scheme missing.--2012-10-02 13:16:21-- ftp://ftp.iinet.net.au/debian/debian-cd/6.0.5/i386/iso-dvd/debian-6.0.5-i386-DVD-1.iso => debian-6.0.5-i386-DVD-1.isoesolving ftp.iinet.net.au... 203.0.178.32Connecting to ftp.iinet.net.au|203.0.178.32|:21... connected.Logging in as anonymous ... Logged in!==> SYST ... done. ==> PWD ... done.==> TYPE I ... done. ==> CWD (1) /debian/debian-cd/6.0.5/i386/iso-dvd ... done.==> SIZE debian-6.0.5-i386-DVD-1.iso ... 4691312640==> PASV ... done. ==> REST 2825236 ... done.==> RETR debian-6.0.5-i386-DVD-1.iso ... done.Length: 4688487404 (4.4G), 4685662168 (4.4G) remaining (unauthoritative) 0% [ 8.加上用户名密码下载# wget --http-user=narad --http-password=password http://mirrors.hns.net.in/centos/6.3/isos/x86_64/CentOS-6.3-x86_64-LiveDVD.iso# wget --ftp-user=narad --ftp-password=password ftp://ftp.iinet.net.au/debian/debian-cd/6.0.5/i386/iso-dvd/debian-6.0.5-i386-DVD-1.iso9.查看wget版本和帮助信息# wget --version# wget --help
- Wget (Linux File Downloader)使用详解
- Wget (Linux File Downloader)使用详解
- file-downloader框架深入使用
- [WEB]wget-downloader
- Linux wget 详解
- [Linux] wget命令详解
- Linux wget 详解
- Linux wget命令详解
- Linux wget命令详解
- Linux wget命令详解
- Linux wget命令详解
- Linux wget命令详解
- Linux wget命令详解
- Linux wget详解
- wget使用详解
- Wget使用详解
- 开源安卓Http文件下载框架file-downloader的使用
- 开源安卓Http文件下载框架file-downloader的使用
- 使用ptrace跟踪进程
- 程序员:伤不起的三十岁
- 水池数目 结题报告
- 常量指针和指针常量 大端小端的记法
- spinlock与linux内核调度的关系
- Wget (Linux File Downloader)使用详解
- 自增自减、关系表达式
- 核函数
- web_find和web_reg_find 区别
- 科锐C语言01-作业题
- DirectX 3D_实践之DirectX3D中的文本绘制
- squeeze debian添加adobe flash player
- 小记2013杭州邀请赛
- 赫夫曼树