sho*_*key 3 command-line file-sharing bittorrent
aria2c -S /home/se.torrent
Files:
idx|path/length
===+===========================================================================
1|./test.mkv
|283MiB (297,429,086)
Run Code Online (Sandbox Code Playgroud)
---+---------------------------------------------- -----------------------------
我想将下载的文件保存为 /tmp 中的 ok.mkv。
aria2c -d /tmp -o ok.mkv /home/se.torrent
Run Code Online (Sandbox Code Playgroud)
下载的名字不能改成 /tmp/ok.mkv ,
执行命令时还是/tmp/test.mkv 。

在手册中aria2c -h,没有字符串,例如:
NOTE:
You cannot specify a file name for Metalink or BitTorrent
downloads.
尝试.torrent使用aria2c, 从手册页重命名文件时,您很不走运:
-o, --out=<FILE>
The file name of the downloaded file. When the
--force-sequential option is used, this option is ignored.
NOTE:
You cannot specify a file name for Metalink or BitTorrent
downloads.
Run Code Online (Sandbox Code Playgroud)
请注意,此信息不包含在命令提供的帮助中:
aria2c -h
Run Code Online (Sandbox Code Playgroud)
但是在使用以下内容阅读的手册页中:
man aria2c
Run Code Online (Sandbox Code Playgroud)
对于其他类型的文件,aria2c可以很好地按照指示适当地重命名:
andrew@athens:~$ aria2c -d $HOME/test -o testing.jpg http://www.andrews-corner.org/images/fluxbox.jpg
[#3f8528 32KiB/417KiB(7%) CN:1 DL:87KiB ETA:4s]
06/24 18:29:14 [NOTICE] Download complete: /home/andrew/test/testing.jpg
Download Results:
gid |stat|avg speed |path/URI
======+====+===========+=======================================================
3f8528|OK | 312KiB/s|/home/andrew/test/testing.jpg
Status Legend:
(OK):download completed.
Run Code Online (Sandbox Code Playgroud)
很抱歉成为坏消息的承载者......