RTORRENT(1)

πŸ“¦
version 0.16.17 Β· 4 versions
, in debian bookworm, debian trixie, ubuntu jammy, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ¦‹ RTORRENT(1) β€” bestie, let's talk πŸ’…

ok so this is the manual for rtorrent. grab a snack πŸ“, put your hair up, we're doing the whole thing. no skipping. i said what i said. πŸ’–


✨ NAME ✨

rtorrent β€” a BitTorrent client for ncurses. iconic. that's the whole vibe. πŸ‘‘


✨ SYNOPSIS ✨

rtorrent [ -h ] [ -n ] [ -o key1=opt1,... ] [ -O key=opt ] [ URL | FILE ... ]

✨ DESCRIPTION ✨

so like, rtorrent is a BitTorrent client for ncurses, and it runs on the libtorrent library. the client AND the library are written in C++ and they are obsessed with speed and efficiency β€” main character energy, fr β€” while still delivering all the features you'd find in those GUI-based clients, except in an ncurses client. slay. πŸ’…

lowkey important: most of the options below have their own default unit, and on top of that they also support the B, K, M and G suffixes. so you have options, literally. ✨


⌨️ KEYBOARD CONTROL ⌨️

πŸŽ€ GLOBAL KEYS πŸŽ€

  • ^q β€” initiate shutdown. press it again to force the shutdown and skip sending the stop signal to trackers. (that second press is the "ok bye for real" press 🫢)
  • up | down | left | right β€” the arrow keys. they're here.
  • ^P | ^N | ^B | ^F β€” select entries or change windows. the right arrow key or ^F is often used for viewing details about the selected entry, while the left arrow key or ^B often returns you to the previous screen. it's giving "back button but make it keystrokes". πŸ¦‹
  • a | s | d β€” increase the upload throttle by 1/5/50 KB.
  • A | S | D β€” increase the download throttle by 1/5/50 KB.
  • z | x | c β€” decrease the upload throttle by 1/5/50 KB.
  • Z | X | C β€” decrease the download throttle by 1/5/50 KB.
lowercase = up-up-up, capital = down-down-down. no cap, that's the pattern. 🧚

🌸 MAIN VIEW KEYS 🌸

  • -> β€” view download.
  • 1 - 7 β€” change view.
  • ^S β€” start download. go girl go.
  • ^D β€” stop an active download, or remove a stopped download.
  • ^K β€” close a torrent and its files.
  • ^E β€” set the 'create/resize queued' flags on all files in a torrent. this is necessary if the underlying files in a torrent have been deleted or truncated, and thus rtorrent must recreate them.
  • ^R β€” initiate hash check of torrent.
  • ^O β€” change the destination directory of the download. 🚨 the torrent must be closed first.
  • ^X β€” call commands or change settings.
  • ^B β€” set download to perform initial seeding. ⚠️ only use this when you are the first and only seeder so far for the download. like, genuinely only then.
  • + | - β€” change the priority of the download.
  • backspace β€” add torrent using an URL or file path. use tab to view directory content and do auto-complete. king behavior 🫢
  • l β€” view log. exit by pressing the space-bar.
  • U β€” delete the file the torrent is tied to, and clear the association.
  • I β€” toggle whether torrent ignores ratio settings.

πŸ¦‹ DOWNLOAD VIEW KEYS πŸ¦‹

  • -> β€” view torrent file list. use the space-bar to change the file priority and * to change the priority of all files. use / to collapse the directories. OUTDATED.
  • 1 | 2 β€” adjust max uploads.
  • 3 | 4 β€” adjust min peers.
  • 5 | 6 β€” adjust max peers.
  • u β€” display transferring blocks.
  • i β€” display chunk rarity.
  • o β€” display the tracker list. cycle the trackers in a group with the space-bar.
  • p β€” view peer and torrent information.
  • t | T β€” initiate tracker request. use capital T to force the request, ignoring the "min interval" set by the tracker. periodt.
  • k β€” disconnect peer.
  • * β€” choke/snub peer.

πŸ’œ OPTIONS πŸ’œ

  • -b a.b.c.d β€” bind listening socket and outgoing connections to this network interface address.
  • -d directory β€” set the default download directory. defaults to "./".
  • -h β€” display help and exit.
  • -i a.b.c.d β€” set the address reported to the tracker.
  • -n β€” don't load ~/.rtorrent.rc on startup.
  • -o key1=opt1,... β€” set any number of options, see the SETTINGS section. the options given here override the resource files.
  • -O key=opt β€” same deal, but with capital -O you're allowed to have a comma inside the option. set any number of options, see the SETTINGS section, and again: these override the resource files.
  • -p a-b β€” try to open a listening port in the range a up to and including b.
  • -s directory β€” session management will be enabled and the torrent files for all open downloads will be stored in this directory. ⚠️ only one instance of rtorrent should be used with each session directory, though at the moment no locking is done. an empty string will disable the session directory.

