LinuxCommandLibrary

aria2c

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
-q, --quiet
Quiet mode

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

aria2c has been the primary interface for aria2 since the project's start around 2006.

SEE ALSO

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

Copied to clipboard