Download Kilat lewat CLI dengan Axel

MENGUNDUH BERKAS dari direct link lewat commandline di Linux bisa dilakukan dengan wget. Jika penggunaan wget secara standar dirasa lambat, bisa mencoba aplikasi download accelerator untuk Linux bernama Axel. Bagaimana caranya?

1. Instalasi (Linuxaja menggunakan Ubuntu)

root@linuxaja:~# apt-get install axel
After this operation, 221 kB of additional disk space will be used.

2. Perbandingan download berkas 100MB menggunakan standar wget

root@linuxaja:~# time wget http://cachefly.cachefly.net/100mb.test
--2015-04-13 00:44:40--  http://cachefly.cachefly.net/100mb.test
Resolving cachefly.cachefly.net (cachefly.cachefly.net)... 205.234.175.175
Connecting to cachefly.cachefly.net (cachefly.cachefly.net)|205.234.175.175|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 104857600 (100M) [application/octet-stream]
Saving to: `100mb.test'

100%[================================================================================================================================>] 104,857,600 6.88M/s   in 15s     

2015-04-13 00:44:55 (6.88 MB/s) - `100mb.test' saved [104857600/104857600]


real	0m14.562s
user	0m0.121s
sys	0m1.670s

3. Perbandingan download berkas 100MB menggunakan axel

root@linuxaja:~# time axel http://cachefly.cachefly.net/100mb.test
...
[ 99%]  .......... .......... .......... .......... ..........  [26210.3KB/s]
[ 99%]  .......... .......... .......... .......... ..........  [26196.7KB/s]
[ 99%]  .......... .......... .......... .......... ..........

Downloaded 100.0 megabytes in 3 seconds. (26153.58 KB/s)

real	0m3.947s
user	0m0.094s
sys	0m1.356s

Dapat dilihat diatas, unduh berkas via wget memerlukan waktu 14 /sd 15 detik untuk file 100MB. Dengan axel cukup 3 s/d 4 detik untuk besar file yang sama. Berlipat lebih cepat.

Semoga bermanfaat!