1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-23 12:02:08 +02:00
tldr/pages/common/aria2c.md
Fazle Arefin 299f11dc6d
aria2c: fix multiple url use syntax and add checksum usage (#12250)
* aria2c: fix multiple url use syntax and add checksum usage

* Update pages/common/aria2c.md

Co-authored-by: Juri Dispan <juri.dispan@posteo.net>

---------

Co-authored-by: Juri Dispan <juri.dispan@posteo.net>
2024-02-14 01:31:54 +11:00

1 KiB

aria2c

Fast download utility. Supports HTTP(S), FTP, SFTP, BitTorrent, and Metalink. More information: https://aria2.github.io.

  • Download a specific URI to a file:

aria2c "{{url}}"

  • Download a file from a URI with a specific output name:

aria2c --out={{path/to/file}} "{{url}}"

  • Download multiple different files in parallel:

aria2c --force-sequential {{false}} "{{url1 url2 ...}}"

  • Download the same file from different mirrors and verify the checksum of the downloaded file:

aria2c --checksum={{sha-256}}={{hash}} "{{url1}}" "{{url2}}" "{{urlN}}"

  • Download the URIs listed in a file with a specific number of parallel downloads:

aria2c --input-file={{path/to/file}} --max-concurrent-downloads={{number_of_downloads}}

  • Download with multiple connections:

aria2c --split={{number_of_connections}} "{{url}}"

  • FTP download with username and password:

aria2c --ftp-user={{username}} --ftp-passwd={{password}} "{{url}}"

  • Limit download speed in bytes/s:

aria2c --max-download-limit={{speed}} "{{url}}"