wget is a command line program that retrieves content from web-servers.
wget is easy to use, but the big disadvantage with wget is there is no resume option.
Most of times when we are downloading a big file because of network problems it may get timed out.
If we use wget we need to download it again from starting, since there is no resume option with wget.
I got to know a good command line program from one my friend called aria2.
The big advantages of aria2 are:
- Aria2 has resume option.
- Aria2 is a multi-threaded program.
How to install aria2 Ubuntu/Debian:
$ sudo apt-get install aria2
Usage examples of aria2:
- Simple download
- $ aria2c “http://www.example.com”
- With resume option -c
- $ aria2c -c “http://www.example.com”
- Specifying threads
- $ aria2c -s 4 “http://www.example.com”
- The above command will download with 4 threads in parallel.
- Threads with resume
- $ aria2c -c -s 4 “http://www.example.com”
Always use -c option while downloading with aria2, that won’t download the content which is already downloaded.
We can get best out of aria2 when we are trying to download very big files like iso.