🌈 GENERAL SETTINGS 🌈

  • bind = a.b.c.d β€” bind listening socket and outgoing connections to this network interface address.
  • ip = a.b.c.d β€” set the address reported to the tracker.
  • ip = hostname β€” set the address reported to the tracker.
  • port_range = a-b β€” try to open a listening port in the range a up to and including b.
  • port_random = yes | no β€” open the listening port at a random position in the port range.
  • check_hash = yes | no β€” perform hash check on torrents that have finished downloading.
  • directory = directory β€” set the default download directory. defaults to "./".
  • session = directory β€” session management will be enabled and the torrent files for all open downloads will be stored in this directory. 🫨 only one instance of rtorrent can be used per session directory. an empty string will disable the session directory.
  • http_proxy = url β€” use a http proxy. use an empty string to disable.
  • encoding_list = encoding β€” add a preferred filename encoding to the list. the encodings are attempted in the order they are inserted, and if none match, the torrent default is used.
  • encryption = option,... β€” set how rtorrent should deal with encrypted Bittorrent connections. by default, encryption is disabled, which is equivalent to specifying the option none. alternatively, any number of the following options may be specified:
    • allow_incoming (allow incoming encrypted connections)
    • try_outgoing (use encryption for outgoing connections)
    • require (disable unencrypted handshakes)
    • require_RC4 (also disable plaintext transmission after the initial encrypted handshake)
    • enable_retry (if the initial outgoing connection fails, retry with encryption turned on if it was off or off if it was on)
    • prefer_plaintext (choose plaintext when peer offers a choice between plaintext transmission and RC4 encryption, otherwise RC4 will be used)
  • peer_exchange = yes | no β€” enable/disable peer exchange for torrents that aren't marked private. disabled by default.
  • start_tied = β€” start torrents that are tied to filenames that have been re-added.
  • stop_untied = β€” stop the torrents that are tied to filenames that have been deleted. clear the association with the 'U' key.
  • close_untied = β€” close the torrents that are tied to filenames that have been deleted. clear the association with the 'U' key.
  • remove_untied = β€” remove the torrents that are tied to filenames that have been deleted. clear the association with the 'U' key.
  • close_low_diskspace = space β€” close any active torrents on filesystems with less than space diskspace left. use with the schedule option. a default scheduled event with id low_diskspace is set to 500Mb.
  • load = file β€” load a file, or possibly multiple files by using the wild-card "*". this is meant for use with schedule, though ensure that the start is non-zero. the loaded file will be tied to the filename provided. ✨
  • load_verbose = file β€” load a file, or possibly multiple files by using the wild-card "*". this is meant for use with schedule, though ensure that the start is non-zero. the loaded file will be tied to the filename provided. ✨
  • load_start = file β€” load and possibly start a file, or possibly multiple files by using the wild-card "*". this is meant for use with schedule, though ensure that the start is non-zero. the loaded file will be tied to the filename provided. ✨
  • load_start_verbose = file β€” load and possibly start a file, or possibly multiple files by using the wild-card "*". this is meant for use with schedule, though ensure that the start is non-zero. the loaded file will be tied to the filename provided. ✨
  • import = file β€” load a resource file.
  • try_import = file β€” load a resource file. the difference? try_import does not throw torrent::input_error exception on bad input. 🫢

