57ijqw
Last Updated: December 26, 2018
·
8.603K
· filipekiss

Multi Thread wget

First of all, I tried to search for some similar tip around here but since I can't manage to find the search option and did not found this on the mais page for shell/linux, I am posting it.

So, have you ever wanted to multi-thread a wget download to make it faster? I know about aget but for some reason it doesn't work well on Mac Os X, so I came up with this:

for i in {1..3}; do wget -rnp -c -N [url]&; done;

This will start three instances of wget that will be "linked" and all download the same file. The options responsible for these are -rnp and -N. The -c option is there to "continue" the download in case something fails, like a drop on your connection or a blackout, than you just run you command again and it will continue from where it stopped :)

Hope it helps someone.

7 Responses
Add your response

360

Muito boa!

over 1 year ago ·
416
over 1 year ago ·
592

Thanks 1+

over 1 year ago ·
620

How come you didn't get aria2 while searching?

over 1 year ago ·
2189

What is the & in [url]& for?

over 1 year ago ·
2192
10437

it's very helpful, thanks a lot.

over 1 year ago ·