One - One Code All

Blog Content

文件下载命令wget,curl,axel

Linux-Mac   2015-12-28 18:13:14

文件下载命令wget,curl,axel比较

wget http://github.com/ziyaddin/xampp/archive/master.zip

curl -L http://github.com/ziyaddin/xampp/archive/master.zip -o xampp.zip

curl https://github.com/ziyaddin/xampp/archive/master.zip -O -J -L

curl https://github.com/ziyaddin/xampp/archive/master.zip -L -o MyFilename.zip

axel http://github.com/ziyaddin/xampp/archive/master.zip


wget优势:

比curl检索(<2秒vs. 12秒)的速度快10倍;

支持over, 支持递归下载;


curl:

使用-L的情况下,完全没有发现重定向;

使用-O用于远程文件名(master.zip);

使用-J(与一起使用-O)允许远程标头文件名(xampp-cli-master.zip);

或用于-o创建自己的文件名;



上一篇:python格式化工具yapf
下一篇:192.168.0.0/16和192.168.0.1/24代表什么

The minute you think of giving up, think of the reason why you held on so long.