πŸ”₯ THROTTLE SETTINGS πŸ”₯

  • upload_rate = KB β€” set the maximum global upland rate. (yes bestie, "upload".)
  • download_rate = KB β€” set the maximum global download rate.
  • set_upload_rate = TODO β€” set the maximum global upland rate.
  • set_download_rate = TODO β€” set the maximum global download rate.
  • min_peers = value β€” set the minimum number of peers to allow in each download.
  • max_peers = value β€” set the maximum number of peers to allow in each download.
  • min_peers_seed = value β€” set the minimum number of peers to allow while seeding, or -1 (default) to use max_peers.
  • max_peers_seed = value β€” set the maximum number of peers to allow while seeding, or -1 (default) to use max_peers.
  • max_uploads = value β€” set the maximum number of simultaneous uploads per upload.
  • max_downloads = value β€” set the maximum number of simultaneous downloads per download.
  • min_uploads = value β€” set the minimum number of simultaneous uploads per upload.
  • min_downloads = value β€” set the minimum number of simultaneous downloads per download.
  • max_uploads_div = value β€” change the divider used to calculate the max upload slots to use when the throttle is changed. disable by setting 0.
  • max_downloads_div = value β€” change the divider used to calculate the max download slots to use when the throttle is changed. disable by setting 0.
  • set_max_uploads_div = value β€” change the divider used to calculate the max upload slots to use when the throttle is changed. disable by setting 0.
  • set_max_downloads_div = value β€” change the divider used to calculate the max download slots to use when the throttle is changed. disable by setting 0.
  • max_uploads_global = value β€” max upload slots allowed. disable by setting 0.
  • max_downloads_global = value β€” max download slots allowed. disable by setting 0.
  • set_max_uploads_global = value β€” max upload slots allowed. disable by setting 0.
  • set_max_downloads_global = value β€” max download slots allowed. disable by setting 0.
  • throttle_up = name, upload_rate β€” define secondary throttle and/or set the given upload rate. attach to a download with the d.set_throttle_name=name command or switch throttles with Ctrl+T. 🚨 the download must be stopped when changing throttles. note that secondary throttles only work if the global upload/download is throttled. setting a download to use the NULL throttle makes the download unthrottled even when there is a global throttle β€” but heads up, this special case bypasses the global throttle entirely, and as such its rate and transfer amounts are not included in the global statistics. πŸ’€
  • throttle_down = name, download_rate β€” define secondary throttle and/or set the given download rate. attach to a download with the d.set_throttle_name=name command or switch throttles with Ctrl+T. 🚨 the download must be stopped when changing throttles. note that secondary throttles only work if the global upload/download is throttled. setting a download to use the NULL throttle makes the download unthrottled even when there is a global throttle β€” and again, that special case bypasses the global throttle entirely, so its rate and transfer amounts are not included in the global statistics. πŸ’€
  • throttle_ip = name, host β€” use the given secondary throttle for a host. all peers with a matching IP will use this throttle instead of the global throttle or a custom download throttle. the name may be NULL to make these peers unthrottled, with the same caveats as explained above.
  • throttle_ip = name, network/prefix β€” use the given secondary throttle for a CIDR network. all peers with a matching IP will use this throttle instead of the global throttle or a custom download throttle. the name may be NULL to make these peers unthrottled, with the same caveats as explained above.
  • throttle_ip = name, start, end β€” use the given secondary throttle for an IP range. all peers with a matching IP will use this throttle instead of the global throttle or a custom download throttle. the name may be NULL to make these peers unthrottled, with the same caveats as explained above.

tracker related settings. πŸ’…

  • enable_trackers = yes β€” set to no to disable all tracker requests. useful for disabling rtorrent with the schedule command.
  • tracker_dump = filename β€” dump tracker requests to filename, disable by supplying an empty string. πŸ“Œ at the moment, only torrents loaded while tracker_dump contains a non-empty string will be logged, although disabling it will work as expected.
  • tracker_numwant = number β€” set the numwant field sent to the tracker, which indicates how many peers we want. a negative value disables this feature.
  • use_udp_trackers = yes β€” use UDP trackers. disable if you are behind a firewall, etc, that does not allow connections to UDP trackers.
  • http_capath = path β€” set the certificates to use in http requests. see Curl's CURLOPT_CAPATH option for further information.
  • http_cacert = filename β€” set the certificates to use in http requests. see Curl's CURLOPT_CAINFO option for further information.

Okay bestie, these are all about the Distributed Hash Table vibes. DHT said "I can find peers without a tracker" and honestly? Iconic.

  • dht = disable|off|auto|on β€” This one controls whether we query the distributed hash table (DHT) to find peers for trackerless torrents or when all trackers are down. Set it to disable to completely disable DHT, off (the default) to enable DHT but not start the DHT server, auto to automatically start and stop the DHT server as needed, or on to permanently keep the DHT server running. When set to automatic, the DHT server starts up when the first non-private torrent is started, and stops 15-30 minutes after the last non-private torrent is stopped (or when rTorrent quits). For DHT to work, a session directory must be set (for saving the DHT cache). πŸ’…
  • dht_port = number β€” Set the UDP listen port for DHT. Defaults to 6881.
  • dht_add_node = host[:port] β€” Not intended for use in the config file, but as a one-time option in the client or on the command line to bootstrap an empty DHT node table. It contacts the given node and attempts to bootstrap from it if it replies. The port is optional, with port 6881 being used by default.
  • dht_statistics = TODO β€” TODO
  • set_dht_port = TODO β€” TODO
  • set_dht_throttle = TODO β€” TODO

