LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

aria2c

Multi-protocol multi-source download utility

TLDR

Download single file
$ aria2c [URL]
copy
Download with 16 connections
$ aria2c -x 16 -s 16 [URL]
copy
Download to specific directory
$ aria2c -d [/path/to/dir] [URL]
copy
Continue interrupted download
$ aria2c -c [URL]
copy
Download from magnet link
$ aria2c "[magnet:?xt=urn:btih:...]"
copy
Download with RPC enabled
$ aria2c --enable-rpc --rpc-listen-all
copy

SYNOPSIS

aria2c [options] [URL|TORRENT|METALINK]

DESCRIPTION

aria2c is the command-line interface for aria2, the multi-protocol download utility. It supports parallel downloads, segmented downloading, and multiple source URLs for maximizing download speed.The tool handles HTTP/HTTPS, FTP, SFTP, BitTorrent, and Metalink, with extensive configuration options.

PARAMETERS

-x n

Max connections per server (default: 1)
-s n
Split file into n segments
-c
Continue/resume download
-d dir
Download directory
-o file
Output filename
--file-allocation method
none, prealloc, trunc, falloc
--max-overall-download-limit speed
Overall speed limit
--enable-rpc
Enable RPC interface
--bt-enable-lpd
Enable Local Peer Discovery
--dht-listen-port port
DHT port for BitTorrent
-j n
Maximum number of parallel downloads (default: 5)
--seed-time minutes
Seed time in minutes for BitTorrent (0 = no seeding)
-i file, --input-file file
Read URLs from file
-q, --quiet
Quiet mode

CONFIGURATION

~/.aria2/aria2.conf

Default configuration file for setting download options, connection limits, and protocol-specific settings.

CAVEATS

aria2c is the same as aria2; the c stands for command-line. Server may limit connections despite client settings. BitTorrent features need proper network configuration.

HISTORY

aria2 was created by Tatsuhiro Tsujikawa and first released around 2006. It is written in C++ and supports HTTP/HTTPS, FTP, SFTP, BitTorrent, and Metalink.

SEE ALSO

aria2(1), wget(1), curl(1)

Copied to clipboard
Kai