How to Set Max Concurrent Downloads in aria2c on Ubuntu
This guide explains how to configure the maximum number of concurrent downloads in aria2c on Ubuntu. You will learn how to adjust settings temporarily via command-line flags or permanently using the configuration file. Optimizing these parameters helps maximize bandwidth usage and speed up multiple file transfers efficiently.
Using Command-Line Arguments
To set the limit for a single session, use the -j flag
followed by the number of downloads you wish to allow simultaneously.
The default value is usually 5. For example, to allow 10 concurrent
downloads, run the following command in your terminal:
aria2c -j 10 [URL1] [URL2] ...You can also use the long-form argument
--max-concurrent-downloads. This method overrides default
settings only for the current command execution.
Using the Configuration File
To make the change permanent, edit the aria2c configuration file.
This file is typically located at ~/.aria2/aria2.conf. If
the file does not exist, you can create it.
Open the configuration file using a text editor like nano:
nano ~/.aria2/aria2.confAdd or modify the following line to set your desired limit:
max-concurrent-downloads=10Save the file and exit the editor.
Any new aria2c session started after this change will automatically use the new limit. If aria2c is running as a daemon, restart the service to apply the changes:
sudo systemctl restart aria2cVerifying Your Settings
You can verify that your settings are active by checking the global options within an active session or by reviewing the configuration file again. Ensuring the correct value is set prevents bandwidth saturation and manages system resources effectively during large batch downloads.