<h2>Intro</h2>
<p>This is a collection of frequently used commands for the Transmission daemon.</p>
<p>The <em>servername</em> is your torrent servers hostname.</p>
<p>The <em>ID</em> is the torrent-id which you can find by running #3.</p>
<p>Most of the commands have a short form, eg <em>-r</em> instead of <em>--remove</em>. Check the sources list for reference.</p>
<p> </p>
<h2>Selected commands </h2>
<ol>
<li>Remove torrent and delete associated data:
<pre># transmission-remote servername -t ID --remove-and-delete</pre>
</li>
<li>Remove torrent file only:
<pre># transmission-remote servername -t ID --remove</pre>
</li>
<li>List all torrents:
<pre># transmission-remote servername -l<br /><br /><em>If your torrent list is long, try sorting it using the below. It will sort on the torrent name in the thenth column.</em><br /># transmission-remote servername -l|sort -k10</pre>
Try this:<br />
<pre># watch -n 2 transmission-remote servername -l</pre>
</li>
<li>Add torrent:
<pre># transmission-remote servername -a http://mirror.hh.se/centos/7/isos/x86_64/CentOS-7-x86_64-Everything-1804.torrent</pre>
</li>
<li>Add magnet link:
<pre># transmission-remote -a servername magnet:?xt=urn:btih:blah-blah-blah</pre>
</li>
<li> Start torrent:
<pre># transmission-remote servername -t ID --start</pre>
</li>
<li>Stop torrent:
<pre># transmission-remote servername -t ID --stop</pre>
</li>
<li>Start all torrents:
<pre># transmission-remote servername -tall --start</pre>
</li>
<li>Stop all torrents:
<pre># transmission-remote servername -tall --stop</pre>
</li>
</ol>
<p> </p>
<p> </p>
<h2>Bonus hints</h2>
<p>Is one of your seeding torrents starred as below?</p>
<pre>ID Done Have ETA Up Down Ratio Status Name<br />20 100% 619.0 MiB Done 0.0 0.0 14.4 Seeding ubuntu-14.04.5-server-amd64.iso<br />23* 100% 1.88 GiB Done 0.0 0.0 49.2 Idle ubuntu-mate-18.04.1-desktop-i386.iso</pre>
<p>It usually means there is a problem, or error, "upstream". The star may come and go, but if it stays there, there might be something fishy.</p>
<p>For example, Canonical replaces its Ubuntu-torrents every so often, and the star shows up when the old distro torrent is gone and replaced with a new minor version.</p>
<p>Just remove the old one, and add the new! Problem solved.</p>
<p> </p>
<p> </p>
<h2>Sources</h2>
<p><a href="https://linux.die.net/man/1/transmission-remote">https://linux.die.net/man/1/transmission-remote</a></p>
<p><a href="https://cli-ck.io/transmission-cli-user-guide/">https://cli-ck.io/transmission-cli-user-guide/</a></p>
<p><a href="https://wiki.archlinux.org/index.php/transmission">https://wiki.archlinux.org/index.php/transmission</a></p>
<p><a href="https://forum.transmissionbt.com/viewtopic.php?t=10099">https://forum.transmissionbt.com/viewtopic.php?t=10099</a></p>
<p><a href="https://unix.stackexchange.com/questions/104525/sort-based-on-the-third-column">https://unix.stackexchange.com/questions/104525/sort-based-on-the-third-column</a></p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
Transmission-remote linux command line hints
- Written by: Sorin Srbu
- Hits: 1189