aria2c.1 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900
  1. .\" Title: aria2c
  2. .\" Author:
  3. .\" Generator: DocBook XSL Stylesheets v1.73.1 <http://docbook.sf.net/>
  4. .\" Date: 11/23/2007
  5. .\" Manual:
  6. .\" Source:
  7. .\"
  8. .TH "ARIA2C" "1" "11/23/2007" "" ""
  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. \fIaria2c\fR [OPTIONS] URL \&...
  17. .sp
  18. \fIaria2c\fR [OPTIONS] \-T TORRENT_FILE [URL \&...]
  19. .sp
  20. \fIaria2c\fR [OPTIONS] \-M METALINK_FILE
  21. .sp
  22. .SH "DESCRIPTION"
  23. aria2 is a utility for downloading files\. The supporting protocols are http(s)/ftp/BitTorrent/Metalink\. aria2 has powerful segmented downloading ability, downloading a file from multiple sources and multiple protocols, utilizing your download bandwidth to the max\. It even supports downloading a file from http(s)/ftp and BitTorrent at the same time, while the data downloaded form http(s)/ftp is uploaded to BitTorrent swarm\.
  24. .sp
  25. aria2 also provides most reliable http(s)/ftp downloading experience ever\. Using Metalink\'s chunk checksums, aria2 automatically validates chunk of data while downloading like BitTorrent\.
  26. .sp
  27. .SH "OPTIONS"
  28. .PP
  29. \-d, \-\-dir=DIR
  30. .RS 4
  31. The directory to store the downloaded file\.
  32. .RE
  33. .PP
  34. \-o, \-\-out=FILE
  35. .RS 4
  36. The file name of the downloaded file\.
  37. .RE
  38. .PP
  39. \-l, \-\-log=LOG
  40. .RS 4
  41. The file name of the log file\. If
  42. \fI\-\fR
  43. is specified, log is written to stdout\.
  44. .RE
  45. .PP
  46. \-D, \-\-daemon
  47. .RS 4
  48. Run as daemon\.
  49. .RE
  50. .PP
  51. \-s, \-\-split=N
  52. .RS 4
  53. Download a file using N connections\. N must be between
  54. \fI1\fR
  55. and
  56. \fI5\fR\. This option affects all URLs\. Thus, aria2 connects to each URL with N connections\. Default:
  57. \fI1\fR
  58. .RE
  59. .PP
  60. \-\-retry\-wait=SEC
  61. .RS 4
  62. Set the seconds to wait to retry after an error has occured\. Specify a value between
  63. \fI0\fR
  64. and
  65. \fI60\fR\. Default:
  66. \fI5\fR
  67. .RE
  68. .PP
  69. \-t, \-\-timeout=SEC
  70. .RS 4
  71. Set timeout in seconds\. Default:
  72. \fI60\fR
  73. .RE
  74. .PP
  75. \-m, \-\-max\-tries=N
  76. .RS 4
  77. Set number of tries\.
  78. \fI0\fR
  79. means unlimited\. Default:
  80. \fI5\fR
  81. .RE
  82. .PP
  83. \-\-http\-proxy=HOST:PORT
  84. .RS 4
  85. Use HTTP proxy server\. This affects all URLs\.
  86. .RE
  87. .PP
  88. \-\-http\-user=USER
  89. .RS 4
  90. Set HTTP user\. This affects all URLs\.
  91. .RE
  92. .PP
  93. \-\-http\-passwd=PASSWD
  94. .RS 4
  95. Set HTTP password\. This affects all URLs\.
  96. .RE
  97. .PP
  98. \-\-http\-proxy\-user=USER
  99. .RS 4
  100. Set HTTP proxy user\. This affects all URLs\.
  101. .RE
  102. .PP
  103. \-\-http\-proxy\-passwd=PASSWD
  104. .RS 4
  105. Set HTTP proxy password\. This affects all URLs\.
  106. .RE
  107. .PP
  108. \-\-http\-proxy\-method=METHOD
  109. .RS 4
  110. Set the method to use in proxy request\.
  111. \fIMETHOD\fR
  112. is either
  113. \fIget\fR
  114. or
  115. \fItunnel\fR\. Default:
  116. \fItunnel\fR
  117. .RE
  118. .PP
  119. \-\-http\-auth\-scheme=SCHEME
  120. .RS 4
  121. Set HTTP authentication scheme\. Currently,
  122. \fIbasic\fR
  123. is the only supported scheme\. Default:
  124. \fIbasic\fR
  125. .RE
  126. .PP
  127. \-\-referer=REFERER
  128. .RS 4
  129. Set Referer\. This affects all URLs\.
  130. .RE
  131. .PP
  132. \-\-ftp\-user=USER
  133. .RS 4
  134. Set FTP user\. This affects all URLs\. Default:
  135. \fIanonymous\fR
  136. .RE
  137. .PP
  138. \-\-ftp\-passwd=PASSWD
  139. .RS 4
  140. Set FTP password\. This affects all URLs\. Default:
  141. \fIARIA2USER@\fR
  142. .RE
  143. .PP
  144. \-\-ftp\-type=TYPE
  145. .RS 4
  146. Set FTP transfer type\. TYPE is either
  147. \fIbinary\fR
  148. or
  149. \fIascii\fR\. Default:
  150. \fIbinary\fR
  151. .RE
  152. .PP
  153. \-p, \-\-ftp\-pasv
  154. .RS 4
  155. Use passive mode in FTP\.
  156. .RE
  157. .PP
  158. \-\-ftp\-via\-http\-proxy=METHOD
  159. .RS 4
  160. Use HTTP proxy in
  161. \fIFTP\fR\.
  162. \fIMETHOD\fR
  163. is either
  164. \fIget\fR
  165. or
  166. \fItunnel\fR\. Default:
  167. \fItunnel\fR
  168. .RE
  169. .PP
  170. \-\-lowest\-speed\-limit=SPEED
  171. .RS 4
  172. Close connection if download speed is lower than or equal to this value(bytes per sec)\.
  173. \fI0\fR
  174. means aria2 does not have a lowest speed limit\. You can append
  175. \fIK\fR
  176. or
  177. \fIM\fR(1K = 1024, 1M = 1024K)\. This option does not affect BitTorrent downloads\. Default:
  178. \fI0\fR
  179. .RE
  180. .PP
  181. \-\-max\-download\-limit=SPEED
  182. .RS 4
  183. Set max download speed in bytes per sec\.
  184. \fI0\fR
  185. means unrestricted\. You can append
  186. \fIK\fR
  187. or
  188. \fIM\fR(1K = 1024, 1M = 1024K)\. Default:
  189. \fI0\fR
  190. .RE
  191. .PP
  192. \-\-file\-allocation=METHOD
  193. .RS 4
  194. Specify file allocation method\. METHOD is either
  195. \fInone\fR
  196. or
  197. \fIprealloc\fR\.
  198. \fInone\fR
  199. doesn\'t pre\-allocate file space\.
  200. \fIprealloc\fR
  201. pre\-allocates file space before download begins\. This may take some time depending on the size of the file\. Default:
  202. \fIprealloc\fR
  203. .PP
  204. Note
  205. .RS 4
  206. In multi file torrent, the files adjacent forward to the specified files are also allocated if they share a same piece\.
  207. .RE
  208. .RE
  209. .PP
  210. \-\-no\-file\-allocation\-limit=SIZE
  211. .RS 4
  212. No file allocation is made for files whose size is smaller than SIZE\. You can append
  213. \fIK\fR
  214. or
  215. \fIM\fR(1K = 1024, 1M = 1024K)\. Default:
  216. \fI5M\fR
  217. .RE
  218. .PP
  219. \-\-allow\-overwrite=\fItrue\fR|\fIfalse\fR
  220. .RS 4
  221. If
  222. \fIfalse\fR
  223. 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 \-\-auto\-file\-renaming=\fItrue\fR
  224. then, file name will be renamed\. See \-\-auto\-file\-renaming for details\. Default:
  225. \fIfalse\fR
  226. .RE
  227. .PP
  228. \-Z, \-\-force\-sequential[=\fItrue\fR|\fIfalse\fR]
  229. .RS 4
  230. Fetch URIs in the command\-line sequentially and download each URI in a separate session, like the usual command\-line download utilities\. Default:
  231. \fIfalse\fR
  232. .RE
  233. .PP
  234. \-\-auto\-file\-renaming[=\fItrue\fR|\fIfalse\fR]
  235. .RS 4
  236. 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:
  237. \fItrue\fR
  238. .RE
  239. .PP
  240. \-P, \-\-parameterized\-uri[=\fItrue\fR|\fIfalse\fR]
  241. .RS 4
  242. Enable parameterized URI support\. You can specify set of parts:
  243. \fI\ehttp://{sv1,sv2,sv3}/foo\.iso\fR\. Also you can specify numeric sequences with step counter:
  244. \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:
  245. \fIfalse\fR
  246. .RE
  247. .PP
  248. \-\-enable\-http\-keep\-alive[=\fItrue\fR|\fIfalse\fR]
  249. .RS 4
  250. Enable HTTP/1\.1 persistent connection\. Default:
  251. \fIfalse\fR
  252. .RE
  253. .PP
  254. \-\-enable\-http\-pipelining[=\fItrue\fR|\fIfalse\fR]
  255. .RS 4
  256. Enable HTTP/1\.1 pipelining\. Default:
  257. \fIfalse\fR
  258. .RE
  259. .PP
  260. \-\-check\-integrity=\fItrue\fR|\fIfalse\fR
  261. .RS 4
  262. 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:
  263. \fIfalse\fR
  264. .RE
  265. .PP
  266. \-\-realtime\-chunk\-checksum=\fItrue\fR|\fIfalse\fR
  267. .RS 4
  268. 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:
  269. \fItrue\fR
  270. .RE
  271. .PP
  272. \-c, \-\-continue
  273. .RS 4
  274. 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\.
  275. .RE
  276. .PP
  277. \-U, \-\-user\-agent=USER_AGENT
  278. .RS 4
  279. Set user agent for http(s) downloads\.
  280. .RE
  281. .PP
  282. \-n, \-\-no\-netrc
  283. .RS 4
  284. Disables netrc support\. netrc support is enabled by default\.
  285. .RE
  286. .PP
  287. \-i, \-\-input\-file=FILE
  288. .RS 4
  289. 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
  290. \fI\-\fR
  291. is specified\.
  292. .RE
  293. .PP
  294. \-j, \-\-max\-concurrent\-downloads=N
  295. .RS 4
  296. Set maximum number of concurrent downloads\. It should be used with the \-i option\. Default:
  297. \fI5\fR
  298. .RE
  299. .PP
  300. \-\-load\-cookies=FILE
  301. .RS 4
  302. Load cookies from FILE\. The format of FILE is the same used by Netscape and Mozilla\.
  303. .RE
  304. .PP
  305. \-S, \-\-show\-files
  306. .RS 4
  307. Print file listing of \.torrent or \.metalink file and exit\. In case of \.torrent file, additional information (infohash, piece length, etc) is also printed\.
  308. .RE
  309. .PP
  310. \-\-select\-file=INDEX\&...
  311. .RS 4
  312. Set file to download by specifing its index\. You can find the file index using the \-\-show\-files option\. Multiple indexes can be specified by using ",", for example:
  313. \fI3,6\fR\. You can also use "\-" to specify a range:
  314. \fI1\-5\fR\. "," and "\-" can be used together:
  315. \fI1\-5,8,9\fR\. When used with the \-M option, index may vary depending on the query (see \-\-metalink\-* options)\.
  316. .PP
  317. Note
  318. .RS 4
  319. 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\.
  320. .RE
  321. .RE
  322. .PP
  323. \-T, \-\-torrent\-file=TORRENT_FILE
  324. .RS 4
  325. The path to the \.torrent file\.
  326. .RE
  327. .PP
  328. \-\-follow\-torrent=\fItrue\fR|\fIfalse\fR
  329. .RS 4
  330. Set to
  331. \fIfalse\fR
  332. to prevent aria2 from entering BitTorrent mode even if the filename of the downloaded file ends with \.torrent\. Default:
  333. \fItrue\fR
  334. .RE
  335. .PP
  336. \-\-direct\-file\-mapping=\fItrue\fR|\fIfalse\fR
  337. .RS 4
  338. 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:
  339. \fItrue\fR
  340. .RE
  341. .PP
  342. \-\-listen\-port=PORT\&...
  343. .RS 4
  344. Set TCP port number for BitTorrent downloads\. Multiple ports can be specified by using ",", for example:
  345. \fI6881,6885\fR\. You can also use "\-" to specify a range:
  346. \fI6881\-6999\fR\. "," and "\-" can be used together:
  347. \fI6881\-6889,6999\fR\. Default:
  348. \fI6881\-6999\fR
  349. .RE
  350. .PP
  351. \-\-max\-upload\-limit=SPEED
  352. .RS 4
  353. Set max upload speed in bytes per sec\.
  354. \fI0\fR
  355. means unrestricted\. You can append
  356. \fIK\fR
  357. or
  358. \fIM\fR(1K = 1024, 1M = 1024K)\. Default:
  359. \fI0\fR
  360. .RE
  361. .PP
  362. \-\-seed\-time=MINUTES
  363. .RS 4
  364. Specify seeding time in minutes\. Also see the \-\-seed\-ratio option\.
  365. .RE
  366. .PP
  367. \-\-seed\-ratio=RATIO
  368. .RS 4
  369. Specify share ratio\. Seed completed torrents until share ratio reaches] RATIO\. I strongly encourages you to specify equals or more than
  370. \fI1\.0\fR
  371. here\. Specify
  372. \fI0\.0\fR
  373. if you intend to do seeding regardless of share ratio\. If \-\-seed\-time option is specified along with this option, seeding ends when at least one of the conditions is satisfied\. Default:
  374. \fI1\.0\fR
  375. .RE
  376. .PP
  377. \-\-peer\-id\-prefix=PEERI_ID_PREFIX
  378. .RS 4
  379. 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:
  380. \fI\-aria2\-\fR
  381. .RE
  382. .PP
  383. \-M, \-\-metalink\-file=METALINK_FILE
  384. .RS 4
  385. The file path to \.metalink file\.
  386. .RE
  387. .PP
  388. \-C, \-\-metalink\-servers=NUM_SERVERS
  389. .RS 4
  390. The number of servers to connect to simultaneously\. Some metalinks regulates the number of servers to connect\. aria2 respects them\. Default:
  391. \fI5\fR
  392. .RE
  393. .PP
  394. \-\-metalink\-version=VERSION
  395. .RS 4
  396. The version of the file to download\.
  397. .RE
  398. .PP
  399. \-\-metalink\-language=LANGUAGE
  400. .RS 4
  401. The language of the file to download\.
  402. .RE
  403. .PP
  404. \-\-metalink\-os=OS
  405. .RS 4
  406. The operating system of the file to download\.
  407. .RE
  408. .PP
  409. \-\-metalink\-location=LOCATION[,\&...]
  410. .RS 4
  411. The location of the preferred server\. A comma\-deliminated list of locations is acceptable, for example,
  412. \fIJP,US\fR\.
  413. .RE
  414. .PP
  415. \-\-follow\-metalink=\fItrue\fR|\fIfalse\fR
  416. .RS 4
  417. Set to false to prevent aria2 from entering Metalink mode even if the filename of the downloaded file ends with \.metalink\. Default:
  418. \fItrue\fR
  419. .RE
  420. .PP
  421. \-v, \-\-version
  422. .RS 4
  423. Print the version number, copyright and the configuration information and exit\.
  424. .RE
  425. .PP
  426. \-h, \-\-help
  427. .RS 4
  428. Print this message and exit\.
  429. .RE
  430. .PP
  431. URL
  432. .RS 4
  433. You can specify multiple URLs\. Unless you specify \-Z option, all URLs must point to the same file or downloading will fail\. 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\.
  434. .RE
  435. .SH "EXAMPLES"
  436. .SS "HTTP/FTP Segmented Download"
  437. .sp
  438. .it 1 an-trap
  439. .nr an-no-space-flag 1
  440. .nr an-break-flag 1
  441. .br
  442. Download a file using 1 connection
  443. .RS
  444. .sp
  445. .RS 4
  446. .nf
  447. aria2c http://host/file\.zip
  448. .fi
  449. .RE
  450. .sp
  451. .it 1 an-trap
  452. .nr an-no-space-flag 1
  453. .nr an-break-flag 1
  454. .br
  455. Note
  456. To pause a download, press Ctrl\-C\. You can resume the transfer by run aria2c with the same argument at the same directory\. You can change URLs as long as they are pointing to the same file\.
  457. .sp
  458. .RE
  459. .sp
  460. .it 1 an-trap
  461. .nr an-no-space-flag 1
  462. .nr an-break-flag 1
  463. .br
  464. Download a file using 2 connections
  465. .RS
  466. .sp
  467. .RS 4
  468. .nf
  469. aria2c \-s 2 http://host/file\.zip
  470. .fi
  471. .RE
  472. .RE
  473. .sp
  474. .it 1 an-trap
  475. .nr an-no-space-flag 1
  476. .nr an-break-flag 1
  477. .br
  478. Download a file from 2 difference http servers
  479. .RS
  480. .sp
  481. .RS 4
  482. .nf
  483. aria2c http://host1/file\.zip ftp://host2/file\.zip
  484. .fi
  485. .RE
  486. .RE
  487. .sp
  488. .it 1 an-trap
  489. .nr an-no-space-flag 1
  490. .nr an-break-flag 1
  491. .br
  492. Download a file from http and ftp servers
  493. .RS
  494. .sp
  495. .RS 4
  496. .nf
  497. aria2c http://host1/file\.zip ftp://host2/file\.zip
  498. .fi
  499. .RE
  500. .RE
  501. .sp
  502. .it 1 an-trap
  503. .nr an-no-space-flag 1
  504. .nr an-break-flag 1
  505. .br
  506. Download files listed in a file concurrently
  507. .RS
  508. .sp
  509. .RS 4
  510. .nf
  511. aria2c \-i files\.txt \-j 5
  512. .fi
  513. .RE
  514. .sp
  515. .it 1 an-trap
  516. .nr an-no-space-flag 1
  517. .nr an-break-flag 1
  518. .br
  519. Note
  520. \-j option specifies the number of concurrent downloads\.
  521. .sp
  522. .RE
  523. .SS "Metalink Download"
  524. .sp
  525. .it 1 an-trap
  526. .nr an-no-space-flag 1
  527. .nr an-break-flag 1
  528. .br
  529. Download files with remote Metalink
  530. .RS
  531. .sp
  532. .RS 4
  533. .nf
  534. aria2c http://host/file\.metalink
  535. .fi
  536. .RE
  537. .RE
  538. .sp
  539. .it 1 an-trap
  540. .nr an-no-space-flag 1
  541. .nr an-break-flag 1
  542. .br
  543. Download using a local metalink file
  544. .RS
  545. .sp
  546. .RS 4
  547. .nf
  548. aria2c \-p \-t 10 \-\-lowest\-speed\-limit 4000 \-M test\.metalink
  549. .fi
  550. .RE
  551. .sp
  552. .it 1 an-trap
  553. .nr an-no-space-flag 1
  554. .nr an-break-flag 1
  555. .br
  556. Note
  557. To pause a download, press Ctrl\-C\. You can resume the transfer by run aria2c with the same argument at the same directory\.
  558. .sp
  559. .RE
  560. .sp
  561. .it 1 an-trap
  562. .nr an-no-space-flag 1
  563. .nr an-break-flag 1
  564. .br
  565. Download only selected files using index
  566. .RS
  567. .sp
  568. .RS 4
  569. .nf
  570. aria2c \-M test\.metalink \-\-select\-file 1\-4,8
  571. .fi
  572. .RE
  573. .sp
  574. .it 1 an-trap
  575. .nr an-no-space-flag 1
  576. .nr an-break-flag 1
  577. .br
  578. Note
  579. The index is printed to the console using \-S option\.
  580. .sp
  581. .RE
  582. .sp
  583. .it 1 an-trap
  584. .nr an-no-space-flag 1
  585. .nr an-break-flag 1
  586. .br
  587. Download a file using a local .metalink file with user preference
  588. .RS
  589. .sp
  590. .RS 4
  591. .nf
  592. aria2c \-M test\.metalink \-\-metalink\-location=JP,US \-\-metalink\-version=1\.1 \-\-metalink\-language=en\-US
  593. .fi
  594. .RE
  595. .RE
  596. .SS "BitTorrent Download"
  597. .sp
  598. .it 1 an-trap
  599. .nr an-no-space-flag 1
  600. .nr an-break-flag 1
  601. .br
  602. Download files from remote BitTorrent file
  603. .RS
  604. .sp
  605. .RS 4
  606. .nf
  607. aria2c \-o test\.torrent http://host/file\.torrent
  608. .fi
  609. .RE
  610. .RE
  611. .sp
  612. .it 1 an-trap
  613. .nr an-no-space-flag 1
  614. .nr an-break-flag 1
  615. .br
  616. Download using a local torrent file
  617. .RS
  618. .sp
  619. .RS 4
  620. .nf
  621. aria2c \-\-max\-upload\-limit 40K \-T file\.torrent
  622. .fi
  623. .RE
  624. .sp
  625. .it 1 an-trap
  626. .nr an-no-space-flag 1
  627. .nr an-break-flag 1
  628. .br
  629. Note
  630. \-\-max\-upload\-limit specifies the max of upload rate\.
  631. .sp
  632. .sp
  633. .it 1 an-trap
  634. .nr an-no-space-flag 1
  635. .nr an-break-flag 1
  636. .br
  637. Note
  638. To pause a download, press Ctrl\-C\. You can resume the transfer by run aria2c with the same argument at the same directory\.
  639. .sp
  640. .RE
  641. .sp
  642. .it 1 an-trap
  643. .nr an-no-space-flag 1
  644. .nr an-break-flag 1
  645. .br
  646. Download a file using torrent and http/ftp server
  647. .RS
  648. .sp
  649. .RS 4
  650. .nf
  651. aria2c \-T test\.torrent http://host1/file ftp://host2/file
  652. .fi
  653. .RE
  654. .sp
  655. .it 1 an-trap
  656. .nr an-no-space-flag 1
  657. .nr an-break-flag 1
  658. .br
  659. Note
  660. Downloading multi file torrent with http/ftp is not supported\.
  661. .sp
  662. .RE
  663. .sp
  664. .it 1 an-trap
  665. .nr an-no-space-flag 1
  666. .nr an-break-flag 1
  667. .br
  668. Download only selected files using index(usually called "selectable download")
  669. .RS
  670. .sp
  671. .RS 4
  672. .nf
  673. aria2c \-T test\.torrent \-\-select\-file 1\-4,8
  674. .fi
  675. .RE
  676. .sp
  677. .it 1 an-trap
  678. .nr an-no-space-flag 1
  679. .nr an-break-flag 1
  680. .br
  681. Note
  682. The index is printed to the console using \-S option\.
  683. .sp
  684. .RE
  685. .sp
  686. .it 1 an-trap
  687. .nr an-no-space-flag 1
  688. .nr an-break-flag 1
  689. .br
  690. Change the listening port for incoming peer
  691. .RS
  692. .sp
  693. .RS 4
  694. .nf
  695. aria2c \-T test\.torrent \-\-listen\-port 7000\-7001,8000
  696. .fi
  697. .RE
  698. .RE
  699. .sp
  700. .it 1 an-trap
  701. .nr an-no-space-flag 1
  702. .nr an-break-flag 1
  703. .br
  704. Specify the condition to stop program after torrent download finished
  705. .RS
  706. .sp
  707. .RS 4
  708. .nf
  709. aria2c \-T test\.torrent \-\-seed\-time 120 \-\-seed\-ratio 1\.0
  710. .fi
  711. .RE
  712. .sp
  713. .it 1 an-trap
  714. .nr an-no-space-flag 1
  715. .nr an-break-flag 1
  716. .br
  717. Note
  718. In the above example, the program exists when the 120 minutes has elapsed since download completed or seed ratio reaches 1\.0\.
  719. .sp
  720. .RE
  721. .sp
  722. .it 1 an-trap
  723. .nr an-no-space-flag 1
  724. .nr an-break-flag 1
  725. .br
  726. Throttle upload speed
  727. .RS
  728. .sp
  729. .RS 4
  730. .nf
  731. aria2c \-T test\.torrent \-\-max\-upload\-limit 100K
  732. .fi
  733. .RE
  734. .RE
  735. .SS "More advanced HTTP features"
  736. .sp
  737. .it 1 an-trap
  738. .nr an-no-space-flag 1
  739. .nr an-break-flag 1
  740. .br
  741. Load cookies
  742. .RS
  743. .sp
  744. .RS 4
  745. .nf
  746. aria2c \-\-load\-cookies cookies\.txt http://host/file\.zip
  747. .fi
  748. .RE
  749. .sp
  750. .it 1 an-trap
  751. .nr an-no-space-flag 1
  752. .nr an-break-flag 1
  753. .br
  754. Note
  755. You can use Firefox/Mozilla\'s cookie file without modification\.
  756. .sp
  757. .RE
  758. .sp
  759. .it 1 an-trap
  760. .nr an-no-space-flag 1
  761. .nr an-break-flag 1
  762. .br
  763. Resume download started by web browsers or another programs
  764. .RS
  765. .sp
  766. .RS 4
  767. .nf
  768. aria2c \-c \-s 2 http://host/partiallydownloadedfile\.zip
  769. .fi
  770. .RE
  771. .RE
  772. .SS "And more advanced features"
  773. .sp
  774. .it 1 an-trap
  775. .nr an-no-space-flag 1
  776. .nr an-break-flag 1
  777. .br
  778. Throttle download speed
  779. .RS
  780. .sp
  781. .RS 4
  782. .nf
  783. aria2c \-M test\.metalink \-\-max\-download\-limit 100K
  784. .fi
  785. .RE
  786. .RE
  787. .sp
  788. .it 1 an-trap
  789. .nr an-no-space-flag 1
  790. .nr an-break-flag 1
  791. .br
  792. Repair a damaged download using --check-integrity option
  793. .RS
  794. .sp
  795. .RS 4
  796. .nf
  797. aria2c \-M test\.metalink \-\-check\-integrity=true
  798. .fi
  799. .RE
  800. .sp
  801. .it 1 an-trap
  802. .nr an-no-space-flag 1
  803. .nr an-break-flag 1
  804. .br
  805. Note
  806. This option is only available used with BitTorrent or metalink with chunk checksums\.
  807. .sp
  808. .RE
  809. .sp
  810. .it 1 an-trap
  811. .nr an-no-space-flag 1
  812. .nr an-break-flag 1
  813. .br
  814. Drop connection if download speed is lower than specified value
  815. .RS
  816. .sp
  817. .RS 4
  818. .nf
  819. aria2c \-M test\.metalink \-\-lowest\-speed\-limit 10K
  820. .fi
  821. .RE
  822. .RE
  823. .sp
  824. .it 1 an-trap
  825. .nr an-no-space-flag 1
  826. .nr an-break-flag 1
  827. .br
  828. Parameterized URI support
  829. .RS
  830. You can specify set of parts:
  831. .sp
  832. .sp
  833. .RS 4
  834. .nf
  835. aria2c \-P http://{host1,host2,host3}/file\.iso
  836. .fi
  837. .RE
  838. You can specify numeric sequence:
  839. .sp
  840. .sp
  841. .RS 4
  842. .nf
  843. aria2c \-Z \-P http://host/image[000\-100]\.png
  844. .fi
  845. .RE
  846. .sp
  847. .it 1 an-trap
  848. .nr an-no-space-flag 1
  849. .nr an-break-flag 1
  850. .br
  851. Note
  852. \-Z option is required if the all URIs don\'t point to the same file, such as the above example\.
  853. .sp
  854. You can specify step counter:
  855. .sp
  856. .sp
  857. .RS 4
  858. .nf
  859. aria2c \-Z \-P http://host/image[A\-Z:2]\.png
  860. .fi
  861. .RE
  862. .RE
  863. .SH "FILES"
  864. .SS "aria2\.conf"
  865. User configuration file\. It must be placed under ~/\.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\.
  866. .sp
  867. .sp
  868. .RS 4
  869. .nf
  870. # sample configuration file for aria2c
  871. file\-allocation=prealloc
  872. listen\-port=60000
  873. seed\-ratio=1\.0
  874. max\-upload\-limit=40K
  875. ftp\-pasv=true
  876. .fi
  877. .RE
  878. .SH "RESOURCES"
  879. Project web site: http://aria2\.sourceforge\.net/
  880. .sp
  881. metalink: http://www\.metalinker\.org/
  882. .sp
  883. .SH "REPORTING BUGS"
  884. Report bugs to Tatsuhiro Tsujikawa <t\-tujikawa@users\.sourceforge\.net>
  885. .sp
  886. .SH "AUTHOR"
  887. Tatsuhiro Tsujikawa <t\-tujikawa@users\.sourceforge\.net>
  888. .sp
  889. .SH "COPYRIGHT"
  890. Copyright \(co 2006, 2007 Tatsuhiro Tsujikawa
  891. .sp
  892. 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\.
  893. .sp
  894. 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\.
  895. .sp
  896. 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
  897. .sp
  898. 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\.
  899. .sp