I've just upgraded my computer hardware(cpu + motherboard + graphic card + memory + hard disk), so that install a new OS is needed. I tried to download debian-6.0.6-amd64-netinst.iso
with wget
command but the speed is so slow that I could not bear. 4Kb/s ~ 17 Kb/s
, slow like a running turtle, or even more slower if I use Chrome.
I've read the help information of wget, it seems like there are no options could make it more faster.
Is there anyway to make wget faster? Or is it possible to make it multi-threading download?
PS: my bandwidth is 4M. I use this command:
wget -c url http://hammurabi.acc.umu.se/debian-cd/6.0.6/amd64/iso-cd/debian-6.0.6-amd64-netinst.iso
Why not try
axel
? It is a fully fledged Command line based Downloader.Install
axel
and spawn download bywhere
'[Num_of_Thread]'
is the number of parallel connections to create for each link you want to download.-a
just show an improved progress bar.Unlike many other download managers, Axel downloads all the data directly to the destination file, using one single thread. This saves some time at the end because the program doesn't have to concatenate all the downloaded parts.
I tried
axel
upon Gufran's recommendation but it hugely disappointed me. My goal was to find a CLI replacement forDownThemAll
because it hogs the CPU and hard disc and slows the entire system down even on an 8-core Mac Pro. I also wanted a multithreaded replacement forwget
andcurl
, not some kludge of a script that runs multiple instances of these. So I searched further and found what I think right now is the ultimate most modern multithreaded CLI downloader there is -- aria2. The big problem I had withaxel
was that it 'faked' downloading files over SSL. I caught it doing that withtcdump
. It was downloadinghttps
links as ordinaryhttp
. That really pissed me off and if I hadn't checked, I would have had a false sense of security. I doubt that many people know about this serious breach in security. Getting back toaria2
, it is more advanced than any other downloader. It supports HTTP(S), FTP, BitTorrent, and Metalink protocols, is multiplatform, and is a download guerrilla. It maxes out my ISP's bandwidth with no load on the CPU or hard disk, unlike DTA. The man page is gigantic. I will never use more than a few of its many options. And oh, BTW, I checked its SSL performance withtcdump
and it is solid, not fake. I wrote a script that mimics DTA's behavior, if not its convenience.The basic command I use to get max bandwidth is
-c
allows continuation of download if it gets interrupted,-x 10
and-s 10
allow up to 10 connections per server, and-d "mydir"
outputs file to directorymydir
.aria2files.sh
:It reads a text file of the format:
files.txt
:The script reads the filename from the command line:
It creates the directories and downloads to them. It can create nested directories as shown in the second example.
For more details see my post Bash script to download files from URLs to specified directories listed in a text file.