aria2c.1 46 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762
  1. .\" Title: aria2c
  2. .\" Author:
  3. .\" Generator: DocBook XSL Stylesheets v1.73.2 <http://docbook.sf.net/>
  4. .\" Date: 02/28/2009
  5. .\" Manual:
  6. .\" Source:
  7. .\"
  8. .TH "ARIA2C" "1" "02/28/2009" "" ""
  9. .\" disable hyphenation
  10. .nh
  11. .\" disable justification (adjust text to left margin only)
  12. .ad l
  13. .SH "NAME"
  14. aria2c \- The ultra fast download utility
  15. .SH "SYNOPSIS"
  16. aria2c [\fIOPTIONS\fR] [\fIURL\fR | \fITORRENT_FILE\fR | \fIMETALINK_FILE\fR]\&...
  17. .sp
  18. .SH "DESCRIPTION"
  19. aria2 is a utility for downloading files\&. The supported protocols are HTTP(S), FTP, BitTorrent, and Metalink\&. aria2 can download a file from multiple sources/protocols and tries to utilize your maximum download bandwidth\&. It supports downloading a file from HTTP(S)/FTP and BitTorrent at the same time, while the data downloaded from HTTP(S)/FTP is uploaded to the BitTorrent swarm\&. Using Metalink\'s chunk checksums, aria2 automatically validates chunks of data while downloading a file like BitTorrent\&.
  20. .sp
  21. .SH "OPTIONS"
  22. .SS "Basic Options"
  23. .PP
  24. \fB\-d\fR, \fB\-\-dir\fR=DIR
  25. .RS 4
  26. The directory to store the downloaded file\&.
  27. .RE
  28. .PP
  29. \fB\-i\fR, \fB\-\-input\-file\fR=FILE
  30. .RS 4
  31. Downloads URIs found in FILE\&. You can specify multiple URIs for a single entity: separate URIs on a single line using the TAB character\&. Reads input from stdin when
  32. \fI\-\fR
  33. is specified\&. The additional
  34. \fBout\fR
  35. and
  36. \fBdir\fR
  37. options can be specified after each line of URIs\&. This optional line must start with white space(s)\&. See
  38. \fBInput File\fR
  39. subsection for details\&.
  40. .RE
  41. .PP
  42. \fB\-l\fR, \fB\-\-log\fR=LOG
  43. .RS 4
  44. The file name of the log file\&. If
  45. \fI\-\fR
  46. is specified, log is written to stdout\&.
  47. .RE
  48. .PP
  49. \fB\-j\fR, \fB\-\-max\-concurrent\-downloads\fR=N
  50. .RS 4
  51. Set maximum number of parallel downloads for every static (HTTP/FTP) URL, torrent and metalink\&. See also
  52. \fB\-s\fR
  53. and
  54. \fB\-C\fR
  55. option\&. Default:
  56. \fI5\fR
  57. .RE
  58. .PP
  59. \fB\-V\fR, \fB\-\-check\-integrity\fR[=\fItrue\fR|\fIfalse\fR]
  60. .RS 4
  61. Check file integrity by validating piece hashes\&. This option has effect only in BitTorrent and Metalink downloads with chunk checksums\&. Use this option to re\-download a damaged portion of a file\&. Default:
  62. \fIfalse\fR
  63. .RE
  64. .PP
  65. \fB\-c\fR, \fB\-\-continue\fR
  66. .RS 4
  67. Continue downloading a partially downloaded file\&. Use this option to resume a download started by a web browser or another program which downloads files sequentially from the beginning\&. Currently this option is only applicable to HTTP(S)/FTP downloads\&.
  68. .RE
  69. .PP
  70. \fB\-h\fR, \fB\-\-help\fR[=CATEGORY]
  71. .RS 4
  72. Print usage and exit\&. The help messages are classified in several categories\&. For example, type "\fB\-\-help\fR=http" for detailed explanation for the options related to HTTP\&. If no matching category is found, search option name using a given word in middle match and print the result\&. Available Values:
  73. \fIbasic\fR,
  74. \fIadvanced\fR,
  75. \fIhttp\fR,
  76. \fIhttps\fR,
  77. \fIftp\fR,
  78. \fImetalink\fR,
  79. \fIbittorrent\fR,
  80. \fIall\fR
  81. Default:
  82. \fIbasic\fR
  83. .RE
  84. .SS "HTTP/FTP Options"
  85. .PP
  86. \fB\-\-all\-proxy\fR=PROXY
  87. .RS 4
  88. Use this proxy server for all protocols\&. You can override this setting and specify a proxy server for a particular protocol using
  89. \fB\-\-http\-proxy\fR,
  90. \fB\-\-https\-proxy\fR
  91. and
  92. \fB\-\-ftp\-proxy\fR
  93. options\&. This affects all URLs\&. The format of PROXY is [http://][USER:PASSWORD@]HOST[:PORT]
  94. .RE
  95. .PP
  96. \fB\-\-connect\-timeout\fR=SEC
  97. .RS 4
  98. Set the connect timeout in seconds to establish connection to HTTP/FTP/proxy server\&. After the connection is established, this option makes no effect and
  99. \fB\-\-timeout\fR
  100. option is used instead\&. Default:
  101. \fI60\fR
  102. .RE
  103. .PP
  104. \fB\-\-lowest\-speed\-limit\fR=SPEED
  105. .RS 4
  106. Close connection if download speed is lower than or equal to this value(bytes per sec)\&.
  107. \fI0\fR
  108. means aria2 does not have a lowest speed limit\&. You can append
  109. \fIK\fR
  110. or
  111. \fIM\fR(1K = 1024, 1M = 1024K)\&. This option does not affect BitTorrent downloads\&. Default:
  112. \fI0\fR
  113. .RE
  114. .PP
  115. \fB\-\-max\-file\-not\-found\fR=NUM
  116. .RS 4
  117. If aria2 receives `file not found\' status from the remote HTTP/FTP servers NUM times without getting a single byte, then force the download to fail\&. Specify
  118. \fI0\fR
  119. to disable this option\&. This options is effective only when using HTTP/FTP servers\&. Default:
  120. \fI0\fR
  121. .RE
  122. .PP
  123. \fB\-m\fR, \fB\-\-max\-tries\fR=N
  124. .RS 4
  125. Set number of tries\&.
  126. \fI0\fR
  127. means unlimited\&. Default:
  128. \fI5\fR
  129. .RE
  130. .PP
  131. \fB\-\-no\-proxy\fR=DOMAINS
  132. .RS 4
  133. Specify comma separated hostnames or domains where proxy should not be used\&.
  134. .RE
  135. .PP
  136. \fB\-o\fR, \fB\-\-out\fR=FILE
  137. .RS 4
  138. The file name of the downloaded file\&.
  139. .RE
  140. .sp
  141. .it 1 an-trap
  142. .nr an-no-space-flag 1
  143. .nr an-break-flag 1
  144. .br
  145. Note
  146. In Metalink or BitTorrent download you cannot specify file name\&. The file name specified here is only used when the URLs fed to aria2 are done by command line without \fB\-i\fR, \fB\-Z\fR option\&. For example: aria2c \-o myfile\&.zip "http://mirror1/file\&.zip" "http://mirror2/file\&.zip"
  147. .PP
  148. \fB\-\-proxy\-method\fR=METHOD
  149. .RS 4
  150. Set the method to use in proxy request\&.
  151. \fIMETHOD\fR
  152. is either
  153. \fIget\fR
  154. or
  155. \fItunnel\fR\&. HTTPS downloads always use
  156. \fItunnel\fR
  157. regardless of this option\&. Default:
  158. \fIget\fR
  159. .RE
  160. .PP
  161. \fB\-R\fR, \fB\-\-remote\-time\fR[=\fItrue\fR|\fIfalse\fR]
  162. .RS 4
  163. Retrieve timestamp of the remote file from the remote HTTP/FTP server and if it is available, apply it to the local file\&. Default:
  164. \fIfalse\fR
  165. .RE
  166. .PP
  167. \fB\-\-retry\-wait\fR=SEC
  168. .RS 4
  169. Set the seconds to wait to retry after an error has occured\&. Specify a value between
  170. \fI0\fR
  171. and
  172. \fI60\fR\&. Default:
  173. \fI5\fR
  174. .RE
  175. .PP
  176. \fB\-\-server\-stat\-of\fR=FILE
  177. .RS 4
  178. Specify the filename to which performance profile of the servers is saved\&. You can load saved data using
  179. \fB\-\-server\-stat\-if\fR
  180. option\&. See
  181. \fBServer Performance Profile\fR
  182. subsection below for file format\&.
  183. .RE
  184. .PP
  185. \fB\-\-server\-stat\-if\fR=FILE
  186. .RS 4
  187. Specify the filename to load performance profile of the servers\&. The loaded data will be used in some URI selector such as
  188. \fIfeedback\fR\&. See also
  189. \fB\-\-uri\-selector\fR
  190. option\&. See
  191. \fBServer Performance Profile\fR
  192. subsection below for file format\&.
  193. .RE
  194. .PP
  195. \fB\-\-server\-stat\-timeout\fR=SEC
  196. .RS 4
  197. Specifies timeout in seconds to invalidate performance profile of the servers since the last contact to them\&. Default:
  198. \fI86400\fR
  199. (24hours)
  200. .RE
  201. .PP
  202. \fB\-s\fR, \fB\-\-split\fR=N
  203. .RS 4
  204. Download a file using N connections\&. If more than N URLs are given, first N URLs are used and remaining URLs are used for backup\&. If less than N URLs are given, those URLs are used more than once so that N connections total are made simultaneously\&. Please see
  205. \fB\-j\fR
  206. option too\&. Please note that in Metalink download, this option has no effect and use
  207. \fB\-C\fR
  208. option instead\&. Default:
  209. \fI5\fR
  210. .RE
  211. .PP
  212. \fB\-t\fR, \fB\-\-timeout\fR=SEC
  213. .RS 4
  214. Set timeout in seconds\&. Default:
  215. \fI60\fR
  216. .RE
  217. .PP
  218. \fB\-\-uri\-selector\fR=SELECTOR
  219. .RS 4
  220. Specify URI selection algorithm\&. The possible values are
  221. \fIinorder\fR,
  222. \fIfeedback\fR
  223. and
  224. \fIadaptive\fR\&. If
  225. \fIinorder\fR
  226. is given, URI is tried in the order appeared in the URI list\&. If
  227. \fIfeedback\fR
  228. is given, aria2 uses download speed observed in the previous downloads and choose fastest server in the URI list\&. This also effectively skips dead mirrors\&. The observed download speed is a part of performance profile of servers mentioned in
  229. \fB\-\-server\-stat\-of\fR
  230. and
  231. \fB\-\-server\-stat\-if\fR
  232. options\&. If
  233. \fIadaptive\fR
  234. is given, selects one of the best mirrors for the first and reserved connections\&. For supplementary ones, it returns mirrors which has not been tested yet, and if each of them has already been tested, returns mirrors which has to be tested again\&. Otherwise, it doesn\'t select anymore mirrors\&. Like
  235. \fIfeedback\fR, it uses a performance profile of servers\&. Default:
  236. \fIinorder\fR
  237. .RE
  238. .SS "HTTP Specific Options"
  239. .PP
  240. \fB\-\-ca\-certificate\fR=FILE
  241. .RS 4
  242. Use the certificate authorities in FILE to verify the peers\&. The certificate file must be in PEM format and can contain multiple CA certificates\&. Use
  243. \fB\-\-check\-certificate\fR
  244. option to enable verification\&.
  245. .RE
  246. .PP
  247. \fB\-\-certificate\fR=FILE
  248. .RS 4
  249. Use the client certificate in FILE\&. The certificate must be in PEM format\&. You may use
  250. \fB\-\-private\-key\fR
  251. option to specify the private key\&.
  252. .RE
  253. .PP
  254. \fB\-\-check\-certificate\fR[=\fItrue\fR|\fIfalse\fR]
  255. .RS 4
  256. Verify the peer using certificates specified in
  257. \fB\-\-ca\-certificate\fR
  258. option\&. Default:
  259. \fItrue\fR
  260. .RE
  261. .PP
  262. \fB\-\-http\-auth\-challenge\fR[=\fItrue\fR|\fIfalse\fR]
  263. .RS 4
  264. Send HTTP authorization header only when it is requested by the server\&. If
  265. \fIfalse\fR
  266. is set, then authorization header is always sent to the server\&. There is an exception: if username and password are embedded in URI, authorization header is always sent to the server regardless of this option\&. Default:
  267. \fItrue\fR
  268. .RE
  269. .PP
  270. \fB\-\-http\-auth\-scheme\fR=SCHEME
  271. .RS 4
  272. Set HTTP authentication scheme\&. Currently,
  273. \fIbasic\fR
  274. is the only supported scheme\&. Default:
  275. \fIbasic\fR
  276. .RE
  277. .PP
  278. \fB\-\-http\-user\fR=USER
  279. .RS 4
  280. Set HTTP user\&. This affects all URLs\&.
  281. .RE
  282. .PP
  283. \fB\-\-http\-passwd\fR=PASSWD
  284. .RS 4
  285. Set HTTP password\&. This affects all URLs\&.
  286. .RE
  287. .PP
  288. \fB\-\-http\-proxy\fR=PROXY
  289. .RS 4
  290. Use this proxy server for HTTP\&. See also
  291. \fB\-\-all\-proxy\fR
  292. option\&. This affects all URLs\&. The format of PROXY is [http://][USER:PASSWORD@]HOST[:PORT]
  293. .RE
  294. .PP
  295. \fB\-\-https\-proxy\fR=PROXY
  296. .RS 4
  297. Use this proxy server for HTTPS\&. See also
  298. \fB\-\-all\-proxy\fR
  299. option\&. This affects all URLs\&. The format of PROXY is [http://][USER:PASSWORD@]HOST[:PORT]
  300. .RE
  301. .PP
  302. \fB\-\-private\-key\fR=FILE
  303. .RS 4
  304. Use the private key in FILE\&. The private key must be decrypted and in PEM format\&. The behavior when encrypted one is given is undefined\&. See also
  305. \fB\-\-certificate\fR
  306. option\&.
  307. .RE
  308. .PP
  309. \fB\-\-referer\fR=REFERER
  310. .RS 4
  311. Set Referer\&. This affects all URLs\&.
  312. .RE
  313. .PP
  314. \fB\-\-enable\-http\-keep\-alive\fR[=\fItrue\fR|\fIfalse\fR]
  315. .RS 4
  316. Enable HTTP/1\&.1 persistent connection\&. Default:
  317. \fItrue\fR
  318. .RE
  319. .PP
  320. \fB\-\-enable\-http\-pipelining\fR[=\fItrue\fR|\fIfalse\fR]
  321. .RS 4
  322. Enable HTTP/1\&.1 pipelining\&. Default:
  323. \fIfalse\fR
  324. .RE
  325. .PP
  326. \fB\-\-header\fR=HEADER
  327. .RS 4
  328. Append HEADER to HTTP request header\&. You can use this option repeatedly to specify more than one header: aria2c
  329. \fB\-\-header\fR="X\-A: b78"
  330. \fB\-\-header\fR="X\-B: 9J1" "http://host/file"
  331. .RE
  332. .PP
  333. \fB\-\-load\-cookies\fR=FILE
  334. .RS 4
  335. Load Cookies from FILE using the Firefox3 format (SQLite3) and the Mozilla/Firefox(1\&.x/2\&.x)/Netscape format\&.
  336. .RE
  337. .sp
  338. .it 1 an-trap
  339. .nr an-no-space-flag 1
  340. .nr an-break-flag 1
  341. .br
  342. Note
  343. If aria2 is built without libsqlite3, then it doesn\'t support Firefox3 cookie format\&.
  344. .PP
  345. \fB\-\-use\-head\fR[=\fItrue\fR|\fIfalse\fR]
  346. .RS 4
  347. Use HEAD method for the first request to the HTTP server\&. Default:
  348. \fItrue\fR
  349. .RE
  350. .PP
  351. \fB\-U\fR, \fB\-\-user\-agent\fR=USER_AGENT
  352. .RS 4
  353. Set user agent for HTTP(S) downloads\&.
  354. .RE
  355. .SS "FTP Specific Options"
  356. .PP
  357. \fB\-\-ftp\-user\fR=USER
  358. .RS 4
  359. Set FTP user\&. This affects all URLs\&. Default:
  360. \fIanonymous\fR
  361. .RE
  362. .PP
  363. \fB\-\-ftp\-passwd\fR=PASSWD
  364. .RS 4
  365. Set FTP password\&. This affects all URLs\&. Default:
  366. \fIARIA2USER@\fR
  367. .RE
  368. .PP
  369. \fB\-p\fR, \fB\-\-ftp\-pasv\fR[=\fItrue\fR|\fIfalse\fR]
  370. .RS 4
  371. Use the passive mode in FTP\&. If
  372. \fIfalse\fR
  373. is given, the active mode will be used\&. Default:
  374. \fItrue\fR
  375. .RE
  376. .PP
  377. \fB\-\-ftp\-proxy\fR=PROXY
  378. .RS 4
  379. Use this proxy server for FTP\&. See also
  380. \fB\-\-all\-proxy\fR
  381. option\&. This affects all URLs\&. The format of PROXY is [http://][USER:PASSWORD@]HOST[:PORT]
  382. .RE
  383. .PP
  384. \fB\-\-ftp\-type\fR=TYPE
  385. .RS 4
  386. Set FTP transfer type\&. TYPE is either
  387. \fIbinary\fR
  388. or
  389. \fIascii\fR\&. Default:
  390. \fIbinary\fR
  391. .RE
  392. .PP
  393. \fB\-\-ftp\-reuse\-connection\fR[=\fItrue\fR|\fIfalse\fR]
  394. .RS 4
  395. Reuse connection in FTP\&. Default:
  396. \fItrue\fR
  397. .RE
  398. .PP
  399. \fB\-n\fR, \fB\-\-no\-netrc\fR
  400. .RS 4
  401. Disables netrc support\&. netrc support is enabled by default\&.
  402. .RE
  403. .SS "BitTorrent/Metalink Options"
  404. .PP
  405. \fB\-\-select\-file\fR=INDEX\&...
  406. .RS 4
  407. Set file to download by specifying its index\&. You can find the file index using the
  408. \fB\-\-show\-files\fR
  409. option\&. Multiple indexes can be specified by using ",", for example:
  410. \fI3,6\fR\&. You can also use "\-" to specify a range:
  411. \fI1\-5\fR\&. "," and "\-" can be used together:
  412. \fI1\-5,8,9\fR\&. When used with the \-M option, index may vary depending on the query (see
  413. \fB\-\-metalink\-\fR* options)\&.
  414. .RE
  415. .sp
  416. .it 1 an-trap
  417. .nr an-no-space-flag 1
  418. .nr an-break-flag 1
  419. .br
  420. Note
  421. In multi file torrent, the adjacent files specified by this option may also be downloaded\&. This is by design, not a bug\&. A single piece may include several files or part of files, and aria2 writes the piece to the appropriate files\&.
  422. .PP
  423. \fB\-S\fR, \fB\-\-show\-files\fR
  424. .RS 4
  425. Print file listing of \&.torrent or \&.metalink file and exit\&. In case of \&.torrent file, additional information (infohash, piece length, etc) is also printed\&.
  426. .RE
  427. .SS "BitTorrent Specific Options"
  428. .PP
  429. \fB\-\-bt\-external\-ip\fR=IPADDRESS
  430. .RS 4
  431. Specify the external IP address to report to a BitTorrent tracker\&. Although this function is named "external", it can accept any kind of IP addresses\&. IPADDRESS must be a numeric IP address\&.
  432. .RE
  433. .PP
  434. \fB\-\-bt\-hash\-check\-seed\fR[=\fItrue\fR|\fIfalse\fR]
  435. .RS 4
  436. If
  437. \fItrue\fR
  438. is given, after hash check using
  439. \fB\-\-check\-integrity\fR
  440. option and file is complete, continue to seed file\&. If you want to check file and download it only when it is damaged or incomplete, set this option to
  441. \fIfalse\fR\&. This option has effect only on BitTorrent download\&. Default:
  442. \fItrue\fR
  443. .RE
  444. .PP
  445. \fB\-\-bt\-max\-open\-files\fR=NUM
  446. .RS 4
  447. Specify maximum number of files to open in each BitTorrent download\&. Default:
  448. \fI100\fR
  449. .RE
  450. .PP
  451. \fB\-\-bt\-max\-peers\fR=NUM
  452. .RS 4
  453. Specify the maximum number of peers per torrent\&.
  454. \fI0\fR
  455. means unlimited\&. See also
  456. \fB\-\-bt\-request\-peer\-speed\-limit\fR
  457. option\&. Default:
  458. \fI55\fR
  459. .RE
  460. .PP
  461. \fB\-\-bt\-min\-crypto\-level\fR=\fIplain\fR|\fIarc4\fR
  462. .RS 4
  463. Set minimum level of encryption method\&. If several encryption methods are provided by a peer, aria2 chooses the lowest one which satisfies the given level\&. Default:
  464. \fIplain\fR
  465. .RE
  466. .PP
  467. \fB\-\-bt\-require\-crypto\fR=\fItrue\fR|\fIfalse\fR
  468. .RS 4
  469. If true is given, aria2 doesn\'t accept and establish connection with legacy BitTorrent handshake(\e19BitTorrent protocol)\&. Thus aria2 always uses Obfuscation handshake\&. Default:
  470. \fIfalse\fR
  471. .RE
  472. .PP
  473. \fB\-\-bt\-request\-peer\-speed\-limit\fR=SPEED
  474. .RS 4
  475. If the whole download speed of every torrent is lower than SPEED, aria2 temporarily increases the number of peers to try for more download speed\&. Configuring this option with your preferred download speed can increase your download speed in some cases\&. You can append
  476. \fIK\fR
  477. or
  478. \fIM\fR(1K = 1024, 1M = 1024K)\&. Default:
  479. \fI50K\fR
  480. .RE
  481. .PP
  482. \fB\-\-bt\-seed\-unverified\fR[=\fItrue\fR|\fIfalse\fR]
  483. .RS 4
  484. Seed previously downloaded files without verifying piece hashes\&. Default:
  485. \fIfalse\fR
  486. .RE
  487. .PP
  488. \fB\-\-dht\-entry\-point\fR=HOST:PORT
  489. .RS 4
  490. Set host and port as an entry point to DHT network\&.
  491. .RE
  492. .PP
  493. \fB\-\-dht\-file\-path\fR=PATH
  494. .RS 4
  495. Change the DHT routing table file to PATH\&. Default:
  496. \fI$HOME/\&.aria2/dht\&.dat\fR
  497. .RE
  498. .PP
  499. \fB\-\-dht\-listen\-port\fR=PORT\&...
  500. .RS 4
  501. Set UDP listening port for DHT\&. Multiple ports can be specified by using ",", for example:
  502. \fI6881,6885\fR\&. You can also use "\-" to specify a range:
  503. \fI6881\-6999\fR\&. "," and "\-" can be used together\&. Default:
  504. \fI6881\-6999\fR
  505. .RE
  506. .sp
  507. .it 1 an-trap
  508. .nr an-no-space-flag 1
  509. .nr an-break-flag 1
  510. .br
  511. Note
  512. Make sure that the specified ports are open for incoming UDP traffic\&.
  513. .PP
  514. \fB\-\-direct\-file\-mapping\fR=\fItrue\fR|\fIfalse\fR
  515. .RS 4
  516. Directly read from and write to each file mentioned in \&.torrent file\&. Use this option if lots of files are listed in \&.torrent file and aria2 complains it cannot open files anymore\&. Default:
  517. \fItrue\fR
  518. .RE
  519. .PP
  520. \fB\-\-enable\-dht\fR[=\fItrue\fR|\fIfalse\fR]
  521. .RS 4
  522. Enable DHT functionality\&. If a private flag is set in a torrent, aria2 doesn\'t use DHT for that download even if
  523. \fItrue\fR
  524. is given\&. Default:
  525. \fIfalse\fR
  526. .RE
  527. .PP
  528. \fB\-\-enable\-peer\-exchange\fR[=\fItrue\fR|\fIfalse\fR]
  529. .RS 4
  530. Enable Peer Exchange extension\&. If a private flag is set in a torrent, this feature is disabled for that download even if
  531. \fItrue\fR
  532. is given\&. Default:
  533. \fItrue\fR
  534. .RE
  535. .PP
  536. \fB\-\-follow\-torrent\fR=\fItrue\fR|\fIfalse\fR|\fImem\fR
  537. .RS 4
  538. If
  539. \fItrue\fR
  540. or
  541. \fImem\fR
  542. is specified, when a file whose suffix is "\&.torrent" or content type is "application/x\-bittorrent" is downloaded, aria2 parses it as a torrent file and downloads files mentioned in it\&. If
  543. \fImem\fR
  544. is specified, a torrent file is not written to the disk, but is just kept in memory\&. If
  545. \fIfalse\fR
  546. is specified, the action mentioned above is not taken\&. Default:
  547. \fItrue\fR
  548. .RE
  549. .PP
  550. \fB\-\-listen\-port\fR=PORT\&...
  551. .RS 4
  552. Set TCP port number for BitTorrent downloads\&. Multiple ports can be specified by using ",", for example:
  553. \fI6881,6885\fR\&. You can also use "\-" to specify a range:
  554. \fI6881\-6999\fR\&. "," and "\-" can be used together:
  555. \fI6881\-6889,6999\fR\&. Default:
  556. \fI6881\-6999\fR
  557. .RE
  558. .sp
  559. .it 1 an-trap
  560. .nr an-no-space-flag 1
  561. .nr an-break-flag 1
  562. .br
  563. Note
  564. Make sure that the specified ports are open for incoming TCP traffic\&.
  565. .PP
  566. \fB\-\-max\-overall\-upload\-limit\fR=SPEED
  567. .RS 4
  568. Set max overall upload speed in bytes/sec\&.
  569. \fI0\fR
  570. means unrestricted\&. You can append
  571. \fIK\fR
  572. or
  573. \fIM\fR(1K = 1024, 1M = 1024K)\&. To limit the upload speed per torrent, use
  574. \fB\-\-max\-upload\-limit\fR
  575. option\&. Default:
  576. \fI0\fR
  577. .RE
  578. .PP
  579. \fB\-u\fR, \fB\-\-max\-upload\-limit\fR=SPEED
  580. .RS 4
  581. Set max upload speed per each torrent in bytes/sec\&.
  582. \fI0\fR
  583. means unrestricted\&. You can append
  584. \fIK\fR
  585. or
  586. \fIM\fR(1K = 1024, 1M = 1024K)\&. To limit the overall upload speed, use
  587. \fB\-\-max\-overall\-upload\-limit\fR
  588. option\&. Default:
  589. \fI0\fR
  590. .RE
  591. .PP
  592. \fB\-\-peer\-id\-prefix\fR=PEERI_ID_PREFIX
  593. .RS 4
  594. Specify the prefix of peer ID\&. The peer ID in BitTorrent is 20 byte length\&. If more than 20 bytes are specified, only first 20 bytes are used\&. If less than 20 bytes are specified, the random alphabet characters are added to make it\'s length 20 bytes\&. Default:
  595. \fI\-aria2\-\fR
  596. .RE
  597. .PP
  598. \fB\-\-seed\-ratio\fR=RATIO
  599. .RS 4
  600. Specify share ratio\&. Seed completed torrents until share ratio reaches RATIO\&. You are strongly encouraged to specify equals or more than
  601. \fI1\&.0\fR
  602. here\&. Specify
  603. \fI0\&.0\fR
  604. if you intend to do seeding regardless of share ratio\&. If
  605. \fB\-\-seed\-time\fR
  606. option is specified along with this option, seeding ends when at least one of the conditions is satisfied\&. Default:
  607. \fI1\&.0\fR
  608. .RE
  609. .PP
  610. \fB\-\-seed\-time\fR=MINUTES
  611. .RS 4
  612. Specify seeding time in minutes\&. Also see the
  613. \fB\-\-seed\-ratio\fR
  614. option\&.
  615. .RE
  616. .PP
  617. \fB\-T\fR, \fB\-\-torrent\-file\fR=TORRENT_FILE
  618. .RS 4
  619. The path to the \&.torrent file\&. You are not required to use this option because you can specify a torrent file without \-T\&.
  620. .RE
  621. .SS "Metalink Specific Options"
  622. .PP
  623. \fB\-\-follow\-metalink\fR=\fItrue\fR|\fIfalse\fR|\fImem\fR
  624. .RS 4
  625. If
  626. \fItrue\fR
  627. or
  628. \fImem\fR
  629. is specified, when a file whose suffix is "\&.metaink" or content type of "application/metalink+xml" is downloaded, aria2 parses it as a metalink file and downloads files mentioned in it\&. If
  630. \fImem\fR
  631. is specified, a metalink file is not written to the disk, but is just kept in memory\&. If
  632. \fIfalse\fR
  633. is specified, the action mentioned above is not taken\&. Default:
  634. \fItrue\fR
  635. .RE
  636. .PP
  637. \fB\-M\fR, \fB\-\-metalink\-file\fR=METALINK_FILE
  638. .RS 4
  639. The file path to \&.metalink file\&. You are not required to use this option because you can specify a metalink file without \-M\&.
  640. .RE
  641. .PP
  642. \fB\-C\fR, \fB\-\-metalink\-servers\fR=NUM_SERVERS
  643. .RS 4
  644. The number of servers to connect to simultaneously\&. Some Metalinks regulate the number of servers to connect\&. aria2 strictly respects them\&. This means that if Metalink defines the maxconnections attribute lower than NUM_SERVERS, then aria2 uses the value of maxconnections attribute instead of NUM_SERVERS\&. See also
  645. \fB\-s\fR
  646. and
  647. \fB\-j\fR
  648. options\&. Default:
  649. \fI5\fR
  650. .RE
  651. .PP
  652. \fB\-\-metalink\-language\fR=LANGUAGE
  653. .RS 4
  654. The language of the file to download\&.
  655. .RE
  656. .PP
  657. \fB\-\-metalink\-location\fR=LOCATION[,\&...]
  658. .RS 4
  659. The location of the preferred server\&. A comma\-delimited list of locations is acceptable, for example,
  660. \fIJP,US\fR\&.
  661. .RE
  662. .PP
  663. \fB\-\-metalink\-os\fR=OS
  664. .RS 4
  665. The operating system of the file to download\&.
  666. .RE
  667. .PP
  668. \fB\-\-metalink\-version\fR=VERSION
  669. .RS 4
  670. The version of the file to download\&.
  671. .RE
  672. .PP
  673. \fB\-\-metalink\-preferred\-protocol\fR=PROTO
  674. .RS 4
  675. Specify preferred protocol\&. The possible values are
  676. \fIhttp\fR,
  677. \fIhttps\fR,
  678. \fIftp\fR
  679. and
  680. \fInone\fR\&. Specify
  681. \fInone\fR
  682. to disable this feature\&. Default:
  683. \fInone\fR
  684. .RE
  685. .PP
  686. \fB\-\-metalink\-enable\-unique\-protocol\fR=\fItrue\fR|\fIfalse\fR
  687. .RS 4
  688. If
  689. \fItrue\fR
  690. is given and several protocols are available for a mirror in a metalink file, aria2 uses one of them\&. Use
  691. \fB\-\-metalink\-preferred\-protocol\fR
  692. option to specify the preference of protocol\&. Default:
  693. \fItrue\fR
  694. .RE
  695. .SS "Advanced Options"
  696. .PP
  697. \fB\-\-allow\-overwrite\fR=\fItrue\fR|\fIfalse\fR
  698. .RS 4
  699. If
  700. \fIfalse\fR
  701. is given, aria2 doesn\'t download a file which already exists but the corresponding \&.aria2 file doesn\'t exist\&. In HTTP(S)/FTP download, if
  702. \fB\-\-auto\-file\-renaming\fR=\fItrue\fR
  703. then, file name will be renamed\&. See
  704. \fB\-\-auto\-file\-renaming\fR
  705. for details\&. Default:
  706. \fIfalse\fR
  707. .RE
  708. .PP
  709. \fB\-\-allow\-piece\-length\-change\fR=\fItrue\fR|\fIfalse\fR
  710. .RS 4
  711. If false is given, aria2 aborts download when a piece length is different from one in a control file\&. If true is given, you can proceed but some download progress will be lost\&. Default:
  712. \fIfalse\fR
  713. .RE
  714. .PP
  715. \fB\-\-async\-dns\fR[=\fItrue\fR|\fIfalse\fR]
  716. .RS 4
  717. Enable asynchronous DNS\&. Default:
  718. \fItrue\fR
  719. .RE
  720. .PP
  721. \fB\-\-auto\-file\-renaming\fR[=\fItrue\fR|\fIfalse\fR]
  722. .RS 4
  723. Rename file name if the same file already exists\&. This option works only in HTTP(S)/FTP download\&. The new file name has a dot and a number(1\&.\&.9999) appended\&. Default:
  724. \fItrue\fR
  725. .RE
  726. .PP
  727. \fB\-\-auto\-save\-interval\fR=SEC
  728. .RS 4
  729. Save a control file(*\&.aria2) every SEC seconds\&. If
  730. \fI0\fR
  731. is given, a control file is not saved during download\&. aria2 saves a control file when it stops regardless of the value\&. The possible values are between
  732. \fI0\fR
  733. to
  734. \fI600\fR\&. Default:
  735. \fI60\fR
  736. .RE
  737. .PP
  738. \fB\-\-conf\-path\fR=PATH
  739. .RS 4
  740. Change the configuration file path to PATH\&. Default:
  741. \fI$HOME/\&.aria2/aria2\&.conf\fR
  742. .RE
  743. .PP
  744. \fB\-D\fR, \fB\-\-daemon\fR
  745. .RS 4
  746. Run as daemon\&.
  747. .RE
  748. .PP
  749. \fB\-\-enable\-direct\-io\fR[=\fItrue\fR|\fIfalse\fR]
  750. .RS 4
  751. Enable directI/O, which lowers cpu usage while allocating/checking files\&. Turn off if you encounter any error\&. Default:
  752. \fItrue\fR
  753. .RE
  754. .PP
  755. \fB\-\-enable\-http\-server\fR[=\fItrue\fR|\fIfalse\fR]
  756. .RS 4
  757. Enable the built\-in HTTP server\&. Currently, this is the experimental feature and it just provides the current download progress\&. Use your web browser(console\-based ones, such as elinks, w3m, are recommended) to connect the server and see what\'s what\&. See also
  758. \fB\-\-http\-server\-listen\-port\fR
  759. option\&. Default:
  760. \fIfalse\fR
  761. .RE
  762. .PP
  763. \fB\-\-event\-poll\fR=POLL
  764. .RS 4
  765. Specify the method for polling events\&. The possible Values are
  766. \fIepoll\fR
  767. and
  768. \fIselect\fR\&. If you use recent Linux that has epoll, then the default value is
  769. \fIepoll\fR\&. Otherwise, the default value is
  770. \fIselect\fR\&.
  771. .RE
  772. .PP
  773. \fB\-\-file\-allocation\fR=METHOD
  774. .RS 4
  775. Specify file allocation method\&. METHOD is either
  776. \fInone\fR
  777. or
  778. \fIprealloc\fR\&.
  779. \fInone\fR
  780. doesn\'t pre\-allocate file space\&.
  781. \fIprealloc\fR
  782. pre\-allocates file space before download begins\&. This may take some time depending on the size of the file\&. Default:
  783. \fIprealloc\fR
  784. .RE
  785. .PP
  786. \fB\-\-log\-level\fR=LEVEL
  787. .RS 4
  788. Set log level to output\&. LEVEL is either
  789. \fIdebug\fR,
  790. \fIinfo\fR,
  791. \fInotice\fR,
  792. \fIwarn\fR
  793. or
  794. \fIerror\fR\&. Default:
  795. \fIdebug\fR
  796. .RE
  797. .PP
  798. \fB\-\-summary\-interval\fR=SEC
  799. .RS 4
  800. Set interval in seconds to output download progress summary\&. Setting
  801. \fI0\fR
  802. suppresses the output\&. Default:
  803. \fI60\fR
  804. .RE
  805. .sp
  806. .it 1 an-trap
  807. .nr an-no-space-flag 1
  808. .nr an-break-flag 1
  809. .br
  810. Note
  811. In multi file torrent downloads, the files adjacent forward to the specified files are also allocated if they share the same piece\&.
  812. .PP
  813. \fB\-Z\fR, \fB\-\-force\-sequential\fR[=\fItrue\fR|\fIfalse\fR]
  814. .RS 4
  815. Fetch URIs in the command\-line sequentially and download each URI in a separate session, like the usual command\-line download utilities\&. Default:
  816. \fIfalse\fR
  817. .RE
  818. .PP
  819. \fB\-\-http\-server\-listen\-port\fR=PORT
  820. .RS 4
  821. Specify a port number for the built\-in HTTP Server to listen to\&. See also
  822. \fB\-\-enable\-http\-server\fR
  823. option\&. The possible Values are
  824. \fI1024\fR\-\fI65535\fR\&. Default:
  825. \fI6800\fR
  826. .RE
  827. .PP
  828. \fB\-\-max\-overall\-download\-limit\fR=SPEED
  829. .RS 4
  830. Set max overall download speed in bytes/sec\&.
  831. \fI0\fR
  832. means unrestricted\&. You can append
  833. \fIK\fR
  834. or
  835. \fIM\fR(1K = 1024, 1M = 1024K)\&. To limit the download speed per download, use
  836. \fB\-\-max\-download\-limit\fR
  837. option\&. Default:
  838. \fI0\fR
  839. .RE
  840. .PP
  841. \fB\-\-max\-download\-limit\fR=SPEED
  842. .RS 4
  843. Set max download speed per each download in bytes/sec\&.
  844. \fI0\fR
  845. means unrestricted\&. You can append
  846. \fIK\fR
  847. or
  848. \fIM\fR(1K = 1024, 1M = 1024K)\&. To limit the overall download speed, use
  849. \fB\-\-max\-overall\-download\-limit\fR
  850. option\&. Default:
  851. \fI0\fR
  852. .RE
  853. .PP
  854. \fB\-\-no\-conf\fR
  855. .RS 4
  856. Disable loading aria2\&.conf file\&.
  857. .RE
  858. .PP
  859. \fB\-\-no\-file\-allocation\-limit\fR=SIZE
  860. .RS 4
  861. No file allocation is made for files whose size is smaller than SIZE\&. You can append
  862. \fIK\fR
  863. or
  864. \fIM\fR(1K = 1024, 1M = 1024K)\&. Default:
  865. \fI5M\fR
  866. .RE
  867. .PP
  868. \fB\-P\fR, \fB\-\-parameterized\-uri\fR[=\fItrue\fR|\fIfalse\fR]
  869. .RS 4
  870. Enable parameterized URI support\&. You can specify set of parts:
  871. \fIhttp://{sv1,sv2,sv3}/foo\&.iso\fR\&. Also you can specify numeric sequences with step counter:
  872. \fIhttp://host/image[000\-100:2]\&.img\fR\&. A step counter can be omitted\&. If all URIs do not point to the same file, such as the second example above, \-Z option is required\&. Default:
  873. \fIfalse\fR
  874. .RE
  875. .PP
  876. \fB\-q\fR, \fB\-\-quiet\fR[=\fItrue\fR|\fIfalse\fR]
  877. .RS 4
  878. Make aria2 quiet (no console output)\&. Default:
  879. \fIfalse\fR
  880. .RE
  881. .PP
  882. \fB\-\-realtime\-chunk\-checksum\fR=\fItrue\fR|\fIfalse\fR
  883. .RS 4
  884. Validate chunk of data by calculating checksum while downloading a file if chunk checksums are provided\&. Default:
  885. \fItrue\fR
  886. .RE
  887. .PP
  888. \fB\-\-stop\fR=SEC
  889. .RS 4
  890. Stop application after SEC seconds has passed\&. If
  891. \fI0\fR
  892. is given, this feature is disabled\&. Default:
  893. \fI0\fR
  894. .RE
  895. .PP
  896. \fB\-v\fR, \fB\-\-version\fR
  897. .RS 4
  898. Print the version number, copyright and the configuration information and exit\&.
  899. .RE
  900. .SS "Options That Take An Optional Argument"
  901. The options that have its argument surrounded by square brackets([]) take an optional argument\&. Usually omiting the argument is evaluated to \fItrue\fR\&. If you use short form of these options(such as \fI\-V\fR) and give an argument, then the option name and its argument should be concatenated(e\&.g\&. \fI\-Vfalse\fR)\&. If any spaces are inserted between the option name and the argument, the argument will be treated as URI and usually this is not what you expect\&.
  902. .sp
  903. .SS "URL, TORRENT_FILE, METALINK_FILE"
  904. You can specify multiple URLs in command\-line\&. Unless you specify \fB\-Z\fR option, all URLs must point to the same file or downloading will fail\&.
  905. .sp
  906. You can also specify arbitrary number of torrent files and metalink files stored on a local drive\&. Please note that they are always treated as a separate download\&.
  907. .sp
  908. You can specify both torrent file with \-T option and URLs\&. By doing this, you can download a file from both torrent swarm and HTTP(S)/FTP server at the same time, while the data from HTTP(S)/FTP are uploaded to the torrent swarm\&. Note that only single file torrent can be integrated with HTTP(S)/FTP\&.
  909. .sp
  910. .sp
  911. .it 1 an-trap
  912. .nr an-no-space-flag 1
  913. .nr an-break-flag 1
  914. .br
  915. Note
  916. Make sure that URL is quoted with single(\') or double(") quotation if it contains "&" or any characters that have special meaning in shell\&.
  917. .sp
  918. .SS "Resuming Download"
  919. Usually, you can resume transfer by just issuing same command(aria2c URL) if the previous transfer is made by aria2\&.
  920. .sp
  921. If the previous transfer is made by a browser or wget like sequential download manager, then use \-c option to continue the transfer(aria2c \fB\-c\fR URL)\&.
  922. .sp
  923. .SH "EXIT STATUS"
  924. Because aria2 can handle multiple downloads at once, it encounters lots of errors in a session\&. aria2 returns the following exit status based on the last error encountered\&.
  925. .PP
  926. \fB0\fR
  927. .RS 4
  928. If all downloads are successful\&.
  929. .RE
  930. .PP
  931. \fB1\fR
  932. .RS 4
  933. If an unknown error occurs\&.
  934. .RE
  935. .PP
  936. \fB2\fR
  937. .RS 4
  938. If time out occurs\&.
  939. .RE
  940. .PP
  941. \fB3\fR
  942. .RS 4
  943. If a resource is not found\&.
  944. .RE
  945. .PP
  946. \fB4\fR
  947. .RS 4
  948. If aria2 sees the specfied number of "resource not found" error\&. See
  949. \fB\-\-max\-file\-not\-found\fR
  950. option)\&.
  951. .RE
  952. .PP
  953. \fB5\fR
  954. .RS 4
  955. If a download aborts because download speed is too slow\&. See
  956. \fB\-\-lowest\-speed\-limit\fR
  957. option)
  958. .RE
  959. .PP
  960. \fB6\fR
  961. .RS 4
  962. If network problem occurs\&.
  963. .RE
  964. .PP
  965. \fB7\fR
  966. .RS 4
  967. If there are unfinished downloads\&. This error is only reported if all finished downloads are successful and there are unfinished downloads in a queue when aria2 exits by pressing Ctrl\-C by an user or sending TERM or INT signal\&.
  968. .RE
  969. .sp
  970. .it 1 an-trap
  971. .nr an-no-space-flag 1
  972. .nr an-break-flag 1
  973. .br
  974. Note
  975. An error occurred in a finished download will not be reported as exit status\&.
  976. .sp
  977. .SH "ENVIRONMENT"
  978. aria2 recognizes the following environment variables\&.
  979. .PP
  980. http_proxy [http://][USER:PASSWORD@]HOST[:PORT]
  981. .RS 4
  982. Specify proxy server for use in HTTP\&. Overrides http\-proxy value in configuration file\&. The command\-line option
  983. \fB\-\-http\-proxy\fR
  984. overrides this value\&.
  985. .RE
  986. .PP
  987. https_proxy [http://][USER:PASSWORD@]HOST[:PORT]
  988. .RS 4
  989. Specify proxy server for use in HTTPS\&. Overrides https\-proxy value in configuration file\&. The command\-line option
  990. \fB\-\-https\-proxy\fR
  991. overrides this value\&.
  992. .RE
  993. .PP
  994. ftp_proxy [http://][USER:PASSWORD@]HOST[:PORT]
  995. .RS 4
  996. Specify proxy server for use in FTP\&. Overrides ftp\-proxy value in configuration file\&. The command\-line option
  997. \fB\-\-ftp\-proxy\fR
  998. overrides this value\&.
  999. .RE
  1000. .PP
  1001. all_proxy [http://][USER:PASSWORD@]HOST[:PORT]
  1002. .RS 4
  1003. Specify proxy server for use if no protocol\-specific proxy is specified\&. Overrides all\-proxy value in configuration file\&. The command\-line option
  1004. \fB\-\-all\-proxy\fR
  1005. overrides this value\&.
  1006. .RE
  1007. .PP
  1008. no_proxy [DOMAIN,\&...]
  1009. .RS 4
  1010. Specify comma\-separated hostname or domains to which proxy should not be used\&. Overrides no\-proxy value in configuration file\&. The command\-line option
  1011. \fB\-\-no\-proxy\fR
  1012. overrides this value\&.
  1013. .RE
  1014. .SH "FILES"
  1015. .SS "aria2\&.conf"
  1016. By default, aria2 parses \fI$HOME/\&.aria2/aria2\&.conf\fR as a configuraiton file\&. You can specify the path to configuration file using \fB\-\-conf\-path\fR option\&. If you don\'t want to use the configuraitonf file, use \fB\-\-no\-conf\fR option\&.
  1017. .sp
  1018. The configuration file is a text file and has 1 option per each line\&. In each line, you can specify name\-value pair in the format: NAME=VALUE, where name is the long command\-line option name without "\-\-" prefix\&. You can use same syntax for the command\-line option\&. The lines beginning "#" are treated as comments\&.
  1019. .sp
  1020. .sp
  1021. .RS 4
  1022. .nf
  1023. # sample configuration file for aria2c
  1024. listen\-port=60000
  1025. dht\-listen\-port=60000
  1026. seed\-ratio=1\&.0
  1027. max\-upload\-limit=50K
  1028. ftp\-pasv=true
  1029. .fi
  1030. .RE
  1031. .SS "dht\&.dat"
  1032. By default, the routing table of DHT is saved to the path $HOME/\&.aria2/dht\&.dat\&.
  1033. .sp
  1034. .SS "Control File"
  1035. aria2 uses a control file to track the progress of a download\&. A control file is placed in the same directory as the downloading file and its filename is the filename of downloading file with "\&.aria2" appended\&. For example, if you are downloading file\&.zip, then the control file should be file\&.zip\&.aria2\&. (There is a exception for this naming convention\&. If you are downloading a multi torrent, its control file is the "top directory" name of the torrent with "\&.aria2" appended\&. The "top directory" name is a value of "name" key in "info" directory in a torrent file\&.)
  1036. .sp
  1037. Usually a control file is deleted once download completed\&. If aria2 decides that download cannot be resumed(for example, when downloading a file from a HTTP server which doesn\'t support resume), a control file is not created\&.
  1038. .sp
  1039. Normally if you lose a control file, you cannot resume download\&. But if you have a torrent or metalink with chunk checksums for the file, you can resume the download without a control file by giving \-V option to aria2c in command\-line\&.
  1040. .sp
  1041. .SS "Input File"
  1042. The input file can contain a list of URIs for aria2 to download\&. You can specify multiple URIs for a single entity: separate URIs on a single line using the TAB character\&.
  1043. .sp
  1044. Each line is treated as if it is provided in command\-line argument\&. Therefore they are affected by \fB\-Z\fR and \fB\-P\fR options\&.
  1045. .sp
  1046. Additionally, the following options can be specified after each line of URIs\&. These optional lines must start with white space(s)\&.
  1047. .sp
  1048. .sp
  1049. .RS 4
  1050. \h'-04'\(bu\h'+03'out
  1051. .RE
  1052. .sp
  1053. .RS 4
  1054. \h'-04'\(bu\h'+03'dir
  1055. .RE
  1056. .sp
  1057. .RS 4
  1058. \h'-04'\(bu\h'+03'select\-file
  1059. .RE
  1060. These options have exactly same meaning of the ones in the command\-line options, but it just applies to the URIs it belongs to\&.
  1061. .sp
  1062. For example, the content of uri\&.txt is
  1063. .sp
  1064. .sp
  1065. .RS 4
  1066. .nf
  1067. http://server/file\&.iso http://mirror/file\&.iso
  1068. dir=/iso_images
  1069. out=file\&.img
  1070. http://foo/bar
  1071. .fi
  1072. .RE
  1073. If aria2 is executed with \fB\-i\fR uri\&.txt \fB\-d\fR /tmp options, then \fIfile\&.iso\fR is saved as \fI/iso_images/file\&.img\fR and it is downloaded from http://server/file\&.iso and http://mirror/file\&.iso\&. The file \fIbar\fR is downloaded from http://foo/bar and saved as \fI/tmp/bar\fR\&.
  1074. .sp
  1075. In some cases, \fBout\fR parameter has no effect\&. See note of \fB\-\-out\fR option for the restrictions\&.
  1076. .sp
  1077. .SS "Server Performance Profile"
  1078. This section describes the format of server performance profile\&. The file is plain text and each line has several NAME=VALUE pair, delimited by comma\&. Currently following NAMEs are recognized:
  1079. .PP
  1080. host
  1081. .RS 4
  1082. Hostname of the server\&. Required\&.
  1083. .RE
  1084. .PP
  1085. protocol
  1086. .RS 4
  1087. Protocol for this profile, such as ftp, http\&. Required\&.
  1088. .RE
  1089. .PP
  1090. dl_speed
  1091. .RS 4
  1092. The average download speed observed in the previous download in bytes per sec\&. Required\&.
  1093. .RE
  1094. .PP
  1095. sc_avg_speed
  1096. .RS 4
  1097. The average download speed observed in the previous download in bytes per sec\&. This value is only updated if the download is done in single connection environment and only used by AdaptiveURISelector\&. Optional\&.
  1098. .RE
  1099. .PP
  1100. mc_avg_speed
  1101. .RS 4
  1102. The average download speed observed in the previous download in bytes per sec\&. This value is only updated if the download is done in multi connection environment and only used by AdaptiveURISelector\&. Optional\&.
  1103. .RE
  1104. .PP
  1105. counter
  1106. .RS 4
  1107. How many times the server is used\&. Currently this value is only used by AdaptiveURISelector\&. Optional\&.
  1108. .RE
  1109. .PP
  1110. last_updated
  1111. .RS 4
  1112. Last contact time in GMT with this server, specified in the seconds from the Epoch\&. Required\&.
  1113. .RE
  1114. .PP
  1115. status
  1116. .RS 4
  1117. ERROR is set when server cannot be reached or out\-of\-service or timeout occurred\&. Otherwise, OK is set\&.
  1118. .RE
  1119. Those fields must exist in one line\&. The order of the fields is not significant\&. You can put pairs other than the above; they are simply ignored\&.
  1120. .sp
  1121. An example follows:
  1122. .sp
  1123. .sp
  1124. .RS 4
  1125. .nf
  1126. host=localhost, protocol=http, dl_speed=32000, last_updated=1222491640, status=OK
  1127. host=localhost, protocol=ftp, dl_speed=0, last_updated=1222491632, status=ERROR
  1128. .fi
  1129. .RE
  1130. .SH "EXAMPLE"
  1131. .SS "HTTP/FTP Segmented Download"
  1132. .sp
  1133. .it 1 an-trap
  1134. .nr an-no-space-flag 1
  1135. .nr an-break-flag 1
  1136. .br
  1137. Download a file
  1138. .RS
  1139. .sp
  1140. .RS 4
  1141. .nf
  1142. aria2c "http://host/file\&.zip"
  1143. .fi
  1144. .RE
  1145. .sp
  1146. .it 1 an-trap
  1147. .nr an-no-space-flag 1
  1148. .nr an-break-flag 1
  1149. .br
  1150. Note
  1151. aria2 uses 5 connections to download 1 file by default\&.
  1152. .sp
  1153. .RE
  1154. .sp
  1155. .it 1 an-trap
  1156. .nr an-no-space-flag 1
  1157. .nr an-break-flag 1
  1158. .br
  1159. Download a file using 1 connection
  1160. .RS
  1161. .sp
  1162. .RS 4
  1163. .nf
  1164. aria2c \-s1 "http://host/file\&.zip"
  1165. .fi
  1166. .RE
  1167. .sp
  1168. .it 1 an-trap
  1169. .nr an-no-space-flag 1
  1170. .nr an-break-flag 1
  1171. .br
  1172. Note
  1173. aria2 uses 5 connections to download 1 file by default\&. \-s1 limits the number of connections to just 1\&.
  1174. .sp
  1175. .sp
  1176. .it 1 an-trap
  1177. .nr an-no-space-flag 1
  1178. .nr an-break-flag 1
  1179. .br
  1180. Note
  1181. To pause a download, press Ctrl\-C\&. You can resume the transfer by running aria2c with the same argument in the same directory\&. You can change URLs as long as they are pointing to the same file\&.
  1182. .sp
  1183. .RE
  1184. .sp
  1185. .it 1 an-trap
  1186. .nr an-no-space-flag 1
  1187. .nr an-break-flag 1
  1188. .br
  1189. Download a file from 2 different HTTP servers
  1190. .RS
  1191. .sp
  1192. .RS 4
  1193. .nf
  1194. aria2c "http://host/file\&.zip" "http://mirror/file\&.zip"
  1195. .fi
  1196. .RE
  1197. .RE
  1198. .sp
  1199. .it 1 an-trap
  1200. .nr an-no-space-flag 1
  1201. .nr an-break-flag 1
  1202. .br
  1203. Download a file from HTTP and FTP servers
  1204. .RS
  1205. .sp
  1206. .RS 4
  1207. .nf
  1208. aria2c "http://host1/file\&.zip" "ftp://host2/file\&.zip"
  1209. .fi
  1210. .RE
  1211. .RE
  1212. .sp
  1213. .it 1 an-trap
  1214. .nr an-no-space-flag 1
  1215. .nr an-break-flag 1
  1216. .br
  1217. Download files listed in a text file concurrently
  1218. .RS
  1219. .sp
  1220. .RS 4
  1221. .nf
  1222. aria2c \-ifiles\&.txt \-j2
  1223. .fi
  1224. .RE
  1225. .sp
  1226. .it 1 an-trap
  1227. .nr an-no-space-flag 1
  1228. .nr an-break-flag 1
  1229. .br
  1230. Note
  1231. \-j option specifies the number of parallel downloads\&.
  1232. .sp
  1233. .RE
  1234. .sp
  1235. .it 1 an-trap
  1236. .nr an-no-space-flag 1
  1237. .nr an-break-flag 1
  1238. .br
  1239. Using proxy
  1240. .RS
  1241. For HTTP:
  1242. .sp
  1243. .sp
  1244. .RS 4
  1245. .nf
  1246. aria2c \-\-http\-proxy="http://proxy:8080" "http://host/file"
  1247. .fi
  1248. .RE
  1249. For FTP:
  1250. .sp
  1251. .sp
  1252. .RS 4
  1253. .nf
  1254. aria2c \-\-ftp\-proxy="http://proxy:8080" "ftp://host/file"
  1255. .fi
  1256. .RE
  1257. .sp
  1258. .it 1 an-trap
  1259. .nr an-no-space-flag 1
  1260. .nr an-break-flag 1
  1261. .br
  1262. Note
  1263. See \fB\-\-http\-proxy\fR, \fB\-\-https\-proxy\fR, \fB\-\-ftp\-proxy\fR and \fB\-\-all\-proxy\fR for details\&. You can specify proxy in the environment variables\&. See \fBENVIRONMENT\fR section\&.
  1264. .sp
  1265. .RE
  1266. .sp
  1267. .it 1 an-trap
  1268. .nr an-no-space-flag 1
  1269. .nr an-break-flag 1
  1270. .br
  1271. Proxy with authorization
  1272. .RS
  1273. .sp
  1274. .RS 4
  1275. .nf
  1276. aria2c \-\-http\-proxy="http://username:password@proxy:8080" "http://host/file"
  1277. .fi
  1278. .RE
  1279. .RE
  1280. .SS "Metalink Download"
  1281. .sp
  1282. .it 1 an-trap
  1283. .nr an-no-space-flag 1
  1284. .nr an-break-flag 1
  1285. .br
  1286. Download files with remote Metalink
  1287. .RS
  1288. .sp
  1289. .RS 4
  1290. .nf
  1291. aria2c \-\-follow\-metalink=mem "http://host/file\&.metalink"
  1292. .fi
  1293. .RE
  1294. .RE
  1295. .sp
  1296. .it 1 an-trap
  1297. .nr an-no-space-flag 1
  1298. .nr an-break-flag 1
  1299. .br
  1300. Download using a local metalink file
  1301. .RS
  1302. .sp
  1303. .RS 4
  1304. .nf
  1305. aria2c \-p \-\-lowest\-speed\-limit=4000 file\&.metalink
  1306. .fi
  1307. .RE
  1308. .sp
  1309. .it 1 an-trap
  1310. .nr an-no-space-flag 1
  1311. .nr an-break-flag 1
  1312. .br
  1313. Note
  1314. To pause a download, press Ctrl\-C\&. You can resume the transfer by running aria2c with the same argument in the same directory\&.
  1315. .sp
  1316. .RE
  1317. .sp
  1318. .it 1 an-trap
  1319. .nr an-no-space-flag 1
  1320. .nr an-break-flag 1
  1321. .br
  1322. Download several local metalink files
  1323. .RS
  1324. .sp
  1325. .RS 4
  1326. .nf
  1327. aria2c \-j2 file1\&.metalink file2\&.metalink
  1328. .fi
  1329. .RE
  1330. .RE
  1331. .sp
  1332. .it 1 an-trap
  1333. .nr an-no-space-flag 1
  1334. .nr an-break-flag 1
  1335. .br
  1336. Download only selected files using index
  1337. .RS
  1338. .sp
  1339. .RS 4
  1340. .nf
  1341. aria2c \-\-select\-file=1\-4,8 file\&.metalink
  1342. .fi
  1343. .RE
  1344. .sp
  1345. .it 1 an-trap
  1346. .nr an-no-space-flag 1
  1347. .nr an-break-flag 1
  1348. .br
  1349. Note
  1350. The index is printed to the console using \-S option\&.
  1351. .sp
  1352. .RE
  1353. .sp
  1354. .it 1 an-trap
  1355. .nr an-no-space-flag 1
  1356. .nr an-break-flag 1
  1357. .br
  1358. Download a file using a local .metalink file with user preference
  1359. .RS
  1360. .sp
  1361. .RS 4
  1362. .nf
  1363. aria2c \-\-metalink\-location=JP,US \-\-metalink\-version=1\&.1 \-\-metalink\-language=en\-US file\&.metalink
  1364. .fi
  1365. .RE
  1366. .RE
  1367. .SS "BitTorrent Download"
  1368. .sp
  1369. .it 1 an-trap
  1370. .nr an-no-space-flag 1
  1371. .nr an-break-flag 1
  1372. .br
  1373. Download files from remote BitTorrent file
  1374. .RS
  1375. .sp
  1376. .RS 4
  1377. .nf
  1378. aria2c \-\-follow\-torrent=mem "http://host/file\&.torrent"
  1379. .fi
  1380. .RE
  1381. .RE
  1382. .sp
  1383. .it 1 an-trap
  1384. .nr an-no-space-flag 1
  1385. .nr an-break-flag 1
  1386. .br
  1387. Download using a local torrent file
  1388. .RS
  1389. .sp
  1390. .RS 4
  1391. .nf
  1392. aria2c \-\-max\-upload\-limit=40K file\&.torrent
  1393. .fi
  1394. .RE
  1395. .sp
  1396. .it 1 an-trap
  1397. .nr an-no-space-flag 1
  1398. .nr an-break-flag 1
  1399. .br
  1400. Note
  1401. \-\-max\-upload\-limit specifies the max of upload rate\&.
  1402. .sp
  1403. .sp
  1404. .it 1 an-trap
  1405. .nr an-no-space-flag 1
  1406. .nr an-break-flag 1
  1407. .br
  1408. Note
  1409. To pause a download, press Ctrl\-C\&. You can resume the transfer by run aria2c with the same argument in the same directory\&.
  1410. .sp
  1411. .RE
  1412. .sp
  1413. .it 1 an-trap
  1414. .nr an-no-space-flag 1
  1415. .nr an-break-flag 1
  1416. .br
  1417. Download 2 torrents
  1418. .RS
  1419. .sp
  1420. .RS 4
  1421. .nf
  1422. aria2c \-j2 file1\&.torrent file2\&.torrent
  1423. .fi
  1424. .RE
  1425. .RE
  1426. .sp
  1427. .it 1 an-trap
  1428. .nr an-no-space-flag 1
  1429. .nr an-break-flag 1
  1430. .br
  1431. Download a file using torrent and HTTP/FTP server
  1432. .RS
  1433. .sp
  1434. .RS 4
  1435. .nf
  1436. aria2c \-Ttest\&.torrent "http://host1/file" "ftp://host2/file"
  1437. .fi
  1438. .RE
  1439. .sp
  1440. .it 1 an-trap
  1441. .nr an-no-space-flag 1
  1442. .nr an-break-flag 1
  1443. .br
  1444. Note
  1445. Downloading multi file torrent with HTTP/FTP is not supported\&.
  1446. .sp
  1447. .RE
  1448. .sp
  1449. .it 1 an-trap
  1450. .nr an-no-space-flag 1
  1451. .nr an-break-flag 1
  1452. .br
  1453. Download only selected files using index(usually called "selectable download")
  1454. .RS
  1455. .sp
  1456. .RS 4
  1457. .nf
  1458. aria2c \-\-select\-file=1\-4,8 file\&.torrent
  1459. .fi
  1460. .RE
  1461. .sp
  1462. .it 1 an-trap
  1463. .nr an-no-space-flag 1
  1464. .nr an-break-flag 1
  1465. .br
  1466. Note
  1467. The index is printed to the console using \-S option\&.
  1468. .sp
  1469. .RE
  1470. .sp
  1471. .it 1 an-trap
  1472. .nr an-no-space-flag 1
  1473. .nr an-break-flag 1
  1474. .br
  1475. Change the listening port for incoming peer
  1476. .RS
  1477. .sp
  1478. .RS 4
  1479. .nf
  1480. aria2c \-\-listen\-port=7000\-7001,8000 file\&.torrent
  1481. .fi
  1482. .RE
  1483. .sp
  1484. .it 1 an-trap
  1485. .nr an-no-space-flag 1
  1486. .nr an-break-flag 1
  1487. .br
  1488. Note
  1489. Since aria2 doesn\'t configure firewall or router for port forwarding, it\'s up to you to do it manually\&.
  1490. .sp
  1491. .RE
  1492. .sp
  1493. .it 1 an-trap
  1494. .nr an-no-space-flag 1
  1495. .nr an-break-flag 1
  1496. .br
  1497. Specify the condition to stop program after torrent download finished
  1498. .RS
  1499. .sp
  1500. .RS 4
  1501. .nf
  1502. aria2c \-\-seed\-time=120 \-\-seed\-ratio=1\&.0 file\&.torrent
  1503. .fi
  1504. .RE
  1505. .sp
  1506. .it 1 an-trap
  1507. .nr an-no-space-flag 1
  1508. .nr an-break-flag 1
  1509. .br
  1510. Note
  1511. In the above example, the program exits when the 120 minutes has elapsed since download completed or seed ratio reaches 1\&.0\&.
  1512. .sp
  1513. .RE
  1514. .sp
  1515. .it 1 an-trap
  1516. .nr an-no-space-flag 1
  1517. .nr an-break-flag 1
  1518. .br
  1519. Throttle upload speed
  1520. .RS
  1521. .sp
  1522. .RS 4
  1523. .nf
  1524. aria2c \-\-max\-upload\-limit=100K file\&.torrent
  1525. .fi
  1526. .RE
  1527. .RE
  1528. .sp
  1529. .it 1 an-trap
  1530. .nr an-no-space-flag 1
  1531. .nr an-break-flag 1
  1532. .br
  1533. Enable DHT
  1534. .RS
  1535. .sp
  1536. .RS 4
  1537. .nf
  1538. aria2c \-\-enable\-dht \-\-dht\-listen\-port=6881 file\&.torrent
  1539. .fi
  1540. .RE
  1541. .sp
  1542. .it 1 an-trap
  1543. .nr an-no-space-flag 1
  1544. .nr an-break-flag 1
  1545. .br
  1546. Note
  1547. DHT uses udp port\&. Since aria2 doesn\'t configure firewall or router for port forwarding, it\'s up to you to do it manually\&.
  1548. .sp
  1549. .RE
  1550. .SS "More advanced HTTP features"
  1551. .sp
  1552. .it 1 an-trap
  1553. .nr an-no-space-flag 1
  1554. .nr an-break-flag 1
  1555. .br
  1556. Load cookies
  1557. .RS
  1558. .sp
  1559. .RS 4
  1560. .nf
  1561. aria2c \-\-load\-cookies=cookies\&.txt "http://host/file\&.zip"
  1562. .fi
  1563. .RE
  1564. .sp
  1565. .it 1 an-trap
  1566. .nr an-no-space-flag 1
  1567. .nr an-break-flag 1
  1568. .br
  1569. Note
  1570. You can use Firefox/Mozilla\'s cookie file without modification\&.
  1571. .sp
  1572. .RE
  1573. .sp
  1574. .it 1 an-trap
  1575. .nr an-no-space-flag 1
  1576. .nr an-break-flag 1
  1577. .br
  1578. Resume download started by web browsers or another programs
  1579. .RS
  1580. .sp
  1581. .RS 4
  1582. .nf
  1583. aria2c \-c \-s2 "http://host/partiallydownloadedfile\&.zip"
  1584. .fi
  1585. .RE
  1586. .RE
  1587. .sp
  1588. .it 1 an-trap
  1589. .nr an-no-space-flag 1
  1590. .nr an-break-flag 1
  1591. .br
  1592. Client certificate authorization for SSL/TLS
  1593. .RS
  1594. .sp
  1595. .RS 4
  1596. .nf
  1597. aria2c \-\-certificate=/path/to/mycert\&.pem \-\-private\-key=/path/to/mykey\&.pem https://host/file
  1598. .fi
  1599. .RE
  1600. .sp
  1601. .it 1 an-trap
  1602. .nr an-no-space-flag 1
  1603. .nr an-break-flag 1
  1604. .br
  1605. Note
  1606. The file specified in \fB\-\-private\-key\fR must be decrypted\&. The behavior when encrypted one is given is undefined\&.
  1607. .sp
  1608. .RE
  1609. .sp
  1610. .it 1 an-trap
  1611. .nr an-no-space-flag 1
  1612. .nr an-break-flag 1
  1613. .br
  1614. Verify peer in SSL/TLS using given CA certificates
  1615. .RS
  1616. .sp
  1617. .RS 4
  1618. .nf
  1619. aria2c \-\-ca\-certificate=/path/to/ca\-certificates\&.crt \-\-check\-certificate https://host/file
  1620. .fi
  1621. .RE
  1622. .RE
  1623. .SS "And more advanced features"
  1624. .sp
  1625. .it 1 an-trap
  1626. .nr an-no-space-flag 1
  1627. .nr an-break-flag 1
  1628. .br
  1629. Throttle download speed
  1630. .RS
  1631. .sp
  1632. .RS 4
  1633. .nf
  1634. aria2c \-\-max\-download\-limit=100K file\&.metalink
  1635. .fi
  1636. .RE
  1637. .RE
  1638. .sp
  1639. .it 1 an-trap
  1640. .nr an-no-space-flag 1
  1641. .nr an-break-flag 1
  1642. .br
  1643. Repair a damaged download using -V option
  1644. .RS
  1645. .sp
  1646. .RS 4
  1647. .nf
  1648. aria2c \-V file\&.metalink
  1649. .fi
  1650. .RE
  1651. .sp
  1652. .it 1 an-trap
  1653. .nr an-no-space-flag 1
  1654. .nr an-break-flag 1
  1655. .br
  1656. Note
  1657. This option is only available used with BitTorrent or metalink with chunk checksums\&.
  1658. .sp
  1659. .RE
  1660. .sp
  1661. .it 1 an-trap
  1662. .nr an-no-space-flag 1
  1663. .nr an-break-flag 1
  1664. .br
  1665. Drop connection if download speed is lower than specified value
  1666. .RS
  1667. .sp
  1668. .RS 4
  1669. .nf
  1670. aria2c \-\-lowest\-speed\-limit=10K file\&.metalink
  1671. .fi
  1672. .RE
  1673. .RE
  1674. .sp
  1675. .it 1 an-trap
  1676. .nr an-no-space-flag 1
  1677. .nr an-break-flag 1
  1678. .br
  1679. Parameterized URI support
  1680. .RS
  1681. You can specify set of parts:
  1682. .sp
  1683. .sp
  1684. .RS 4
  1685. .nf
  1686. aria2c \-P "http://{host1,host2,host3}/file\&.iso"
  1687. .fi
  1688. .RE
  1689. You can specify numeric sequence:
  1690. .sp
  1691. .sp
  1692. .RS 4
  1693. .nf
  1694. aria2c \-Z \-P "http://host/image[000\-100]\&.png"
  1695. .fi
  1696. .RE
  1697. .sp
  1698. .it 1 an-trap
  1699. .nr an-no-space-flag 1
  1700. .nr an-break-flag 1
  1701. .br
  1702. Note
  1703. \-Z option is required if the all URIs don\'t point to the same file, such as the above example\&.
  1704. .sp
  1705. You can specify step counter:
  1706. .sp
  1707. .sp
  1708. .RS 4
  1709. .nf
  1710. aria2c \-Z \-P "http://host/image[A\-Z:2]\&.png"
  1711. .fi
  1712. .RE
  1713. .RE
  1714. .sp
  1715. .it 1 an-trap
  1716. .nr an-no-space-flag 1
  1717. .nr an-break-flag 1
  1718. .br
  1719. Parallel downloads of arbitrary number of URL,metalink,torrent
  1720. .RS
  1721. .sp
  1722. .RS 4
  1723. .nf
  1724. aria2c \-j3 \-Z "http://host/file1" file2\&.torrent file3\&.metalink
  1725. .fi
  1726. .RE
  1727. .RE
  1728. .sp
  1729. .it 1 an-trap
  1730. .nr an-no-space-flag 1
  1731. .nr an-break-flag 1
  1732. .br
  1733. BitTorrent Encryption
  1734. .RS
  1735. Encrypt whole payload using ARC4:
  1736. .sp
  1737. .sp
  1738. .RS 4
  1739. .nf
  1740. aria2c \-\-bt\-min\-crypto\-level=arc4 \-\-bt\-require\-crypto=true file\&.torrent
  1741. .fi
  1742. .RE
  1743. .RE
  1744. .SH "SEE ALSO"
  1745. Project Web Site: http://aria2\&.sourceforge\&.net/
  1746. .sp
  1747. aria2 Wiki: http://apps\&.sourceforge\&.net/trac/aria2/wiki
  1748. .sp
  1749. Metalink Homepage: http://www\&.metalinker\&.org/
  1750. .sp
  1751. .SH "COPYRIGHT"
  1752. Copyright \(co 2006, 2009 Tatsuhiro Tsujikawa
  1753. .sp
  1754. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version\&.
  1755. .sp
  1756. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE\&. See the GNU General Public License for more details\&.
  1757. .sp
  1758. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc\&., 51 Franklin Street, Fifth Floor, Boston, MA 02110\-1301 USA
  1759. .sp
  1760. In addition, as a special exception, the copyright holders give permission to link the code of portions of this program with the OpenSSL library under certain conditions as described in each individual source file, and distribute linked combinations including the two\&. You must obey the GNU General Public License in all respects for all of the code used other than OpenSSL\&. If you modify file(s) with this exception, you may extend this exception to your version of the file(s), but you are not obligated to do so\&. If you do not wish to do so, delete this exception statement from your version\&. If you delete this exception statement from all source files in the program, then also delete it here\&.
  1761. .sp