Thursday, April 29, 2010

Command line downloads by using multiple connections

Today I try to search in the google that 'wget' can download one file in multiple threads , I found nothing to support this.

but I found the other program can, 'axel'

Axel - A lighter download accelerator for Linux and other Unices.
his program tries to accelerate the downloading process by using multiple connections for one file. Starting from version 0.97, the program can use multiple mirrors for one download as well. The program tries to be as light as possible (25-30k in binary form), so it might be useful as a wget clone on byte-critical systems.


install this program in ubuntu.
tatshuya# sudo apt-get install axel


## help
tatshuya# axel -h
Usage: axel [options] url1 [url2] [url...]

--max-speed=x -s x Specify maximum speed (bytes per second)
--num-connections=x -n x Specify maximum number of connections
--output=f -o f Specify local output file
--search[=x] -S [x] Search for mirrors and download from x servers
--header=x -H x Add header string
--user-agent=x -U x Set user agent
--no-proxy -N Just don't use any proxy server
--quiet -q Leave stdout alone
--verbose -v More status information
--alternate -a Alternate progress indicator
--help -h This information
--version -V Version information

## try download new ubuntu ( 10.04 ) with 5 connections
tatshuya# axel -n 5 http://cdimage.ubuntu.com/dvd/current/lucid-dvd-i386.iso


== TaTsHuYa ==

No comments: