aria2c.1 46 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749
  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\&. If non\-zero value is specified,
  576. \fB\-\-max\-upload\-limit\fR
  577. option is ignored\&. Default:
  578. \fI0\fR
  579. .RE
  580. .PP
  581. \fB\-u\fR, \fB\-\-max\-upload\-limit\fR=SPEED
  582. .RS 4
  583. Set max upload speed per each torrent in bytes/sec\&.
  584. \fI0\fR
  585. means unrestricted\&. You can append
  586. \fIK\fR
  587. or
  588. \fIM\fR(1K = 1024, 1M = 1024K)\&. To limit the overall upload speed, use
  589. \fB\-\-max\-overall\-upload\-limit\fR
  590. option\&. Default:
  591. \fI0\fR
  592. .RE
  593. .PP
  594. \fB\-\-peer\-id\-prefix\fR=PEERI_ID_PREFIX
  595. .RS 4
  596. 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:
  597. \fI\-aria2\-\fR
  598. .RE
  599. .PP
  600. \fB\-\-seed\-ratio\fR=RATIO
  601. .RS 4
  602. Specify share ratio\&. Seed completed torrents until share ratio reaches RATIO\&. You are strongly encouraged to specify equals or more than
  603. \fI1\&.0\fR
  604. here\&. Specify
  605. \fI0\&.0\fR
  606. if you intend to do seeding regardless of share ratio\&. If
  607. \fB\-\-seed\-time\fR
  608. option is specified along with this option, seeding ends when at least one of the conditions is satisfied\&. Default:
  609. \fI1\&.0\fR
  610. .RE
  611. .PP
  612. \fB\-\-seed\-time\fR=MINUTES
  613. .RS 4
  614. Specify seeding time in minutes\&. Also see the
  615. \fB\-\-seed\-ratio\fR
  616. option\&.
  617. .RE
  618. .PP
  619. \fB\-T\fR, \fB\-\-torrent\-file\fR=TORRENT_FILE
  620. .RS 4
  621. The path to the \&.torrent file\&. You are not required to use this option because you can specify a torrent file without \-T\&.
  622. .RE
  623. .SS "Metalink Specific Options"
  624. .PP
  625. \fB\-\-follow\-metalink\fR=\fItrue\fR|\fIfalse\fR|\fImem\fR
  626. .RS 4
  627. If
  628. \fItrue\fR
  629. or
  630. \fImem\fR
  631. 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
  632. \fImem\fR
  633. is specified, a metalink file is not written to the disk, but is just kept in memory\&. If
  634. \fIfalse\fR
  635. is specified, the action mentioned above is not taken\&. Default:
  636. \fItrue\fR
  637. .RE
  638. .PP
  639. \fB\-M\fR, \fB\-\-metalink\-file\fR=METALINK_FILE
  640. .RS 4
  641. The file path to \&.metalink file\&. You are not required to use this option because you can specify a metalink file without \-M\&.
  642. .RE
  643. .PP
  644. \fB\-C\fR, \fB\-\-metalink\-servers\fR=NUM_SERVERS
  645. .RS 4
  646. 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
  647. \fB\-s\fR
  648. and
  649. \fB\-j\fR
  650. options\&. Default:
  651. \fI5\fR
  652. .RE
  653. .PP
  654. \fB\-\-metalink\-language\fR=LANGUAGE
  655. .RS 4
  656. The language of the file to download\&.
  657. .RE
  658. .PP
  659. \fB\-\-metalink\-location\fR=LOCATION[,\&...]
  660. .RS 4
  661. The location of the preferred server\&. A comma\-delimited list of locations is acceptable, for example,
  662. \fIJP,US\fR\&.
  663. .RE
  664. .PP
  665. \fB\-\-metalink\-os\fR=OS
  666. .RS 4
  667. The operating system of the file to download\&.
  668. .RE
  669. .PP
  670. \fB\-\-metalink\-version\fR=VERSION
  671. .RS 4
  672. The version of the file to download\&.
  673. .RE
  674. .PP
  675. \fB\-\-metalink\-preferred\-protocol\fR=PROTO
  676. .RS 4
  677. Specify preferred protocol\&. The possible values are
  678. \fIhttp\fR,
  679. \fIhttps\fR,
  680. \fIftp\fR
  681. and
  682. \fInone\fR\&. Specify
  683. \fInone\fR
  684. to disable this feature\&. Default:
  685. \fInone\fR
  686. .RE
  687. .PP
  688. \fB\-\-metalink\-enable\-unique\-protocol\fR=\fItrue\fR|\fIfalse\fR
  689. .RS 4
  690. If
  691. \fItrue\fR
  692. is given and several protocols are available for a mirror in a metalink file, aria2 uses one of them\&. Use
  693. \fB\-\-metalink\-preferred\-protocol\fR
  694. option to specify the preference of protocol\&. Default:
  695. \fItrue\fR
  696. .RE
  697. .SS "Advanced Options"
  698. .PP
  699. \fB\-\-allow\-overwrite\fR=\fItrue\fR|\fIfalse\fR
  700. .RS 4
  701. If
  702. \fIfalse\fR
  703. 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
  704. \fB\-\-auto\-file\-renaming\fR=\fItrue\fR
  705. then, file name will be renamed\&. See
  706. \fB\-\-auto\-file\-renaming\fR
  707. for details\&. Default:
  708. \fIfalse\fR
  709. .RE
  710. .PP
  711. \fB\-\-allow\-piece\-length\-change\fR=\fItrue\fR|\fIfalse\fR
  712. .RS 4
  713. 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:
  714. \fIfalse\fR
  715. .RE
  716. .PP
  717. \fB\-\-async\-dns\fR[=\fItrue\fR|\fIfalse\fR]
  718. .RS 4
  719. Enable asynchronous DNS\&. Default:
  720. \fItrue\fR
  721. .RE
  722. .PP
  723. \fB\-\-auto\-file\-renaming\fR[=\fItrue\fR|\fIfalse\fR]
  724. .RS 4
  725. 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:
  726. \fItrue\fR
  727. .RE
  728. .PP
  729. \fB\-\-auto\-save\-interval\fR=SEC
  730. .RS 4
  731. Save a control file(*\&.aria2) every SEC seconds\&. If
  732. \fI0\fR
  733. 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
  734. \fI0\fR
  735. to
  736. \fI600\fR\&. Default:
  737. \fI60\fR
  738. .RE
  739. .PP
  740. \fB\-\-conf\-path\fR=PATH
  741. .RS 4
  742. Change the configuration file path to PATH\&. Default:
  743. \fI$HOME/\&.aria2/aria2\&.conf\fR
  744. .RE
  745. .PP
  746. \fB\-D\fR, \fB\-\-daemon\fR
  747. .RS 4
  748. Run as daemon\&.
  749. .RE
  750. .PP
  751. \fB\-\-enable\-direct\-io\fR[=\fItrue\fR|\fIfalse\fR]
  752. .RS 4
  753. Enable directI/O, which lowers cpu usage while allocating/checking files\&. Turn off if you encounter any error\&. Default:
  754. \fItrue\fR
  755. .RE
  756. .PP
  757. \fB\-\-enable\-http\-server\fR[=\fItrue\fR|\fIfalse\fR]
  758. .RS 4
  759. 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
  760. \fB\-\-http\-server\-listen\-port\fR
  761. option\&. Default:
  762. \fIfalse\fR
  763. .RE
  764. .PP
  765. \fB\-\-event\-poll\fR=POLL
  766. .RS 4
  767. Specify the method for polling events\&. The possible Values are
  768. \fIepoll\fR
  769. and
  770. \fIselect\fR\&. If you use recent Linux that has epoll, then the default value is
  771. \fIepoll\fR\&. Otherwise, the default value is
  772. \fIselect\fR\&.
  773. .RE
  774. .PP
  775. \fB\-\-file\-allocation\fR=METHOD
  776. .RS 4
  777. Specify file allocation method\&. METHOD is either
  778. \fInone\fR
  779. or
  780. \fIprealloc\fR\&.
  781. \fInone\fR
  782. doesn\'t pre\-allocate file space\&.
  783. \fIprealloc\fR
  784. pre\-allocates file space before download begins\&. This may take some time depending on the size of the file\&. Default:
  785. \fIprealloc\fR
  786. .RE
  787. .PP
  788. \fB\-\-log\-level\fR=LEVEL
  789. .RS 4
  790. Set log level to output\&. LEVEL is either
  791. \fIdebug\fR,
  792. \fIinfo\fR,
  793. \fInotice\fR,
  794. \fIwarn\fR
  795. or
  796. \fIerror\fR\&. Default:
  797. \fIdebug\fR
  798. .RE
  799. .PP
  800. \fB\-\-summary\-interval\fR=SEC
  801. .RS 4
  802. Set interval in seconds to output download progress summary\&. Setting
  803. \fI0\fR
  804. suppresses the output\&. Default:
  805. \fI60\fR
  806. .RE
  807. .sp
  808. .it 1 an-trap
  809. .nr an-no-space-flag 1
  810. .nr an-break-flag 1
  811. .br
  812. Note
  813. In multi file torrent downloads, the files adjacent forward to the specified files are also allocated if they share the same piece\&.
  814. .PP
  815. \fB\-Z\fR, \fB\-\-force\-sequential\fR[=\fItrue\fR|\fIfalse\fR]
  816. .RS 4
  817. Fetch URIs in the command\-line sequentially and download each URI in a separate session, like the usual command\-line download utilities\&. Default:
  818. \fIfalse\fR
  819. .RE
  820. .PP
  821. \fB\-\-http\-server\-listen\-port\fR=PORT
  822. .RS 4
  823. Specify a port number for the built\-in HTTP Server to listen to\&. See also
  824. \fB\-\-enable\-http\-server\fR
  825. option\&. The possible Values are
  826. \fI1024\fR\-\fI65535\fR\&. Default:
  827. \fI6800\fR
  828. .RE
  829. .PP
  830. \fB\-\-max\-download\-limit\fR=SPEED
  831. .RS 4
  832. Set max download speed in bytes per sec\&.
  833. \fI0\fR
  834. means unrestricted\&. You can append
  835. \fIK\fR
  836. or
  837. \fIM\fR(1K = 1024, 1M = 1024K)\&. Default:
  838. \fI0\fR
  839. .RE
  840. .PP
  841. \fB\-\-no\-conf\fR
  842. .RS 4
  843. Disable loading aria2\&.conf file\&.
  844. .RE
  845. .PP
  846. \fB\-\-no\-file\-allocation\-limit\fR=SIZE
  847. .RS 4
  848. No file allocation is made for files whose size is smaller than SIZE\&. You can append
  849. \fIK\fR
  850. or
  851. \fIM\fR(1K = 1024, 1M = 1024K)\&. Default:
  852. \fI5M\fR
  853. .RE
  854. .PP
  855. \fB\-P\fR, \fB\-\-parameterized\-uri\fR[=\fItrue\fR|\fIfalse\fR]
  856. .RS 4
  857. Enable parameterized URI support\&. You can specify set of parts:
  858. \fIhttp://{sv1,sv2,sv3}/foo\&.iso\fR\&. Also you can specify numeric sequences with step counter:
  859. \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:
  860. \fIfalse\fR
  861. .RE
  862. .PP
  863. \fB\-q\fR, \fB\-\-quiet\fR[=\fItrue\fR|\fIfalse\fR]
  864. .RS 4
  865. Make aria2 quiet (no console output)\&. Default:
  866. \fIfalse\fR
  867. .RE
  868. .PP
  869. \fB\-\-realtime\-chunk\-checksum\fR=\fItrue\fR|\fIfalse\fR
  870. .RS 4
  871. Validate chunk of data by calculating checksum while downloading a file if chunk checksums are provided\&. Default:
  872. \fItrue\fR
  873. .RE
  874. .PP
  875. \fB\-\-stop\fR=SEC
  876. .RS 4
  877. Stop application after SEC seconds has passed\&. If
  878. \fI0\fR
  879. is given, this feature is disabled\&. Default:
  880. \fI0\fR
  881. .RE
  882. .PP
  883. \fB\-v\fR, \fB\-\-version\fR
  884. .RS 4
  885. Print the version number, copyright and the configuration information and exit\&.
  886. .RE
  887. .SS "Options That Take An Optional Argument"
  888. 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\&.
  889. .sp
  890. .SS "URL, TORRENT_FILE, METALINK_FILE"
  891. 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\&.
  892. .sp
  893. 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\&.
  894. .sp
  895. 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\&.
  896. .sp
  897. .sp
  898. .it 1 an-trap
  899. .nr an-no-space-flag 1
  900. .nr an-break-flag 1
  901. .br
  902. Note
  903. Make sure that URL is quoted with single(\') or double(") quotation if it contains "&" or any characters that have special meaning in shell\&.
  904. .sp
  905. .SS "Resuming Download"
  906. Usually, you can resume transfer by just issuing same command(aria2c URL) if the previous transfer is made by aria2\&.
  907. .sp
  908. 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)\&.
  909. .sp
  910. .SH "EXIT STATUS"
  911. 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\&.
  912. .PP
  913. \fB0\fR
  914. .RS 4
  915. If all downloads are successful\&.
  916. .RE
  917. .PP
  918. \fB1\fR
  919. .RS 4
  920. If an unknown error occurs\&.
  921. .RE
  922. .PP
  923. \fB2\fR
  924. .RS 4
  925. If time out occurs\&.
  926. .RE
  927. .PP
  928. \fB3\fR
  929. .RS 4
  930. If a resource is not found\&.
  931. .RE
  932. .PP
  933. \fB4\fR
  934. .RS 4
  935. If aria2 sees the specfied number of "resource not found" error\&. See
  936. \fB\-\-max\-file\-not\-found\fR
  937. option)\&.
  938. .RE
  939. .PP
  940. \fB5\fR
  941. .RS 4
  942. If a download aborts because download speed is too slow\&. See
  943. \fB\-\-lowest\-speed\-limit\fR
  944. option)
  945. .RE
  946. .PP
  947. \fB6\fR
  948. .RS 4
  949. If network problem occurs\&.
  950. .RE
  951. .PP
  952. \fB7\fR
  953. .RS 4
  954. 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\&.
  955. .RE
  956. .sp
  957. .it 1 an-trap
  958. .nr an-no-space-flag 1
  959. .nr an-break-flag 1
  960. .br
  961. Note
  962. An error occurred in a finished download will not be reported as exit status\&.
  963. .sp
  964. .SH "ENVIRONMENT"
  965. aria2 recognizes the following environment variables\&.
  966. .PP
  967. http_proxy [http://][USER:PASSWORD@]HOST[:PORT]
  968. .RS 4
  969. Specify proxy server for use in HTTP\&. Overrides http\-proxy value in configuration file\&. The command\-line option
  970. \fB\-\-http\-proxy\fR
  971. overrides this value\&.
  972. .RE
  973. .PP
  974. https_proxy [http://][USER:PASSWORD@]HOST[:PORT]
  975. .RS 4
  976. Specify proxy server for use in HTTPS\&. Overrides https\-proxy value in configuration file\&. The command\-line option
  977. \fB\-\-https\-proxy\fR
  978. overrides this value\&.
  979. .RE
  980. .PP
  981. ftp_proxy [http://][USER:PASSWORD@]HOST[:PORT]
  982. .RS 4
  983. Specify proxy server for use in FTP\&. Overrides ftp\-proxy value in configuration file\&. The command\-line option
  984. \fB\-\-ftp\-proxy\fR
  985. overrides this value\&.
  986. .RE
  987. .PP
  988. all_proxy [http://][USER:PASSWORD@]HOST[:PORT]
  989. .RS 4
  990. Specify proxy server for use if no protocol\-specific proxy is specified\&. Overrides all\-proxy value in configuration file\&. The command\-line option
  991. \fB\-\-all\-proxy\fR
  992. overrides this value\&.
  993. .RE
  994. .PP
  995. no_proxy [DOMAIN,\&...]
  996. .RS 4
  997. Specify comma\-separated hostname or domains to which proxy should not be used\&. Overrides no\-proxy value in configuration file\&. The command\-line option
  998. \fB\-\-no\-proxy\fR
  999. overrides this value\&.
  1000. .RE
  1001. .SH "FILES"
  1002. .SS "aria2\&.conf"
  1003. 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\&.
  1004. .sp
  1005. 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\&.
  1006. .sp
  1007. .sp
  1008. .RS 4
  1009. .nf
  1010. # sample configuration file for aria2c
  1011. listen\-port=60000
  1012. dht\-listen\-port=60000
  1013. seed\-ratio=1\&.0
  1014. max\-upload\-limit=50K
  1015. ftp\-pasv=true
  1016. .fi
  1017. .RE
  1018. .SS "dht\&.dat"
  1019. By default, the routing table of DHT is saved to the path $HOME/\&.aria2/dht\&.dat\&.
  1020. .sp
  1021. .SS "Control File"
  1022. 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\&.)
  1023. .sp
  1024. 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\&.
  1025. .sp
  1026. 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\&.
  1027. .sp
  1028. .SS "Input File"
  1029. 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\&.
  1030. .sp
  1031. 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\&.
  1032. .sp
  1033. Additionally, the following options can be specified after each line of URIs\&. These optional lines must start with white space(s)\&.
  1034. .sp
  1035. .sp
  1036. .RS 4
  1037. \h'-04'\(bu\h'+03'out
  1038. .RE
  1039. .sp
  1040. .RS 4
  1041. \h'-04'\(bu\h'+03'dir
  1042. .RE
  1043. .sp
  1044. .RS 4
  1045. \h'-04'\(bu\h'+03'select\-file
  1046. .RE
  1047. These options have exactly same meaning of the ones in the command\-line options, but it just applies to the URIs it belongs to\&.
  1048. .sp
  1049. For example, the content of uri\&.txt is
  1050. .sp
  1051. .sp
  1052. .RS 4
  1053. .nf
  1054. http://server/file\&.iso http://mirror/file\&.iso
  1055. dir=/iso_images
  1056. out=file\&.img
  1057. http://foo/bar
  1058. .fi
  1059. .RE
  1060. 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\&.
  1061. .sp
  1062. In some cases, \fBout\fR parameter has no effect\&. See note of \fB\-\-out\fR option for the restrictions\&.
  1063. .sp
  1064. .SS "Server Performance Profile"
  1065. 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:
  1066. .PP
  1067. host
  1068. .RS 4
  1069. Hostname of the server\&. Required\&.
  1070. .RE
  1071. .PP
  1072. protocol
  1073. .RS 4
  1074. Protocol for this profile, such as ftp, http\&. Required\&.
  1075. .RE
  1076. .PP
  1077. dl_speed
  1078. .RS 4
  1079. The average download speed observed in the previous download in bytes per sec\&. Required\&.
  1080. .RE
  1081. .PP
  1082. sc_avg_speed
  1083. .RS 4
  1084. 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\&.
  1085. .RE
  1086. .PP
  1087. mc_avg_speed
  1088. .RS 4
  1089. 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\&.
  1090. .RE
  1091. .PP
  1092. counter
  1093. .RS 4
  1094. How many times the server is used\&. Currently this value is only used by AdaptiveURISelector\&. Optional\&.
  1095. .RE
  1096. .PP
  1097. last_updated
  1098. .RS 4
  1099. Last contact time in GMT with this server, specified in the seconds from the Epoch\&. Required\&.
  1100. .RE
  1101. .PP
  1102. status
  1103. .RS 4
  1104. ERROR is set when server cannot be reached or out\-of\-service or timeout occurred\&. Otherwise, OK is set\&.
  1105. .RE
  1106. 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\&.
  1107. .sp
  1108. An example follows:
  1109. .sp
  1110. .sp
  1111. .RS 4
  1112. .nf
  1113. host=localhost, protocol=http, dl_speed=32000, last_updated=1222491640, status=OK
  1114. host=localhost, protocol=ftp, dl_speed=0, last_updated=1222491632, status=ERROR
  1115. .fi
  1116. .RE
  1117. .SH "EXAMPLE"
  1118. .SS "HTTP/FTP Segmented Download"
  1119. .sp
  1120. .it 1 an-trap
  1121. .nr an-no-space-flag 1
  1122. .nr an-break-flag 1
  1123. .br
  1124. Download a file
  1125. .RS
  1126. .sp
  1127. .RS 4
  1128. .nf
  1129. aria2c "http://host/file\&.zip"
  1130. .fi
  1131. .RE
  1132. .sp
  1133. .it 1 an-trap
  1134. .nr an-no-space-flag 1
  1135. .nr an-break-flag 1
  1136. .br
  1137. Note
  1138. aria2 uses 5 connections to download 1 file by default\&.
  1139. .sp
  1140. .RE
  1141. .sp
  1142. .it 1 an-trap
  1143. .nr an-no-space-flag 1
  1144. .nr an-break-flag 1
  1145. .br
  1146. Download a file using 1 connection
  1147. .RS
  1148. .sp
  1149. .RS 4
  1150. .nf
  1151. aria2c \-s1 "http://host/file\&.zip"
  1152. .fi
  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. Note
  1160. aria2 uses 5 connections to download 1 file by default\&. \-s1 limits the number of connections to just 1\&.
  1161. .sp
  1162. .sp
  1163. .it 1 an-trap
  1164. .nr an-no-space-flag 1
  1165. .nr an-break-flag 1
  1166. .br
  1167. Note
  1168. 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\&.
  1169. .sp
  1170. .RE
  1171. .sp
  1172. .it 1 an-trap
  1173. .nr an-no-space-flag 1
  1174. .nr an-break-flag 1
  1175. .br
  1176. Download a file from 2 different HTTP servers
  1177. .RS
  1178. .sp
  1179. .RS 4
  1180. .nf
  1181. aria2c "http://host/file\&.zip" "http://mirror/file\&.zip"
  1182. .fi
  1183. .RE
  1184. .RE
  1185. .sp
  1186. .it 1 an-trap
  1187. .nr an-no-space-flag 1
  1188. .nr an-break-flag 1
  1189. .br
  1190. Download a file from HTTP and FTP servers
  1191. .RS
  1192. .sp
  1193. .RS 4
  1194. .nf
  1195. aria2c "http://host1/file\&.zip" "ftp://host2/file\&.zip"
  1196. .fi
  1197. .RE
  1198. .RE
  1199. .sp
  1200. .it 1 an-trap
  1201. .nr an-no-space-flag 1
  1202. .nr an-break-flag 1
  1203. .br
  1204. Download files listed in a text file concurrently
  1205. .RS
  1206. .sp
  1207. .RS 4
  1208. .nf
  1209. aria2c \-ifiles\&.txt \-j2
  1210. .fi
  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. Note
  1218. \-j option specifies the number of parallel downloads\&.
  1219. .sp
  1220. .RE
  1221. .sp
  1222. .it 1 an-trap
  1223. .nr an-no-space-flag 1
  1224. .nr an-break-flag 1
  1225. .br
  1226. Using proxy
  1227. .RS
  1228. For HTTP:
  1229. .sp
  1230. .sp
  1231. .RS 4
  1232. .nf
  1233. aria2c \-\-http\-proxy="http://proxy:8080" "http://host/file"
  1234. .fi
  1235. .RE
  1236. For FTP:
  1237. .sp
  1238. .sp
  1239. .RS 4
  1240. .nf
  1241. aria2c \-\-ftp\-proxy="http://proxy:8080" "ftp://host/file"
  1242. .fi
  1243. .RE
  1244. .sp
  1245. .it 1 an-trap
  1246. .nr an-no-space-flag 1
  1247. .nr an-break-flag 1
  1248. .br
  1249. Note
  1250. 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\&.
  1251. .sp
  1252. .RE
  1253. .sp
  1254. .it 1 an-trap
  1255. .nr an-no-space-flag 1
  1256. .nr an-break-flag 1
  1257. .br
  1258. Proxy with authorization
  1259. .RS
  1260. .sp
  1261. .RS 4
  1262. .nf
  1263. aria2c \-\-http\-proxy="http://username:password@proxy:8080" "http://host/file"
  1264. .fi
  1265. .RE
  1266. .RE
  1267. .SS "Metalink Download"
  1268. .sp
  1269. .it 1 an-trap
  1270. .nr an-no-space-flag 1
  1271. .nr an-break-flag 1
  1272. .br
  1273. Download files with remote Metalink
  1274. .RS
  1275. .sp
  1276. .RS 4
  1277. .nf
  1278. aria2c \-\-follow\-metalink=mem "http://host/file\&.metalink"
  1279. .fi
  1280. .RE
  1281. .RE
  1282. .sp
  1283. .it 1 an-trap
  1284. .nr an-no-space-flag 1
  1285. .nr an-break-flag 1
  1286. .br
  1287. Download using a local metalink file
  1288. .RS
  1289. .sp
  1290. .RS 4
  1291. .nf
  1292. aria2c \-p \-\-lowest\-speed\-limit=4000 file\&.metalink
  1293. .fi
  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. Note
  1301. To pause a download, press Ctrl\-C\&. You can resume the transfer by running aria2c with the same argument in the same directory\&.
  1302. .sp
  1303. .RE
  1304. .sp
  1305. .it 1 an-trap
  1306. .nr an-no-space-flag 1
  1307. .nr an-break-flag 1
  1308. .br
  1309. Download several local metalink files
  1310. .RS
  1311. .sp
  1312. .RS 4
  1313. .nf
  1314. aria2c \-j2 file1\&.metalink file2\&.metalink
  1315. .fi
  1316. .RE
  1317. .RE
  1318. .sp
  1319. .it 1 an-trap
  1320. .nr an-no-space-flag 1
  1321. .nr an-break-flag 1
  1322. .br
  1323. Download only selected files using index
  1324. .RS
  1325. .sp
  1326. .RS 4
  1327. .nf
  1328. aria2c \-\-select\-file=1\-4,8 file\&.metalink
  1329. .fi
  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. Note
  1337. The index is printed to the console using \-S option\&.
  1338. .sp
  1339. .RE
  1340. .sp
  1341. .it 1 an-trap
  1342. .nr an-no-space-flag 1
  1343. .nr an-break-flag 1
  1344. .br
  1345. Download a file using a local .metalink file with user preference
  1346. .RS
  1347. .sp
  1348. .RS 4
  1349. .nf
  1350. aria2c \-\-metalink\-location=JP,US \-\-metalink\-version=1\&.1 \-\-metalink\-language=en\-US file\&.metalink
  1351. .fi
  1352. .RE
  1353. .RE
  1354. .SS "BitTorrent Download"
  1355. .sp
  1356. .it 1 an-trap
  1357. .nr an-no-space-flag 1
  1358. .nr an-break-flag 1
  1359. .br
  1360. Download files from remote BitTorrent file
  1361. .RS
  1362. .sp
  1363. .RS 4
  1364. .nf
  1365. aria2c \-\-follow\-torrent=mem "http://host/file\&.torrent"
  1366. .fi
  1367. .RE
  1368. .RE
  1369. .sp
  1370. .it 1 an-trap
  1371. .nr an-no-space-flag 1
  1372. .nr an-break-flag 1
  1373. .br
  1374. Download using a local torrent file
  1375. .RS
  1376. .sp
  1377. .RS 4
  1378. .nf
  1379. aria2c \-\-max\-upload\-limit=40K file\&.torrent
  1380. .fi
  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. Note
  1388. \-\-max\-upload\-limit specifies the max of upload rate\&.
  1389. .sp
  1390. .sp
  1391. .it 1 an-trap
  1392. .nr an-no-space-flag 1
  1393. .nr an-break-flag 1
  1394. .br
  1395. Note
  1396. To pause a download, press Ctrl\-C\&. You can resume the transfer by run aria2c with the same argument in the same directory\&.
  1397. .sp
  1398. .RE
  1399. .sp
  1400. .it 1 an-trap
  1401. .nr an-no-space-flag 1
  1402. .nr an-break-flag 1
  1403. .br
  1404. Download 2 torrents
  1405. .RS
  1406. .sp
  1407. .RS 4
  1408. .nf
  1409. aria2c \-j2 file1\&.torrent file2\&.torrent
  1410. .fi
  1411. .RE
  1412. .RE
  1413. .sp
  1414. .it 1 an-trap
  1415. .nr an-no-space-flag 1
  1416. .nr an-break-flag 1
  1417. .br
  1418. Download a file using torrent and HTTP/FTP server
  1419. .RS
  1420. .sp
  1421. .RS 4
  1422. .nf
  1423. aria2c \-Ttest\&.torrent "http://host1/file" "ftp://host2/file"
  1424. .fi
  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. Note
  1432. Downloading multi file torrent with HTTP/FTP is not supported\&.
  1433. .sp
  1434. .RE
  1435. .sp
  1436. .it 1 an-trap
  1437. .nr an-no-space-flag 1
  1438. .nr an-break-flag 1
  1439. .br
  1440. Download only selected files using index(usually called "selectable download")
  1441. .RS
  1442. .sp
  1443. .RS 4
  1444. .nf
  1445. aria2c \-\-select\-file=1\-4,8 file\&.torrent
  1446. .fi
  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. Note
  1454. The index is printed to the console using \-S option\&.
  1455. .sp
  1456. .RE
  1457. .sp
  1458. .it 1 an-trap
  1459. .nr an-no-space-flag 1
  1460. .nr an-break-flag 1
  1461. .br
  1462. Change the listening port for incoming peer
  1463. .RS
  1464. .sp
  1465. .RS 4
  1466. .nf
  1467. aria2c \-\-listen\-port=7000\-7001,8000 file\&.torrent
  1468. .fi
  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. Note
  1476. Since aria2 doesn\'t configure firewall or router for port forwarding, it\'s up to you to do it manually\&.
  1477. .sp
  1478. .RE
  1479. .sp
  1480. .it 1 an-trap
  1481. .nr an-no-space-flag 1
  1482. .nr an-break-flag 1
  1483. .br
  1484. Specify the condition to stop program after torrent download finished
  1485. .RS
  1486. .sp
  1487. .RS 4
  1488. .nf
  1489. aria2c \-\-seed\-time=120 \-\-seed\-ratio=1\&.0 file\&.torrent
  1490. .fi
  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. Note
  1498. In the above example, the program exits when the 120 minutes has elapsed since download completed or seed ratio reaches 1\&.0\&.
  1499. .sp
  1500. .RE
  1501. .sp
  1502. .it 1 an-trap
  1503. .nr an-no-space-flag 1
  1504. .nr an-break-flag 1
  1505. .br
  1506. Throttle upload speed
  1507. .RS
  1508. .sp
  1509. .RS 4
  1510. .nf
  1511. aria2c \-\-max\-upload\-limit=100K file\&.torrent
  1512. .fi
  1513. .RE
  1514. .RE
  1515. .sp
  1516. .it 1 an-trap
  1517. .nr an-no-space-flag 1
  1518. .nr an-break-flag 1
  1519. .br
  1520. Enable DHT
  1521. .RS
  1522. .sp
  1523. .RS 4
  1524. .nf
  1525. aria2c \-\-enable\-dht \-\-dht\-listen\-port=6881 file\&.torrent
  1526. .fi
  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. Note
  1534. DHT uses udp port\&. Since aria2 doesn\'t configure firewall or router for port forwarding, it\'s up to you to do it manually\&.
  1535. .sp
  1536. .RE
  1537. .SS "More advanced HTTP features"
  1538. .sp
  1539. .it 1 an-trap
  1540. .nr an-no-space-flag 1
  1541. .nr an-break-flag 1
  1542. .br
  1543. Load cookies
  1544. .RS
  1545. .sp
  1546. .RS 4
  1547. .nf
  1548. aria2c \-\-load\-cookies=cookies\&.txt "http://host/file\&.zip"
  1549. .fi
  1550. .RE
  1551. .sp
  1552. .it 1 an-trap
  1553. .nr an-no-space-flag 1
  1554. .nr an-break-flag 1
  1555. .br
  1556. Note
  1557. You can use Firefox/Mozilla\'s cookie file without modification\&.
  1558. .sp
  1559. .RE
  1560. .sp
  1561. .it 1 an-trap
  1562. .nr an-no-space-flag 1
  1563. .nr an-break-flag 1
  1564. .br
  1565. Resume download started by web browsers or another programs
  1566. .RS
  1567. .sp
  1568. .RS 4
  1569. .nf
  1570. aria2c \-c \-s2 "http://host/partiallydownloadedfile\&.zip"
  1571. .fi
  1572. .RE
  1573. .RE
  1574. .sp
  1575. .it 1 an-trap
  1576. .nr an-no-space-flag 1
  1577. .nr an-break-flag 1
  1578. .br
  1579. Client certificate authorization for SSL/TLS
  1580. .RS
  1581. .sp
  1582. .RS 4
  1583. .nf
  1584. aria2c \-\-certificate=/path/to/mycert\&.pem \-\-private\-key=/path/to/mykey\&.pem https://host/file
  1585. .fi
  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. Note
  1593. The file specified in \fB\-\-private\-key\fR must be decrypted\&. The behavior when encrypted one is given is undefined\&.
  1594. .sp
  1595. .RE
  1596. .sp
  1597. .it 1 an-trap
  1598. .nr an-no-space-flag 1
  1599. .nr an-break-flag 1
  1600. .br
  1601. Verify peer in SSL/TLS using given CA certificates
  1602. .RS
  1603. .sp
  1604. .RS 4
  1605. .nf
  1606. aria2c \-\-ca\-certificate=/path/to/ca\-certificates\&.crt \-\-check\-certificate https://host/file
  1607. .fi
  1608. .RE
  1609. .RE
  1610. .SS "And more advanced features"
  1611. .sp
  1612. .it 1 an-trap
  1613. .nr an-no-space-flag 1
  1614. .nr an-break-flag 1
  1615. .br
  1616. Throttle download speed
  1617. .RS
  1618. .sp
  1619. .RS 4
  1620. .nf
  1621. aria2c \-\-max\-download\-limit=100K file\&.metalink
  1622. .fi
  1623. .RE
  1624. .RE
  1625. .sp
  1626. .it 1 an-trap
  1627. .nr an-no-space-flag 1
  1628. .nr an-break-flag 1
  1629. .br
  1630. Repair a damaged download using -V option
  1631. .RS
  1632. .sp
  1633. .RS 4
  1634. .nf
  1635. aria2c \-V file\&.metalink
  1636. .fi
  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. Note
  1644. This option is only available used with BitTorrent or metalink with chunk checksums\&.
  1645. .sp
  1646. .RE
  1647. .sp
  1648. .it 1 an-trap
  1649. .nr an-no-space-flag 1
  1650. .nr an-break-flag 1
  1651. .br
  1652. Drop connection if download speed is lower than specified value
  1653. .RS
  1654. .sp
  1655. .RS 4
  1656. .nf
  1657. aria2c \-\-lowest\-speed\-limit=10K file\&.metalink
  1658. .fi
  1659. .RE
  1660. .RE
  1661. .sp
  1662. .it 1 an-trap
  1663. .nr an-no-space-flag 1
  1664. .nr an-break-flag 1
  1665. .br
  1666. Parameterized URI support
  1667. .RS
  1668. You can specify set of parts:
  1669. .sp
  1670. .sp
  1671. .RS 4
  1672. .nf
  1673. aria2c \-P "http://{host1,host2,host3}/file\&.iso"
  1674. .fi
  1675. .RE
  1676. You can specify numeric sequence:
  1677. .sp
  1678. .sp
  1679. .RS 4
  1680. .nf
  1681. aria2c \-Z \-P "http://host/image[000\-100]\&.png"
  1682. .fi
  1683. .RE
  1684. .sp
  1685. .it 1 an-trap
  1686. .nr an-no-space-flag 1
  1687. .nr an-break-flag 1
  1688. .br
  1689. Note
  1690. \-Z option is required if the all URIs don\'t point to the same file, such as the above example\&.
  1691. .sp
  1692. You can specify step counter:
  1693. .sp
  1694. .sp
  1695. .RS 4
  1696. .nf
  1697. aria2c \-Z \-P "http://host/image[A\-Z:2]\&.png"
  1698. .fi
  1699. .RE
  1700. .RE
  1701. .sp
  1702. .it 1 an-trap
  1703. .nr an-no-space-flag 1
  1704. .nr an-break-flag 1
  1705. .br
  1706. Parallel downloads of arbitrary number of URL,metalink,torrent
  1707. .RS
  1708. .sp
  1709. .RS 4
  1710. .nf
  1711. aria2c \-j3 \-Z "http://host/file1" file2\&.torrent file3\&.metalink
  1712. .fi
  1713. .RE
  1714. .RE
  1715. .sp
  1716. .it 1 an-trap
  1717. .nr an-no-space-flag 1
  1718. .nr an-break-flag 1
  1719. .br
  1720. BitTorrent Encryption
  1721. .RS
  1722. Encrypt whole payload using ARC4:
  1723. .sp
  1724. .sp
  1725. .RS 4
  1726. .nf
  1727. aria2c \-\-bt\-min\-crypto\-level=arc4 \-\-bt\-require\-crypto=true file\&.torrent
  1728. .fi
  1729. .RE
  1730. .RE
  1731. .SH "SEE ALSO"
  1732. Project Web Site: http://aria2\&.sourceforge\&.net/
  1733. .sp
  1734. aria2 Wiki: http://apps\&.sourceforge\&.net/trac/aria2/wiki
  1735. .sp
  1736. Metalink Homepage: http://www\&.metalinker\&.org/
  1737. .sp
  1738. .SH "COPYRIGHT"
  1739. Copyright \(co 2006, 2009 Tatsuhiro Tsujikawa
  1740. .sp
  1741. 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\&.
  1742. .sp
  1743. 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\&.
  1744. .sp
  1745. 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
  1746. .sp
  1747. 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\&.
  1748. .sp