aria2c.1 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318
  1. .\" Title: aria2c
  2. .\" Author:
  3. .\" Generator: DocBook XSL Stylesheets v1.70.1 <http://docbook.sf.net/>
  4. .\" Date: 01/28/2007
  5. .\" Manual:
  6. .\" Source:
  7. .\"
  8. .TH "ARIA2C" "1" "01/28/2007" "" ""
  9. .\" disable hyphenation
  10. .nh
  11. .\" disable justification (adjust text to left margin only)
  12. .ad l
  13. .SH "NAME"
  14. aria2c \- The high speed download utility
  15. .SH "SYNOPSIS"
  16. .sp
  17. .RS 3n
  18. .nf
  19. aria2c [OPTIONS] URL ...
  20. aria2c [OPTIONS] \-T TORRENT_FILE FILE ...
  21. aria2c [OPTIONS] \-M METALINK_FILE
  22. .fi
  23. .RE
  24. .SH "DESCRIPTION"
  25. aria2 is a utility for downloading files. It has completely new design concept from its predecessor, Aria, and is written from scratch. aria2 has a segmented downloading engine in its core. It can download one file from multiple URLs or multiple connections from one URL. This results in very high speed downloading, much faster than ordinary browsers. This engine in was implemented in a single\-thread model. The architecture is clean and easy to extend. aria2 currently supports HTTP, FTP, and BitTorrent. It also supports Metalink version 3.0.
  26. .sp
  27. Please visit the project web site at http://aria2.sourceforge.net
  28. .sp
  29. .SH "OPTIONS"
  30. .TP 3n
  31. \-d, \-\-dir=DIR
  32. The directory to store downloaded file.
  33. .TP 3n
  34. \-o, \-\-out=FILE
  35. The file name for downloaded file.
  36. .TP 3n
  37. \-l, \-\-log=LOG
  38. The file path to store log. If
  39. \fI\-\fR
  40. is specified, log is written to stdout.
  41. .TP 3n
  42. \-D, \-\-daemon
  43. Run as daemon.
  44. .TP 3n
  45. \-s, \-\-split=N
  46. Download a file using
  47. \fIN\fR
  48. connections.
  49. \fIN\fR
  50. must be between
  51. \fI1\fR
  52. and
  53. \fI5\fR. This option affects all URLs. Thus, aria2 connects to each URL with
  54. \fIN\fR
  55. connections. Default:
  56. \fI1\fR
  57. .TP 3n
  58. \-\-retry\-wait=SEC
  59. Set amount of time in second between requests for errors. Specify a value between
  60. \fI0\fR
  61. and
  62. \fI60\fR. Default:
  63. \fI5\fR
  64. .TP 3n
  65. \-t, \-\-timeout=SEC
  66. Set timeout in second. Default:
  67. \fI60\fR
  68. .TP 3n
  69. \-m, \-\-max\-tries=N
  70. Set number of tries.
  71. \fI0\fR
  72. means unlimited. Default:
  73. \fI5\fR
  74. .TP 3n
  75. \-\-http\-proxy=HOST:PORT
  76. Use HTTP proxy server. This affects to all URLs.
  77. .TP 3n
  78. \-\-http\-user=USER
  79. Set HTTP user. This affects to all URLs.
  80. .TP 3n
  81. \-\-http\-passwd=PASSWD
  82. Set HTTP password. This affects to all URLs.
  83. .TP 3n
  84. \-\-http\-proxy\-user=USER
  85. Set HTTP proxy user. This affects to all URLs
  86. .TP 3n
  87. \-\-http\-proxy\-passwd=PASSWD
  88. Set HTTP proxy password. This affects to all URLs.
  89. .TP 3n
  90. \-\-http\-proxy\-method=METHOD
  91. Set the method to use in proxy request.
  92. \fIMETHOD\fR
  93. is either
  94. \fIget\fR
  95. or
  96. \fItunnel\fR. Default:
  97. \fItunnel\fR
  98. .TP 3n
  99. \-\-http\-auth\-scheme=SCHEME
  100. Set HTTP authentication scheme. Currently,
  101. \fIbasic\fR
  102. is the only supported scheme. Default:
  103. \fIbasic\fR
  104. .TP 3n
  105. \-\-referer=REFERER
  106. Set Referer. This affects to all URLs.
  107. .TP 3n
  108. \-\-ftp\-user=USER
  109. Set FTP user. This affects to all URLs. Default:
  110. \fIanonymous\fR
  111. .TP 3n
  112. \-\-ftp\-passwd=PASSWD
  113. Set FTP password. This affects to all URLs. Default:
  114. \fIARIA2USER@\fR
  115. .TP 3n
  116. \-\-ftp\-type=TYPE
  117. Set FTP transfer type. TYPE is either
  118. \fIbinary\fR
  119. or
  120. \fIascii\fR. Default:
  121. \fIbinary\fR
  122. .TP 3n
  123. \-p, \-\-ftp\-pasv
  124. Use passive mode in FTP.
  125. .TP 3n
  126. \-\-ftp\-via\-http\-proxy=METHOD
  127. Use HTTP proxy in
  128. \fIFTP\fR.
  129. \fIMETHOD\fR
  130. is either
  131. \fIget\fR
  132. or
  133. \fItunnel\fR. Default:
  134. \fItunnel\fR
  135. .TP 3n
  136. \-\-lowest\-speed\-limit=SPEED
  137. Close connection if download speed is lower than or equal to this value(bytes per sec). 0 means aria2 does not care lowest speed limit. You can append
  138. \fIK\fR
  139. or
  140. \fIM\fR(1K = 1024, 1M = 1024K). This option does not affect BitTorrent download. Default:
  141. \fI0\fR
  142. .TP 3n
  143. \-\-max\-download\-limit=SPEED
  144. Set max download speed in bytes per sec.
  145. \fI0\fR
  146. means unrestricted. You can append
  147. \fIK\fR
  148. or
  149. \fIM\fR(1K = 1024, 1M = 1024K). Default:
  150. \fI0\fR
  151. .TP 3n
  152. \-\-file\-allocation=METHOD
  153. Specify file allocation method.
  154. \fIMETHOD\fR
  155. is either
  156. \fInone\fR
  157. or
  158. \fIprealloc\fR.
  159. \fInone\fR
  160. doesn't pre\-allocate file space.
  161. \fIprealloc\fR
  162. pre\-allocates file space before download begins. This may take some time depending on the size of file. Default:
  163. \fInone\fR
  164. .TP 3n
  165. \-\-allow\-overwrite=true|false
  166. If this option set to
  167. \fIfalse\fR, aria2 doesn't download a file which already exists in the file system but its corresponding .aria2 file doesn't exist. Default:
  168. \fIfalse\fR
  169. .TP 3n
  170. \-\-check\-integiry=true|false
  171. Check file integiry by validating piece hash. This option makes effect in BitTorrent download and Metalink with chunk checksums. Use this option to redownload a damaged portion of file. You may need to specify
  172. \fI\-\-allow\-overwrite=true\fR
  173. option if .aria2 file doesn't exist. Default:
  174. \fIfalse\fR
  175. .TP 3n
  176. \-\-realtime\-chunk\-checksum=true|false
  177. Validate chunk checksum while downloading a file in Metalink mode. This option makes effect in Metalink with chunk checksums. Default:
  178. \fItrue\fR
  179. .TP 3n
  180. \-T, \-\-torrent\-file=TORRENT_FILE
  181. The file path to .torrent file.
  182. .TP 3n
  183. \-\-follow\-torrent=true|false
  184. Setting this option to
  185. \fIfalse\fR
  186. prevents aria2 to enter BitTorrent mode even if the filename of downloaded file ends with .torrent. Default:
  187. \fItrue\fR
  188. .TP 3n
  189. \-S, \-\-show\-files
  190. Print file listing of .torrent file and exit.
  191. .TP 3n
  192. \-\-direct\-file\-mapping=true|false
  193. Directly read from and write to each file mentioned in .torrent file. Default:
  194. \fItrue\fR
  195. .TP 3n
  196. \-\-listen\-port=PORT
  197. Set port number to listen to for peer connection.
  198. .TP 3n
  199. \-\-max\-upload\-limit=SPEED
  200. Set max upload speed in bytes per sec.
  201. \fI0\fR
  202. means unrestricted. You can append
  203. \fIK\fR
  204. or
  205. \fIM\fR(1K = 1024, 1M = 1024K). Default:
  206. \fI0\fR
  207. .TP 3n
  208. \-\-select\-file=INDEX\&...
  209. Set file to download by specifing its index. You can know file index through
  210. \fI\-\-show\-files\fR
  211. option. Multiple indexes can be specified by using
  212. \fI,\fR
  213. like "3,6". You can also use
  214. \fI\-\fR
  215. to specify rangelike "1\-5".
  216. \fI,\fR
  217. and
  218. \fI\-\fR
  219. can be used together.
  220. .TP 3n
  221. \-\-seed\-time=MINUTES
  222. Specify seeding time in minutes. See also
  223. \fI\-\-seed\-ratio\fR
  224. option.
  225. .TP 3n
  226. \-\-seed\-ratio=RATIO
  227. Specify share ratio. Seed completed torrents until share ratio reaches
  228. \fIRATIO\fR.
  229. \fI1.0\fR
  230. is encouraged. If
  231. \fI\-\-seed\-time\fR
  232. option is specified along with this option, seeding ends when at least one of the conditions is satisfied.
  233. .TP 3n
  234. \-M, \-\-metalink\-file=METALINK_FILE
  235. The file path to .metalink file.
  236. .TP 3n
  237. \-C, \-\-metalink\-servers=NUM_SERVERS
  238. The number of servers to connect to simultaneously. If more than one connection per server is required, use
  239. \fI\-s\fR
  240. option. Default:
  241. \fI15\fR
  242. .TP 3n
  243. \-\-metalink\-version=VERSION
  244. The version of file to download.
  245. .TP 3n
  246. \-\-metalink\-language=LANGUAGE
  247. The language of file to download.
  248. .TP 3n
  249. \-\-metalink\-os=OS
  250. The operating system the file is targeted.
  251. .TP 3n
  252. \-\-metalink\-location=LOCATION
  253. The location of the prefered server.
  254. .TP 3n
  255. \-\-follow\-metalink=true|false
  256. Setting this option to
  257. \fIfalse\fR
  258. prevents aria2 to enter Metalink mode even if the filename of downloaded file ends with .metalink. Default:
  259. \fItrue\fR
  260. .TP 3n
  261. \-v, \-\-version
  262. Print the version number and exit.
  263. .TP 3n
  264. \-h, \-\-help
  265. Print this message and exit.
  266. .TP 3n
  267. URL
  268. You can specify multiple URLs. All URLs must point to the same file or downloading fails.
  269. .TP 3n
  270. FILE
  271. Specify files in multi\-file torrent to download. Use conjunction with
  272. \fI\-T\fR
  273. option. This arguments are ignored if you specify
  274. \fI\-\-select\-file\fR
  275. option.
  276. .SH "EXAMPLES"
  277. .TP 3n
  278. Download a file by 1 connection
  279. aria2c http://AAA.BBB.CCC/file.zip
  280. .TP 3n
  281. Download a file by 2 connections
  282. aria2c \-s 2 http://AAA.BBB.CCC/file.zip
  283. .TP 3n
  284. Download a file by 2 connections, each connects to a different server
  285. aria2c http://AAA.BBB.CCC/file.zip http://DDD.EEE.FFF/GGG/file.zip
  286. .TP 3n
  287. You can mix up different protocols
  288. aria2c http://AAA.BBB.CCC/file.zip ftp://DDD.EEE.FFF/GGG/file.zip
  289. .TP 3n
  290. Download a torrent
  291. aria2c \-o test.torrent http://AAA.BBB.CCC/file.torrent
  292. .TP 3n
  293. Download a torrent using local .torrent file
  294. aria2c \-T test.torrent
  295. .TP 3n
  296. Download only selected files
  297. aria2c \-T test.torrent dir/file1.zip dir/file2.zip
  298. .TP 3n
  299. Print file listing of .torrent file
  300. aria2c \-T test.torrent \-S
  301. .TP 3n
  302. Metalink downloading
  303. aria2c \-\-lowest\-speed\-limit 10K http://AAA.BBB.CCC/file.metalink
  304. .TP 3n
  305. Download a file using local .metalink file
  306. aria2c \-M test.metalink
  307. .TP 3n
  308. Metalink downloading with preferences
  309. aria2c \-M test.metalink \-\-metalink\-version=1.1.1 \-\-metalink\-language=en\-US
  310. .SH "REPORTING BUGS"
  311. Report bugs to Tatsuhiro Tsujikawa <t\-tujikawa@users.sourceforge.net>
  312. .sp
  313. .SH "AUTHOR"
  314. Tatsuhiro Tsujikawa <t\-tujikawa@users.sourceforge.net>
  315. .sp
  316. .SH "COPYRIGHT"
  317. Copyright \(co 2006, 2007 Tatsuhiro Tsujikawa
  318. .sp