πŸ’– USER-INTERFACE SETTINGS πŸ’–

Display related settings, aka the glow-up for your screen.

  • view_add = name β€” Create a new view.
  • view_sort = name
  • view_sort = name,seconds β€” Sort a view according to the criteria set by view_sort_current. If the optional argument is supplied, the view is not sorted if a change happened during the last seconds. This command is meant to be used with schedule.
  • view_sort_new = name,...
  • view_sort_current = name,... β€” Set the sorting criteria for when new elements are inserted or view_sort is called. The list can contain any number of criteria, including zero, from the following: name, name_reverse, stopped, started, complete, incomplete, state_changed, state_changed_reverse.
  • key_layout = qwerty|azerty|qwertz|dvorak β€” Change the key-bindings.

πŸ¦‹ FILE-SYSTEM SETTINGS πŸ¦‹

File-system related settings, because files deserve boundaries too.

  • max_file_size = size β€” Set the maximum size a file can have. Disable by passing -1.
  • split_file_size = size β€” Split files in a torrent larger than size into separate files. Disable by passing -1.
  • split_suffix = string β€” Set the suffix used on split files. Defaults to .part.

🌸 DOWNLOAD SETTINGS 🌸

Settings that require a download as a target. The options need to be called through f.ex. on_finished.

  • create_link = type,path,suffix
  • delete_link = type,path,suffix β€” Create or delete a symbolic link. The link path is the concatenation of path, the result of the type on the download, and suffix.

Available types are; base_path uses the base path of the download, base_filename uses the base filename of the download, tied uses the path of the file the download is tied to, see start_tied.

πŸ’€ ADVANCED SETTINGS πŸ’€

This list contains settings users shouldn't need to touch, some may even cause crashes or similar if incorrectly set. Be careful, bestie. 🫢
  • hash_read_ahead = MB β€” Configure how far ahead we ask the kernel to read when doing hash checking. The hash checker uses madvise(..., MADV_WILLNEED) for the requests.
  • hash_interval = ms β€” Interval between attempts to check the hash when the chunk is not in memory, in milliseconds.
  • hash_max_tries = tries β€” Number of attempts to check the hash while using the mincore status, before forcing. Overworked systems might need lower values to get a decent hash checking rate.
  • safe_sync = yes|no β€” Always use MS_SYNC rather than MS_ASYNC when syncing chunks. This may be nessesary in case of filesystem bugs like NFS in linux ~2.6.13.
  • max_open_files = value β€” Number of files to simultaneously keep open. LibTorrent dynamically opens and closes files as necessary when mapping files to memory. Default is based on sysconf(_SC_OPEN_MAX). You probably only think you know what this option does, so don't touch it. 😭
  • max_open_sockets = value β€” Number of network sockets to simultaneously keep open. This value is set to a reasonable value based on sysconf(_SC_OPEN_MAX).
  • max_open_http = value β€” Number of sockets to simultaneously keep open. This value is set to 32 by default.
  • max_memory_usage = bytes β€” Set the max amount of memory space used to mapping file chunks. This may also be set using ulimit -m where 3/4 will be allocated to file chunks.
  • send_buffer_size = value β€” Adjust the send and receive buffer size for socket.
  • receive_buffer_size = value β€” Adjust the send and receive buffer size for socket.
  • umask = 0022 β€” Set the umask for this process, which is applied to all files created by the program.
  • cwd = directory β€” Changes the working directory of the process using chdir.
  • session_on_completion = yes β€” Controls if the session torrent is saved when a torrent finishes. By default on.
  • session_lock = yes β€” Controls if a lock file is created in the session directory on startup.
  • session_save = β€” Save the session files for all downloads.
  • tos = default|lowdelay|throughput|reliability|mincost β€” Change the TOS of peer connections, by default set to throughput. If the option is set to default then the system default TOS is used. A hex value may be used for non-standard settings.
  • tos = hex β€” Change the TOS of peer connections, by default set to throughput. If the option is set to default then the system default TOS is used. A hex value may be used for non-standard settings.
  • handshake_log = yes β€” Enable logging of the peer handshake. This generates a large number of log messages, but may be useful to debug connection problems.

πŸ‘‘ AUTHORS πŸ‘‘

Jari "Rakshasa" Sundell <jaris@ifi.uio.no>


Okay so that's the whole manual, bestie. This masterpiece is from the BitTorrent client for ncurses, dated 25 February 2015, and it's RTORRENT(1). Slay. πŸ’–βœ¨

πŸ“¦ where this page comes from