aria2c.1 30 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243
  1. .\" Title: aria2c
  2. .\" Author:
  3. .\" Generator: DocBook XSL Stylesheets v1.73.2 <http://docbook.sf.net/>
  4. .\" Date: 07/08/2008
  5. .\" Manual:
  6. .\" Source:
  7. .\"
  8. .TH "ARIA2C" "1" "07/08/2008" "" ""
  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\&. It 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\&.
  34. .RE
  35. .PP
  36. \fB\-l\fR, \fB\-\-log\fR=LOG
  37. .RS 4
  38. The file name of the log file\&. If
  39. \fI\-\fR
  40. is specified, log is written to stdout\&.
  41. .RE
  42. .PP
  43. \fB\-j\fR, \fB\-\-max\-concurrent\-downloads\fR=N
  44. .RS 4
  45. Set maximum number of parallel downloads\&. Default:
  46. \fI5\fR
  47. .RE
  48. .PP
  49. \fB\-\-check\-integrity\fR=\fItrue\fR|\fIfalse\fR
  50. .RS 4
  51. Check file integrity by validating piece hash\&. This option only affects in BitTorrent downloads and Metalink downloads with chunk checksums\&. Use this option to re\-download a damaged portion of a file\&. Default:
  52. \fIfalse\fR
  53. .RE
  54. .PP
  55. \fB\-c\fR, \fB\-\-continue\fR
  56. .RS 4
  57. 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\&.
  58. .RE
  59. .PP
  60. \fB\-h\fR, \fB\-\-help\fR[=CATEGORY]
  61. .RS 4
  62. 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 forward match and print the result\&. Available Values:
  63. \fIbasic\fR,
  64. \fIadvanced\fR,
  65. \fIhttp\fR,
  66. \fIftp\fR,
  67. \fImetalink\fR,
  68. \fIbittorrent\fR,
  69. \fIall\fR
  70. Default:
  71. \fIbasic\fR
  72. .RE
  73. .SS "HTTP/FTP Options"
  74. .PP
  75. \fB\-\-lowest\-speed\-limit\fR=SPEED
  76. .RS 4
  77. Close connection if download speed is lower than or equal to this value(bytes per sec)\&.
  78. \fI0\fR
  79. means aria2 does not have a lowest speed limit\&. You can append
  80. \fIK\fR
  81. or
  82. \fIM\fR(1K = 1024, 1M = 1024K)\&. This option does not affect BitTorrent downloads\&. Default:
  83. \fI0\fR
  84. .RE
  85. .PP
  86. \fB\-m\fR, \fB\-\-max\-tries\fR=N
  87. .RS 4
  88. Set number of tries\&.
  89. \fI0\fR
  90. means unlimited\&. Default:
  91. \fI5\fR
  92. .RE
  93. .PP
  94. \fB\-o\fR, \fB\-\-out\fR=FILE
  95. .RS 4
  96. The file name of the downloaded file\&.
  97. .RE
  98. .sp
  99. .it 1 an-trap
  100. .nr an-no-space-flag 1
  101. .nr an-break-flag 1
  102. .br
  103. Note
  104. In Metalink, BitTorrent download you cannot specify file name\&. The file name specified here is only used when the URLs fed to aria2 is done by command line without \fB\-i\fR, \fB\-Z\fR option, like this: aria2c \-o myfile\&.zip http://mirror1/file\&.zip http://mirror2/file\&.zip
  105. .PP
  106. \fB\-\-retry\-wait\fR=SEC
  107. .RS 4
  108. Set the seconds to wait to retry after an error has occured\&. Specify a value between
  109. \fI0\fR
  110. and
  111. \fI60\fR\&. Default:
  112. \fI5\fR
  113. .RE
  114. .PP
  115. \fB\-s\fR, \fB\-\-split\fR=N
  116. .RS 4
  117. 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, some of the URLs are used more than once so that totaly N connections are made simultaneously\&. N must be between
  118. \fI1\fR
  119. and
  120. \fI16\fR\&. Default:
  121. \fI5\fR
  122. .RE
  123. .PP
  124. \fB\-t\fR, \fB\-\-timeout\fR=SEC
  125. .RS 4
  126. Set timeout in seconds\&. Default:
  127. \fI60\fR
  128. .RE
  129. .SS "HTTP Specific Options"
  130. .PP
  131. \fB\-\-http\-auth\-scheme\fR=SCHEME
  132. .RS 4
  133. Set HTTP authentication scheme\&. Currently,
  134. \fIbasic\fR
  135. is the only supported scheme\&. Default:
  136. \fIbasic\fR
  137. .RE
  138. .PP
  139. \fB\-\-http\-user\fR=USER
  140. .RS 4
  141. Set HTTP user\&. This affects all URLs\&.
  142. .RE
  143. .PP
  144. \fB\-\-http\-passwd\fR=PASSWD
  145. .RS 4
  146. Set HTTP password\&. This affects all URLs\&.
  147. .RE
  148. .PP
  149. \fB\-\-http\-proxy\fR=HOST:PORT
  150. .RS 4
  151. Use HTTP proxy server\&. This affects all URLs\&.
  152. .RE
  153. .PP
  154. \fB\-\-http\-proxy\-user\fR=USER
  155. .RS 4
  156. Set HTTP proxy user\&. This affects all URLs\&.
  157. .RE
  158. .PP
  159. \fB\-\-http\-proxy\-passwd\fR=PASSWD
  160. .RS 4
  161. Set HTTP proxy password\&. This affects all URLs\&.
  162. .RE
  163. .PP
  164. \fB\-\-http\-proxy\-method\fR=METHOD
  165. .RS 4
  166. Set the method to use in proxy request\&.
  167. \fIMETHOD\fR
  168. is either
  169. \fIget\fR
  170. or
  171. \fItunnel\fR\&. Default:
  172. \fItunnel\fR
  173. .RE
  174. .PP
  175. \fB\-\-referer\fR=REFERER
  176. .RS 4
  177. Set Referer\&. This affects all URLs\&.
  178. .RE
  179. .PP
  180. \fB\-\-enable\-http\-keep\-alive\fR[=\fItrue\fR|\fIfalse\fR]
  181. .RS 4
  182. Enable HTTP/1\&.1 persistent connection\&. Default:
  183. \fItrue\fR
  184. .RE
  185. .PP
  186. \fB\-\-enable\-http\-pipelining\fR[=\fItrue\fR|\fIfalse\fR]
  187. .RS 4
  188. Enable HTTP/1\&.1 pipelining\&. Default:
  189. \fIfalse\fR
  190. .RE
  191. .PP
  192. \fB\-\-header\fR=HEADER
  193. .RS 4
  194. Append HEADER to HTTP request header\&. You can use this option repeatedly to specify more than one header: aria2c
  195. \fB\-\-header\fR="X\-A: b78"
  196. \fB\-\-header\fR="X\-B: 9J1" http://host/file
  197. .RE
  198. .PP
  199. \fB\-\-load\-cookies\fR=FILE
  200. .RS 4
  201. Load cookies from FILE\&. The format of FILE is the same used by Netscape and Mozilla\&.
  202. .RE
  203. .PP
  204. \fB\-U\fR, \fB\-\-user\-agent\fR=USER_AGENT
  205. .RS 4
  206. Set user agent for HTTP(S) downloads\&.
  207. .RE
  208. .SS "FTP Specific Options"
  209. .PP
  210. \fB\-\-ftp\-user\fR=USER
  211. .RS 4
  212. Set FTP user\&. This affects all URLs\&. Default:
  213. \fIanonymous\fR
  214. .RE
  215. .PP
  216. \fB\-\-ftp\-passwd\fR=PASSWD
  217. .RS 4
  218. Set FTP password\&. This affects all URLs\&. Default:
  219. \fIARIA2USER@\fR
  220. .RE
  221. .PP
  222. \fB\-p\fR, \fB\-\-ftp\-pasv\fR
  223. .RS 4
  224. Use passive mode in FTP\&.
  225. .RE
  226. .PP
  227. \fB\-\-ftp\-type\fR=TYPE
  228. .RS 4
  229. Set FTP transfer type\&. TYPE is either
  230. \fIbinary\fR
  231. or
  232. \fIascii\fR\&. Default:
  233. \fIbinary\fR
  234. .RE
  235. .PP
  236. \fB\-\-ftp\-reuse\-connection\fR[=\fItrue\fR|\fIfalse\fR]
  237. .RS 4
  238. Reuse connection in FTP\&. Default:
  239. \fItrue\fR
  240. .RE
  241. .PP
  242. \fB\-\-ftp\-via\-http\-proxy\fR=METHOD
  243. .RS 4
  244. Use HTTP proxy in FTP\&. METHOD is either
  245. \fIget\fR
  246. or
  247. \fItunnel\fR\&. Default:
  248. \fItunnel\fR
  249. .RE
  250. .PP
  251. \fB\-n\fR, \fB\-\-no\-netrc\fR
  252. .RS 4
  253. Disables netrc support\&. netrc support is enabled by default\&.
  254. .RE
  255. .SS "BitTorrent/Metalink Options"
  256. .PP
  257. \fB\-\-select\-file\fR=INDEX\&...
  258. .RS 4
  259. Set file to download by specifing its index\&. You can find the file index using the
  260. \fB\-\-show\-files\fR
  261. option\&. Multiple indexes can be specified by using ",", for example:
  262. \fI3,6\fR\&. You can also use "\-" to specify a range:
  263. \fI1\-5\fR\&. "," and "\-" can be used together:
  264. \fI1\-5,8,9\fR\&. When used with the \-M option, index may vary depending on the query (see
  265. \fB\-\-metalink\-\fR* options)\&.
  266. .RE
  267. .sp
  268. .it 1 an-trap
  269. .nr an-no-space-flag 1
  270. .nr an-break-flag 1
  271. .br
  272. Note
  273. 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\&.
  274. .PP
  275. \fB\-S\fR, \fB\-\-show\-files\fR
  276. .RS 4
  277. Print file listing of \&.torrent or \&.metalink file and exit\&. In case of \&.torrent file, additional information (infohash, piece length, etc) is also printed\&.
  278. .RE
  279. .SS "BitTorrent Specific Options"
  280. .PP
  281. \fB\-\-bt\-max\-open\-files\fR=NUM
  282. .RS 4
  283. Specify maximum number of files to open in each BitTorrent download\&. Default:
  284. \fI100\fR
  285. .RE
  286. .PP
  287. \fB\-\-bt\-min\-crypto\-level\fR=\fIplain\fR|\fIarc4\fR
  288. .RS 4
  289. Set minimum level of encryption method\&. If several encryption methods are provided by a peer, aria2 chooses a lowest one which satisfies the given level\&. Default:
  290. \fIplain\fR
  291. .RE
  292. .PP
  293. \fB\-\-bt\-require\-crypto\fR=\fItrue\fR|\fIfalse\fR
  294. .RS 4
  295. If true is given, aria2 doesn\'t accept and establish connection with legacy BitTorrent handshake(\e19BitTorrent protocol)\&. Thus aria2 always uses Obfuscation handshake\&. Default:
  296. \fIfalse\fR
  297. .RE
  298. .PP
  299. \fB\-\-bt\-request\-peer\-speed\-limit\fR=SPEED
  300. .RS 4
  301. In BitTorrent downloads, if the download speed is lower than SPEED, aria2 initiates and accepts connections ignoring max peer cap\&. You can append
  302. \fIK\fR
  303. or
  304. \fIM\fR(1K = 1024, 1M = 1024K)\&. Default:
  305. \fI51200\fR
  306. .RE
  307. .PP
  308. \fB\-\-dht\-entry\-point\fR=HOST:PORT
  309. .RS 4
  310. Set host and port as an entry point to DHT network\&.
  311. .RE
  312. .PP
  313. \fB\-\-dht\-listen\-port\fR=PORT\&...
  314. .RS 4
  315. Set UDP listening port for DHT\&. Multiple ports can be specified by using ",", for example:
  316. \fI6881,6885\fR\&. You can also use "\-" to specify a range:
  317. \fI6881\-6999\fR\&. "," and "\-" can be used together\&. Default:
  318. \fI6881\-6999\fR
  319. .RE
  320. .PP
  321. \fB\-\-direct\-file\-mapping\fR=\fItrue\fR|\fIfalse\fR
  322. .RS 4
  323. 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:
  324. \fItrue\fR
  325. .RE
  326. .PP
  327. \fB\-\-enable\-dht\fR[=\fItrue\fR|\fIfalse\fR]
  328. .RS 4
  329. Enable DHT functionality\&. If a private flag is set in a torrent, aria2 doesn\'t use DHT for that download even if
  330. \fItrue\fR
  331. is given\&. Default:
  332. \fIfalse\fR
  333. .RE
  334. .PP
  335. \fB\-\-enable\-peer\-exchange\fR[=\fItrue\fR|\fIfalse\fR]
  336. .RS 4
  337. Enable Peer Exchange extension\&. If a private flag is set in a torrent, this feature is disabled for that download even if
  338. \fItrue\fR
  339. is given\&. Default:
  340. \fItrue\fR
  341. .RE
  342. .PP
  343. \fB\-\-follow\-torrent\fR=\fItrue\fR|\fIfalse\fR|\fImem\fR
  344. .RS 4
  345. If
  346. \fItrue\fR
  347. or
  348. \fImem\fR
  349. 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
  350. \fImem\fR
  351. is specified, a torrent file is not written to the disk, but is just kept in memory\&. If
  352. \fIfalse\fR
  353. is specified, the action mentioned above is not taken\&. Default:
  354. \fItrue\fR
  355. .RE
  356. .PP
  357. \fB\-\-listen\-port\fR=PORT\&...
  358. .RS 4
  359. Set TCP port number for BitTorrent downloads\&. Multiple ports can be specified by using ",", for example:
  360. \fI6881,6885\fR\&. You can also use "\-" to specify a range:
  361. \fI6881\-6999\fR\&. "," and "\-" can be used together:
  362. \fI6881\-6889,6999\fR\&. Default:
  363. \fI6881\-6999\fR
  364. .RE
  365. .sp
  366. .it 1 an-trap
  367. .nr an-no-space-flag 1
  368. .nr an-break-flag 1
  369. .br
  370. Note
  371. Make sure that the specified ports are open for incoming TCP traffic\&.
  372. .PP
  373. \fB\-\-max\-upload\-limit\fR=SPEED
  374. .RS 4
  375. Set max upload speed in bytes per sec\&.
  376. \fI0\fR
  377. means unrestricted\&. You can append
  378. \fIK\fR
  379. or
  380. \fIM\fR(1K = 1024, 1M = 1024K)\&. Default:
  381. \fI0\fR
  382. .RE
  383. .PP
  384. \fB\-\-peer\-id\-prefix\fR=PEERI_ID_PREFIX
  385. .RS 4
  386. 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:
  387. \fI\-aria2\-\fR
  388. .RE
  389. .PP
  390. \fB\-\-seed\-ratio\fR=RATIO
  391. .RS 4
  392. Specify share ratio\&. Seed completed torrents until share ratio reaches] RATIO\&. I strongly encourages you to specify equals or more than
  393. \fI1\&.0\fR
  394. here\&. Specify
  395. \fI0\&.0\fR
  396. if you intend to do seeding regardless of share ratio\&. If
  397. \fB\-\-seed\-time\fR
  398. option is specified along with this option, seeding ends when at least one of the conditions is satisfied\&. Default:
  399. \fI1\&.0\fR
  400. .RE
  401. .PP
  402. \fB\-\-seed\-time\fR=MINUTES
  403. .RS 4
  404. Specify seeding time in minutes\&. Also see the
  405. \fB\-\-seed\-ratio\fR
  406. option\&.
  407. .RE
  408. .PP
  409. \fB\-T\fR, \fB\-\-torrent\-file\fR=TORRENT_FILE
  410. .RS 4
  411. The path to the \&.torrent file\&. You may not use this option because you can specify torrent file without \-T\&.
  412. .RE
  413. .SS "Metalink Specific Options"
  414. .PP
  415. \fB\-\-follow\-metalink\fR=\fItrue\fR|\fIfalse\fR|\fImem\fR
  416. .RS 4
  417. If
  418. \fItrue\fR
  419. or
  420. \fImem\fR
  421. is specified, when a file whose suffix is "\&.metaink" or content type is "application/metalink+xml" is downloaded, aria2 parses it as a metalink file and downloads files mentioned in it\&. If
  422. \fImem\fR
  423. is specified, a metalink file is not written to the disk, but is just kept in memory\&. If
  424. \fIfalse\fR
  425. is specified, the action mentioned above is not taken\&. Default:
  426. \fItrue\fR
  427. .RE
  428. .PP
  429. \fB\-M\fR, \fB\-\-metalink\-file\fR=METALINK_FILE
  430. .RS 4
  431. The file path to \&.metalink file\&. You may not use this option because you can specify metalink file without \-M\&.
  432. .RE
  433. .PP
  434. \fB\-C\fR, \fB\-\-metalink\-servers\fR=NUM_SERVERS
  435. .RS 4
  436. The number of servers to connect to simultaneously\&. Some metalinks regulates the number of servers to connect\&. aria2 respects them\&. Default:
  437. \fI5\fR
  438. .RE
  439. .PP
  440. \fB\-\-metalink\-language\fR=LANGUAGE
  441. .RS 4
  442. The language of the file to download\&.
  443. .RE
  444. .PP
  445. \fB\-\-metalink\-location\fR=LOCATION[,\&...]
  446. .RS 4
  447. The location of the preferred server\&. A comma\-deliminated list of locations is acceptable, for example,
  448. \fIJP,US\fR\&.
  449. .RE
  450. .PP
  451. \fB\-\-metalink\-os\fR=OS
  452. .RS 4
  453. The operating system of the file to download\&.
  454. .RE
  455. .PP
  456. \fB\-\-metalink\-version\fR=VERSION
  457. .RS 4
  458. The version of the file to download\&.
  459. .RE
  460. .PP
  461. \fB\-\-metalink\-preferred\-protocol\fR=PROTO
  462. .RS 4
  463. Specify preferred protocol\&. The possible values are
  464. \fIhttp\fR,
  465. \fIhttps\fR,
  466. \fIftp\fR
  467. and
  468. \fInone\fR\&. Specifiy
  469. \fInone\fR
  470. to disable this feature\&. Default:
  471. \fInone\fR
  472. .RE
  473. .PP
  474. \fB\-\-metalink\-enable\-unique\-protocol\fR=\fItrue\fR|\fIfalse\fR
  475. .RS 4
  476. If
  477. \fItrue\fR
  478. is given and several protocols are available for a mirror in a metalink file, aria2 uses one of them\&. Use
  479. \fB\-\-metalink\-preferred\-protocol\fR
  480. option to specify the preference of protocol\&. Default:
  481. \fItrue\fR
  482. .RE
  483. .SS "Advanced Options"
  484. .PP
  485. \fB\-\-allow\-overwrite\fR=\fItrue\fR|\fIfalse\fR
  486. .RS 4
  487. If
  488. \fIfalse\fR
  489. 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
  490. \fB\-\-auto\-file\-renaming\fR=\fItrue\fR
  491. then, file name will be renamed\&. See
  492. \fB\-\-auto\-file\-renaming\fR
  493. for details\&. Default:
  494. \fIfalse\fR
  495. .RE
  496. .PP
  497. \fB\-\-allow\-piece\-length\-change\fR=\fItrue\fR|\fIfalse\fR
  498. .RS 4
  499. 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:
  500. \fIfalse\fR
  501. .RE
  502. .PP
  503. \fB\-\-async\-dns\fR[=\fItrue\fR|\fIfalse\fR]
  504. .RS 4
  505. Enable asynchronous DNS\&. Default:
  506. \fItrue\fR
  507. .RE
  508. .PP
  509. \fB\-\-auto\-file\-renaming\fR[=\fItrue\fR|\fIfalse\fR]
  510. .RS 4
  511. 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:
  512. \fItrue\fR
  513. .RE
  514. .PP
  515. \fB\-\-conf\-path\fR=PATH
  516. .RS 4
  517. Change the configuration file path to PATH\&. Default:
  518. \fI$HOME/\&.aria2/aria2\&.conf\fR
  519. .RE
  520. .PP
  521. \fB\-D\fR, \fB\-\-daemon\fR
  522. .RS 4
  523. Run as daemon\&.
  524. .RE
  525. .PP
  526. \fB\-\-enable\-direct\-io\fR[=\fItrue\fR|\fIfalse\fR]
  527. .RS 4
  528. Enable directI/O, which lowers cpu usage while allocating/checking files\&. Turn off if you encounter any error\&. Default:
  529. \fIfalse\fR
  530. .RE
  531. .PP
  532. \fB\-\-file\-allocation\fR=METHOD
  533. .RS 4
  534. Specify file allocation method\&. METHOD is either
  535. \fInone\fR
  536. or
  537. \fIprealloc\fR\&.
  538. \fInone\fR
  539. doesn\'t pre\-allocate file space\&.
  540. \fIprealloc\fR
  541. pre\-allocates file space before download begins\&. This may take some time depending on the size of the file\&. Default:
  542. \fIprealloc\fR
  543. .RE
  544. .PP
  545. \fB\-\-log\-level\fR=LEVEL
  546. .RS 4
  547. Set log level to output\&. LEVEL is either
  548. \fIdebug\fR,
  549. \fIinfo\fR,
  550. \fInotice\fR,
  551. \fIwarn\fR
  552. or
  553. \fIerror\fR\&. Default:
  554. \fIdebug\fR
  555. .RE
  556. .PP
  557. \fB\-\-summary\-interval\fR=SEC
  558. .RS 4
  559. Set interval in seconds to output download progress summary\&. Setting
  560. \fI0\fR
  561. suppresses the output\&. Default:
  562. \fI60\fR
  563. .RE
  564. .sp
  565. .it 1 an-trap
  566. .nr an-no-space-flag 1
  567. .nr an-break-flag 1
  568. .br
  569. Note
  570. In multi file torrent, the files adjacent forward to the specified files are also allocated if they share a same piece\&.
  571. .PP
  572. \fB\-Z\fR, \fB\-\-force\-sequential\fR[=\fItrue\fR|\fIfalse\fR]
  573. .RS 4
  574. Fetch URIs in the command\-line sequentially and download each URI in a separate session, like the usual command\-line download utilities\&. Default:
  575. \fIfalse\fR
  576. .RE
  577. .PP
  578. \fB\-\-max\-download\-limit\fR=SPEED
  579. .RS 4
  580. Set max download speed in bytes per sec\&.
  581. \fI0\fR
  582. means unrestricted\&. You can append
  583. \fIK\fR
  584. or
  585. \fIM\fR(1K = 1024, 1M = 1024K)\&. Default:
  586. \fI0\fR
  587. .RE
  588. .PP
  589. \fB\-\-no\-conf\fR
  590. .RS 4
  591. Disable loading aria2\&.conf file\&.
  592. .RE
  593. .PP
  594. \fB\-\-no\-file\-allocation\-limit\fR=SIZE
  595. .RS 4
  596. No file allocation is made for files whose size is smaller than SIZE\&. You can append
  597. \fIK\fR
  598. or
  599. \fIM\fR(1K = 1024, 1M = 1024K)\&. Default:
  600. \fI5M\fR
  601. .RE
  602. .PP
  603. \fB\-P\fR, \fB\-\-parameterized\-uri\fR[=\fItrue\fR|\fIfalse\fR]
  604. .RS 4
  605. Enable parameterized URI support\&. You can specify set of parts:
  606. \fIhttp://{sv1,sv2,sv3}/foo\&.iso\fR\&. Also you can specify numeric sequences with step counter:
  607. \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:
  608. \fIfalse\fR
  609. .RE
  610. .PP
  611. \fB\-q\fR, \fB\-\-quiet\fR[=\fItrue\fR|\fIfalse\fR]
  612. .RS 4
  613. Make aria2 quite (no console output)\&. Default:
  614. \fIfalse\fR
  615. .RE
  616. .PP
  617. \fB\-\-realtime\-chunk\-checksum\fR=\fItrue\fR|\fIfalse\fR
  618. .RS 4
  619. Validate chunk of data by calculating checkusm while download a file if chunk checksums are provided\&. Currently Metalink is the only way to to provide chunk checksums\&. Default:
  620. \fItrue\fR
  621. .RE
  622. .PP
  623. \fB\-\-stop\fR=SEC
  624. .RS 4
  625. Stop application after SEC seconds has passed\&. If
  626. \fI0\fR
  627. is given, this feature is disabled\&. Default:
  628. \fI0\fR
  629. .RE
  630. .PP
  631. \fB\-v\fR, \fB\-\-version\fR
  632. .RS 4
  633. Print the version number, copyright and the configuration information and exit\&.
  634. .RE
  635. .SS "URL, TORRENT_FILE, METALINK_FILE"
  636. 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\&.
  637. .sp
  638. You can also specify arbitrary number of torrent files and metalink files stored in a local drive\&. Please note that they are always treated as a separate download\&.
  639. .sp
  640. You can specify both torrent file with \-T option and URLs\&. By doing this, 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\&.
  641. .sp
  642. .sp
  643. .it 1 an-trap
  644. .nr an-no-space-flag 1
  645. .nr an-break-flag 1
  646. .br
  647. Note
  648. Make sure that URL is quoted with single(\') or double(") quotation if it contains "&" or any characters that have special meaning in shell\&.
  649. .sp
  650. .SH "EXAMPLES"
  651. .SS "HTTP/FTP Segmented Download"
  652. .sp
  653. .it 1 an-trap
  654. .nr an-no-space-flag 1
  655. .nr an-break-flag 1
  656. .br
  657. Download a file
  658. .RS
  659. .sp
  660. .RS 4
  661. .nf
  662. aria2c http://host/file\&.zip
  663. .fi
  664. .RE
  665. .sp
  666. .it 1 an-trap
  667. .nr an-no-space-flag 1
  668. .nr an-break-flag 1
  669. .br
  670. Note
  671. aria2 uses 5 connections to download 1 file by default\&.
  672. .sp
  673. .RE
  674. .sp
  675. .it 1 an-trap
  676. .nr an-no-space-flag 1
  677. .nr an-break-flag 1
  678. .br
  679. Download a file using 1 connection
  680. .RS
  681. .sp
  682. .RS 4
  683. .nf
  684. aria2c \-s1 http://host/file\&.zip
  685. .fi
  686. .RE
  687. .sp
  688. .it 1 an-trap
  689. .nr an-no-space-flag 1
  690. .nr an-break-flag 1
  691. .br
  692. Note
  693. aria2 uses 5 connections to download 1 file by default\&. \-s1 limtis the number of connections to just 1\&.
  694. .sp
  695. .sp
  696. .it 1 an-trap
  697. .nr an-no-space-flag 1
  698. .nr an-break-flag 1
  699. .br
  700. Note
  701. To pause a download, press Ctrl\-C\&. You can resume the transfer by running aria2c with the same argument at the same directory\&. You can change URLs as long as they are pointing to the same file\&.
  702. .sp
  703. .RE
  704. .sp
  705. .it 1 an-trap
  706. .nr an-no-space-flag 1
  707. .nr an-break-flag 1
  708. .br
  709. Download a file from 2 different HTTP servers
  710. .RS
  711. .sp
  712. .RS 4
  713. .nf
  714. aria2c http://host/file\&.zip http://mirror/file\&.zip
  715. .fi
  716. .RE
  717. .RE
  718. .sp
  719. .it 1 an-trap
  720. .nr an-no-space-flag 1
  721. .nr an-break-flag 1
  722. .br
  723. Download a file from HTTP and FTP servers
  724. .RS
  725. .sp
  726. .RS 4
  727. .nf
  728. aria2c http://host1/file\&.zip ftp://host2/file\&.zip
  729. .fi
  730. .RE
  731. .RE
  732. .sp
  733. .it 1 an-trap
  734. .nr an-no-space-flag 1
  735. .nr an-break-flag 1
  736. .br
  737. Download files listed in a file concurrently
  738. .RS
  739. .sp
  740. .RS 4
  741. .nf
  742. aria2c \-ifiles\&.txt \-j2
  743. .fi
  744. .RE
  745. .sp
  746. .it 1 an-trap
  747. .nr an-no-space-flag 1
  748. .nr an-break-flag 1
  749. .br
  750. Note
  751. \-j option specifies the number of parallel downloads\&.
  752. .sp
  753. .RE
  754. .SS "Metalink Download"
  755. .sp
  756. .it 1 an-trap
  757. .nr an-no-space-flag 1
  758. .nr an-break-flag 1
  759. .br
  760. Download files with remote Metalink
  761. .RS
  762. .sp
  763. .RS 4
  764. .nf
  765. aria2c \-\-follow\-metalink=mem http://host/file\&.metalink
  766. .fi
  767. .RE
  768. .RE
  769. .sp
  770. .it 1 an-trap
  771. .nr an-no-space-flag 1
  772. .nr an-break-flag 1
  773. .br
  774. Download using a local metalink file
  775. .RS
  776. .sp
  777. .RS 4
  778. .nf
  779. aria2c \-p \-\-lowest\-speed\-limit=4000 file\&.metalink
  780. .fi
  781. .RE
  782. .sp
  783. .it 1 an-trap
  784. .nr an-no-space-flag 1
  785. .nr an-break-flag 1
  786. .br
  787. Note
  788. To pause a download, press Ctrl\-C\&. You can resume the transfer by running aria2c with the same argument at the same directory\&.
  789. .sp
  790. .RE
  791. .sp
  792. .it 1 an-trap
  793. .nr an-no-space-flag 1
  794. .nr an-break-flag 1
  795. .br
  796. Download several local metalink files
  797. .RS
  798. .sp
  799. .RS 4
  800. .nf
  801. aria2c \-j2 file1\&.metalink file2\&.metalink
  802. .fi
  803. .RE
  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. Download only selected files using index
  811. .RS
  812. .sp
  813. .RS 4
  814. .nf
  815. aria2c \-\-select\-file=1\-4,8 file\&.metalink
  816. .fi
  817. .RE
  818. .sp
  819. .it 1 an-trap
  820. .nr an-no-space-flag 1
  821. .nr an-break-flag 1
  822. .br
  823. Note
  824. The index is printed to the console using \-S option\&.
  825. .sp
  826. .RE
  827. .sp
  828. .it 1 an-trap
  829. .nr an-no-space-flag 1
  830. .nr an-break-flag 1
  831. .br
  832. Download a file using a local .metalink file with user preference
  833. .RS
  834. .sp
  835. .RS 4
  836. .nf
  837. aria2c \-\-metalink\-location=JP,US \-\-metalink\-version=1\&.1 \-\-metalink\-language=en\-US file\&.metalink
  838. .fi
  839. .RE
  840. .RE
  841. .SS "BitTorrent Download"
  842. .sp
  843. .it 1 an-trap
  844. .nr an-no-space-flag 1
  845. .nr an-break-flag 1
  846. .br
  847. Download files from remote BitTorrent file
  848. .RS
  849. .sp
  850. .RS 4
  851. .nf
  852. aria2c \-\-follow\-bittorrent=mem http://host/file\&.torrent
  853. .fi
  854. .RE
  855. .RE
  856. .sp
  857. .it 1 an-trap
  858. .nr an-no-space-flag 1
  859. .nr an-break-flag 1
  860. .br
  861. Download using a local torrent file
  862. .RS
  863. .sp
  864. .RS 4
  865. .nf
  866. aria2c \-\-max\-upload\-limit=40K file\&.torrent
  867. .fi
  868. .RE
  869. .sp
  870. .it 1 an-trap
  871. .nr an-no-space-flag 1
  872. .nr an-break-flag 1
  873. .br
  874. Note
  875. \-\-max\-upload\-limit specifies the max of upload rate\&.
  876. .sp
  877. .sp
  878. .it 1 an-trap
  879. .nr an-no-space-flag 1
  880. .nr an-break-flag 1
  881. .br
  882. Note
  883. To pause a download, press Ctrl\-C\&. You can resume the transfer by run aria2c with the same argument at the same directory\&.
  884. .sp
  885. .RE
  886. .sp
  887. .it 1 an-trap
  888. .nr an-no-space-flag 1
  889. .nr an-break-flag 1
  890. .br
  891. Download 2 torrents
  892. .RS
  893. .sp
  894. .RS 4
  895. .nf
  896. aria2c \-j2 file1\&.torrent file2\&.torrent
  897. .fi
  898. .RE
  899. .RE
  900. .sp
  901. .it 1 an-trap
  902. .nr an-no-space-flag 1
  903. .nr an-break-flag 1
  904. .br
  905. Download a file using torrent and HTTP/FTP server
  906. .RS
  907. .sp
  908. .RS 4
  909. .nf
  910. aria2c \-Ttest\&.torrent http://host1/file ftp://host2/file
  911. .fi
  912. .RE
  913. .sp
  914. .it 1 an-trap
  915. .nr an-no-space-flag 1
  916. .nr an-break-flag 1
  917. .br
  918. Note
  919. Downloading multi file torrent with HTTP/FTP is not supported\&.
  920. .sp
  921. .RE
  922. .sp
  923. .it 1 an-trap
  924. .nr an-no-space-flag 1
  925. .nr an-break-flag 1
  926. .br
  927. Download only selected files using index(usually called "selectable download")
  928. .RS
  929. .sp
  930. .RS 4
  931. .nf
  932. aria2c \-\-select\-file=1\-4,8 file\&.torrent
  933. .fi
  934. .RE
  935. .sp
  936. .it 1 an-trap
  937. .nr an-no-space-flag 1
  938. .nr an-break-flag 1
  939. .br
  940. Note
  941. The index is printed to the console using \-S option\&.
  942. .sp
  943. .RE
  944. .sp
  945. .it 1 an-trap
  946. .nr an-no-space-flag 1
  947. .nr an-break-flag 1
  948. .br
  949. Change the listening port for incoming peer
  950. .RS
  951. .sp
  952. .RS 4
  953. .nf
  954. aria2c \-\-listen\-port=7000\-7001,8000 file\&.torrent
  955. .fi
  956. .RE
  957. .sp
  958. .it 1 an-trap
  959. .nr an-no-space-flag 1
  960. .nr an-break-flag 1
  961. .br
  962. Note
  963. Since aria2 doesn\'t configure firewall or router for port forwarding, it\'s up to you to do it manually\&.
  964. .sp
  965. .RE
  966. .sp
  967. .it 1 an-trap
  968. .nr an-no-space-flag 1
  969. .nr an-break-flag 1
  970. .br
  971. Specify the condition to stop program after torrent download finished
  972. .RS
  973. .sp
  974. .RS 4
  975. .nf
  976. aria2c \-\-seed\-time=120 \-\-seed\-ratio=1\&.0 file\&.torrent
  977. .fi
  978. .RE
  979. .sp
  980. .it 1 an-trap
  981. .nr an-no-space-flag 1
  982. .nr an-break-flag 1
  983. .br
  984. Note
  985. In the above example, the program exists when the 120 minutes has elapsed since download completed or seed ratio reaches 1\&.0\&.
  986. .sp
  987. .RE
  988. .sp
  989. .it 1 an-trap
  990. .nr an-no-space-flag 1
  991. .nr an-break-flag 1
  992. .br
  993. Throttle upload speed
  994. .RS
  995. .sp
  996. .RS 4
  997. .nf
  998. aria2c \-\-max\-upload\-limit=100K file\&.torrent
  999. .fi
  1000. .RE
  1001. .RE
  1002. .sp
  1003. .it 1 an-trap
  1004. .nr an-no-space-flag 1
  1005. .nr an-break-flag 1
  1006. .br
  1007. Enable DHT
  1008. .RS
  1009. .sp
  1010. .RS 4
  1011. .nf
  1012. aria2c \-\-enable\-dht \-\-dht\-listen\-port=6881 file\&.torrent
  1013. .fi
  1014. .RE
  1015. .sp
  1016. .it 1 an-trap
  1017. .nr an-no-space-flag 1
  1018. .nr an-break-flag 1
  1019. .br
  1020. Note
  1021. DHT uses udp port\&. Since aria2 doesn\'t configure firewall or router for port forwarding, it\'s up to you to do it manually\&.
  1022. .sp
  1023. .RE
  1024. .SS "More advanced HTTP features"
  1025. .sp
  1026. .it 1 an-trap
  1027. .nr an-no-space-flag 1
  1028. .nr an-break-flag 1
  1029. .br
  1030. Load cookies
  1031. .RS
  1032. .sp
  1033. .RS 4
  1034. .nf
  1035. aria2c \-\-load\-cookies=cookies\&.txt http://host/file\&.zip
  1036. .fi
  1037. .RE
  1038. .sp
  1039. .it 1 an-trap
  1040. .nr an-no-space-flag 1
  1041. .nr an-break-flag 1
  1042. .br
  1043. Note
  1044. You can use Firefox/Mozilla\'s cookie file without modification\&.
  1045. .sp
  1046. .RE
  1047. .sp
  1048. .it 1 an-trap
  1049. .nr an-no-space-flag 1
  1050. .nr an-break-flag 1
  1051. .br
  1052. Resume download started by web browsers or another programs
  1053. .RS
  1054. .sp
  1055. .RS 4
  1056. .nf
  1057. aria2c \-c \-s2 http://host/partiallydownloadedfile\&.zip
  1058. .fi
  1059. .RE
  1060. .RE
  1061. .SS "And more advanced features"
  1062. .sp
  1063. .it 1 an-trap
  1064. .nr an-no-space-flag 1
  1065. .nr an-break-flag 1
  1066. .br
  1067. Throttle download speed
  1068. .RS
  1069. .sp
  1070. .RS 4
  1071. .nf
  1072. aria2c \-\-max\-download\-limit=100K file\&.metalink
  1073. .fi
  1074. .RE
  1075. .RE
  1076. .sp
  1077. .it 1 an-trap
  1078. .nr an-no-space-flag 1
  1079. .nr an-break-flag 1
  1080. .br
  1081. Repair a damaged download using --check-integrity option
  1082. .RS
  1083. .sp
  1084. .RS 4
  1085. .nf
  1086. aria2c \-\-check\-integrity=true file\&.metalink
  1087. .fi
  1088. .RE
  1089. .sp
  1090. .it 1 an-trap
  1091. .nr an-no-space-flag 1
  1092. .nr an-break-flag 1
  1093. .br
  1094. Note
  1095. This option is only available used with BitTorrent or metalink with chunk checksums\&.
  1096. .sp
  1097. .RE
  1098. .sp
  1099. .it 1 an-trap
  1100. .nr an-no-space-flag 1
  1101. .nr an-break-flag 1
  1102. .br
  1103. Drop connection if download speed is lower than specified value
  1104. .RS
  1105. .sp
  1106. .RS 4
  1107. .nf
  1108. aria2c \-\-lowest\-speed\-limit=10K file\&.metalink
  1109. .fi
  1110. .RE
  1111. .RE
  1112. .sp
  1113. .it 1 an-trap
  1114. .nr an-no-space-flag 1
  1115. .nr an-break-flag 1
  1116. .br
  1117. Parameterized URI support
  1118. .RS
  1119. You can specify set of parts:
  1120. .sp
  1121. .sp
  1122. .RS 4
  1123. .nf
  1124. aria2c \-P http://{host1,host2,host3}/file\&.iso
  1125. .fi
  1126. .RE
  1127. You can specify numeric sequence:
  1128. .sp
  1129. .sp
  1130. .RS 4
  1131. .nf
  1132. aria2c \-Z \-P http://host/image[000\-100]\&.png
  1133. .fi
  1134. .RE
  1135. .sp
  1136. .it 1 an-trap
  1137. .nr an-no-space-flag 1
  1138. .nr an-break-flag 1
  1139. .br
  1140. Note
  1141. \-Z option is required if the all URIs don\'t point to the same file, such as the above example\&.
  1142. .sp
  1143. You can specify step counter:
  1144. .sp
  1145. .sp
  1146. .RS 4
  1147. .nf
  1148. aria2c \-Z \-P http://host/image[A\-Z:2]\&.png
  1149. .fi
  1150. .RE
  1151. .RE
  1152. .sp
  1153. .it 1 an-trap
  1154. .nr an-no-space-flag 1
  1155. .nr an-break-flag 1
  1156. .br
  1157. Parallel downloads of arbitrary number of URL,metalink,torrent
  1158. .RS
  1159. .sp
  1160. .RS 4
  1161. .nf
  1162. aria2c \-j3 \-Z http://host/file1 file2\&.torrent file3\&.metalink
  1163. .fi
  1164. .RE
  1165. .RE
  1166. .sp
  1167. .it 1 an-trap
  1168. .nr an-no-space-flag 1
  1169. .nr an-break-flag 1
  1170. .br
  1171. BitTorrent Encryption
  1172. .RS
  1173. Encrypt whole payload using ARC4:
  1174. .sp
  1175. .sp
  1176. .RS 4
  1177. .nf
  1178. aria2c \-\-bt\-min\-crypto\-level=arc4 \-\-bt\-require\-crypto=true file\&.torrent
  1179. .fi
  1180. .RE
  1181. .RE
  1182. .SH "RESUME DOWNLOAD"
  1183. Usually, you can resume transfer by just issuing same command(aria2c URL) if the previous transfer is made by aria2\&.
  1184. .sp
  1185. If the previous transfer is made by a browser or wget like sequencial download manager, then use \-c option to continue the transfer(aria2c \-c URL)\&.
  1186. .sp
  1187. .SH "CONTROL FILE"
  1188. aria2 uses a control file to keep track the progress of download\&. A control file is placed at the same directory of the dowloading 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\&.)
  1189. .sp
  1190. 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\&.
  1191. .sp
  1192. 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 \-\-check\-integrity=true option to aria2c in command\-line\&.
  1193. .sp
  1194. .SH "SEEDING DOWNLOADED FILE IN BITTORRENT"
  1195. You can seed downloaded file using \-\-check\-integrity=true option\&.
  1196. .sp
  1197. .sp
  1198. .RS 4
  1199. .nf
  1200. aria2c \-\-check\-integrity=true file\&.torrent
  1201. .fi
  1202. .RE
  1203. .SH "FILES"
  1204. .SS "aria2\&.conf"
  1205. User configuration file\&. It must be placed under $HOME/\&.aria2 and must be named as aria2\&.conf\&. In each line, there is 1 parameter whose syntax is name=value pair, where name is the long command\-line option name without \fI\-\-\fR prefix\&. The lines beginning \fI#\fR are treated as comments\&.
  1206. .sp
  1207. .sp
  1208. .RS 4
  1209. .nf
  1210. # sample configuration file for aria2c
  1211. listen\-port=60000
  1212. dht\-listen\-port=60000
  1213. seed\-ratio=1\&.0
  1214. max\-upload\-limit=50K
  1215. ftp\-pasv=true
  1216. .fi
  1217. .RE
  1218. .SS "dht\&.dat"
  1219. The routing table of DHT is saved to the path $HOME/\&.aria2/dht\&.dat\&.
  1220. .sp
  1221. .SH "RESOURCES"
  1222. Project web site: http://aria2\&.sourceforge\&.net/
  1223. .sp
  1224. metalink: http://www\&.metalinker\&.org/
  1225. .sp
  1226. .SH "REPORTING BUGS"
  1227. Report bugs to Tatsuhiro Tsujikawa <t\-tujikawa@users\&.sourceforge\&.net>
  1228. .sp
  1229. .SH "AUTHOR"
  1230. Tatsuhiro Tsujikawa <t\-tujikawa@users\&.sourceforge\&.net>
  1231. .sp
  1232. .SH "COPYRIGHT"
  1233. Copyright \(co 2006, 2008 Tatsuhiro Tsujikawa
  1234. .sp
  1235. 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\&.
  1236. .sp
  1237. 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\&.
  1238. .sp
  1239. 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
  1240. .sp
  1241. 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\&.
  1242. .sp