Table of Contents
transmission-remote useful command line
如果只能命令行访问NAS,熟悉transmission-remote命令会非常有用,可以在没有WEB的情况下查看、控制transmission工作。
语法
1 2 3 |
transmission-remote [host:port | host | port] [-a filenames-or-URLs] [-as] [-AS] [-asd number] [-asu number] [-asc] [-ASC] [-b] [-c path | -C] [-d number | -D] [-e size] [-er | -ep | -et] [-f] [-g files] [-G files] [-gsr ratio] [-GSR] [-h] [-i] [-l] [-m | -M] [-n user:pass] [-N netrc] [-o | -O] [-p port] [-Bh] [-Bn] [-Bl] [-ph files] [-pl files] [-pn files] [-pr peers] [-r] [-R] [-s | -S] [-sr ratio] [-SR] [-srd] [-si] [-st] [-t all | id | hash] [-hl] [-HL] [-u number | -U] [-v] [-V] [-w download-dir] [-x | -X] [-y | -Y] [-pi] |
host:port
比如:
1 2 3 |
http://127.0.0.1:8000/tr |
tr为配置文件中的rpc_url
-n –auth
比如:
1 2 3 |
usr:pass |
-t –torrent
操作ID是2、4、6、7、8的torrent
1 2 3 |
-t2,4,6-8 |
操作所有torrent
1 2 3 |
-tall |
查看所有的torrent的ID和状态
1 2 3 |
$ transmission-remote [ip:port/rpc-url] [--auth usr:pass] -l |
第一个列是ID,每个ID对应一个torrent,后续可以使用此ID操作对应torrent。
增加torrent
可增加一个或多个torrent,支持通配符
1 2 3 4 |
$ transmission-remote [ip:port/rpc-url] [--auth usr:pass] -a new.torrent $ transmission-remote [ip:port/rpc-url] [--auth usr:pass] -a "magnet:?xt=urn:btih:XXXXXXXX" |
移动torrent的下载目录
1 2 3 |
$ transmission-remote [ip:port/rpc-url] [--auth usr:pass] -tID --move /path/to/new/dir |
停止torrent
1 2 3 |
$ transmission-remote [ip:port/rpc-url] [--auth usr:pass] -tID --stop |
启动torrent
1 2 3 |
$ transmission-remote [ip:port/rpc-url] [--auth usr:pass] -tID --start |
停止torrent
1 2 3 |
$ transmission-remote [ip:port/rpc-url] [--auth usr:pass] -tID --stop |
校验torrent
1 2 3 |
$ transmission-remote [ip:port/rpc-url] [--auth usr:pass] -tID --verify |
删除torrent
1 2 3 |
$ transmission-remote [ip:port/rpc-url] [--auth usr:pass] -tID --remove |
删除torrent以及已下载的数据
1 2 3 |
$ transmission-remote [ip:port/rpc-url] [--auth usr:pass] -tID --remove-and-delete |