$linuxjunkies
>

aria2c(1)

aria2c is a lightweight multi-protocol download utility that supports HTTP, HTTPS, FTP, BitTorrent, and Metalink with parallel connections and resumable downloads.

UbuntuDebianFedoraArch

Synopsis

aria2c [OPTION]... [URI]...

Description

aria2c is a command-line download manager offering significant speed improvements through parallel downloading and multiple connection strategies. It supports resumable downloads, proxy configuration, and simultaneous downloads of multiple files or BitTorrent tasks.

The tool handles HTTP/HTTPS, FTP, SFTP, BitTorrent, and Metalink protocols. It can read URLs from files, validate checksums, and configure bandwidth limits, making it ideal for downloading large files, managing torrents, and automating bulk downloads in scripts.

Common options

FlagWhat it does
-o, --out=FILEspecify output filename or directory
-d, --dir=DIRspecify directory to save downloaded files
-x, --max-connection-per-server=NUMset maximum connections per server (default: 1)
-k, --min-split-size=SIZEset minimum split size in bytes (default: 20M)
-j, --max-concurrent-downloads=NUMset maximum concurrent downloads (default: 5)
-l, --log=FILEsave download log to file
-S, --show-filesshow files contained in torrent/metalink and exit
--limit-rate=SPEEDlimit download speed in bytes/sec (e.g., 1M)
-c, --continueresume incomplete downloads
-i, --input-file=FILEread URLs from text file, one URL per line
-q, --quietsuppress output to console
--check-integrity=true|falsevalidate downloaded files (requires hash in torrent)

Examples

download a single file with default settings

aria2c https://example.com/file.zip

download with 8 parallel connections and 1MB minimum split size for faster speeds

aria2c -x 8 -k 1M https://example.com/large-file.iso

download up to 3 files concurrently from URLs listed in urls.txt, saving to Downloads folder

aria2c -i urls.txt -j 3 -d ~/Downloads

resume an interrupted download, specifying output filename

aria2c -c -o incomplete-file.zip https://example.com/file.zip

download while limiting speed to 2 megabytes per second

aria2c --limit-rate=2M https://example.com/file.iso

display files in torrent without downloading

aria2c -S torrent-file.torrent

download multiple files concurrently from different mirrors

aria2c -j 5 https://mirror1.com/file.tar.gz https://mirror2.com/file.tar.gz

download and save activity log to file for troubleshooting

aria2c --log=download.log https://example.com/file.zip

Related commands