Skip to content

Instantly share code, notes, and snippets.

@mwender
Created August 25, 2025 18:22
Show Gist options
  • Select an option

  • Save mwender/5bfc7396fcd51b34ec10bf23e1d97058 to your computer and use it in GitHub Desktop.

Select an option

Save mwender/5bfc7396fcd51b34ec10bf23e1d97058 to your computer and use it in GitHub Desktop.
[Fast Downloads Using Aria2c] Here's a CLI one-liner for downloading files at much faster rates than `wget`. #linux

πŸš€ Fast File Downloads with aria2c

βœ… Use this whenever you need to download large files quickly from a server that supports segmented downloads.

aria2c is a lightweight, multi-protocol, multi-source command-line download utility.
Unlike wget or curl (which typically use a single connection), aria2c can split a file into multiple segments and download them in parallel. This often results in much faster downloads if the server supports range requests.


πŸ”§ Common Flags

  • -x <N> : Maximum number of connections per server (default: 1)
  • -s <N> : Number of segments to split the file into (default: 5)
  • -c : Continue downloading a partially downloaded file

πŸ’‘ Example: High-Speed Download

Download a large file using 16 parallel connections and 16 segments:

aria2c -x 16 -s 16 https://example.com/largefile.zip

This command maximizes throughput by splitting the file into 16 chunks and downloading them all at once.

πŸ“¦ Installation

macOS (Homebrew)

brew install aria2

Ubuntu/Debian

sudo apt update && sudo apt install aria2 -y

Fedora

sudo dnf install aria2 -y
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment