December 23, 2024

Using wget is useful to download files directly from the Linux command line. However, if you are looking for a download accelerator to do that from the Linux command line, then axel is a good choice.

It speeds up downloading by using multiple connections. Other than that it also includes support for FTP and FTPS besides the regular HTTP/S download links.

(This example uses Linux Mint but using axel is the same on different distros). To install it in Linux Mint, open Terminal and type:

sudo apt install axel

installing axel in Linux Mint

After it is installed, simply paste the download link:

axel downloadlink

download files with axel

The downloads will be split into multiple connections per file to speed them up. Also, if interrupted, they will resume automatically. You can also add multiple download links, they will be processed one after the other.

axel uses multiple connections to download files

Axel also comes with a variety of options which makes it an effective downloading tool.

Here are some of the common options when downloading with axel:

Specify an output path:

By default, the files are downloaded in the current directory. To download them to a different path using axel, use the -o flag:

axel -o outputpath downloadlink

Example: To download the files into the Documents folder in the user’s home directory, the command will be:

axel -o ~/Documents

specifying an output path where the downloaded files will be stored when using axel

Search for mirrors:

Axel also can search for different mirrors for a given download link. This can be useful in finding reliable mirrors, to do that use the -S parameter with the number of mirrors to be searched for:

axel -S3 downloadlink

specifying number of mirrors to search for before downloading using axel

In this example, axel will look for upto 3 mirrors and then begin downloading. The higher the number, the more time it will take to search for them.

Throttle download speed:

If you don’t want axel to use up all the network bandwidth, then you can use the -s parameter along with the bytes per second limit. It will then download by restricting the download speed around that number.

So to throttle download speed to around 40 KB/s, specify it in bytes with the -s parameter:

axel -s 40000 downloadlink

throttling download speed when using axel

The download connections will then be restricted to that set limit.

throttled connections per file when using axel

Quiet mode:

To use axel in quiet mode without displaying the download progress, use the -q parameter:

axel -q downloadlink

After the download is complete, you will see the regular command prompt.

Alternative indicator:

To see an alternate download status progress bar instead of the default one, use the -a parameter. It will then show the estimated time to complete the download per connection too.

axel  -a downloadlink

displaying an alternate progress bar when downloading using axel
You can also combine different parameters together. Suppose, to download a file quietly in a folder named iso that is in the user’s home directory, the complete command will be:

axel -o ~/iso -q downloadlink

using the quiet option and an output path for downloading files with axel

Finally, there is the man page for axel:

man axel

man page for axel

Overall this is a useful and lightweight Linux command-line tool that makes downloading a lot quicker.

Happy downloading.

By admin

Related Post