RTORRENT(1)
π¦ 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^Fis often used for viewing details about the selected entry, while the left arrow key or^Boften 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 capitalTto force the request, ignoring the "min interval" set by the tracker. periodt.kβ disconnect peer.*β choke/snub peer.
π OPTIONS π
-ba.b.c.d β bind listening socket and outgoing connections to this network interface address.-ddirectory β set the default download directory. defaults to"./".-hβ display help and exit.-ia.b.c.d β set the address reported to the tracker.-nβ don't load~/.rtorrent.rcon startup.-okey1=opt1,... β set any number of options, see the SETTINGS section. the options given here override the resource files.-Okey=opt β same deal, but with capital-Oyou'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.-pa-b β try to open a listening port in the range a up to and including b.-sdirectory β 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 optionnone. 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 thescheduleoption. a default scheduled event with idlow_diskspaceis set to500Mb.load = fileβ load a file, or possibly multiple files by using the wild-card"*". this is meant for use withschedule, 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 withschedule, 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 withschedule, 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 withschedule, 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_importdoes not throwtorrent::input_errorexception 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 usemax_peers.max_peers_seed = valueβ set the maximum number of peers to allow while seeding, or-1(default) to usemax_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 setting0.max_downloads_div = valueβ change the divider used to calculate the max download slots to use when the throttle is changed. disable by setting0.set_max_uploads_div = valueβ change the divider used to calculate the max upload slots to use when the throttle is changed. disable by setting0.set_max_downloads_div = valueβ change the divider used to calculate the max download slots to use when the throttle is changed. disable by setting0.max_uploads_global = valueβ max upload slots allowed. disable by setting0.max_downloads_global = valueβ max download slots allowed. disable by setting0.set_max_uploads_global = valueβ max upload slots allowed. disable by setting0.set_max_downloads_global = valueβ max download slots allowed. disable by setting0.throttle_up = name, upload_rateβ define secondary throttle and/or set the given upload rate. attach to a download with thed.set_throttle_name=namecommand 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 theNULLthrottle 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 thed.set_throttle_name=namecommand 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 theNULLthrottle 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 beNULLto 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 beNULLto 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 beNULLto make these peers unthrottled, with the same caveats as explained above.
π°οΈ TRACKER RELATED SETTINGS π°οΈ
tracker related settings. π
enable_trackers = yesβ set tonoto disable all tracker requests. useful for disabling rtorrent with theschedulecommand.tracker_dump = filenameβ dump tracker requests to filename, disable by supplying an empty string. π at the moment, only torrents loaded whiletracker_dumpcontains a non-empty string will be logged, although disabling it will work as expected.tracker_numwant = numberβ set thenumwantfield 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'sCURLOPT_CAPATHoption for further information.http_cacert = filenameβ set the certificates to use in http requests. see Curl'sCURLOPT_CAINFOoption for further information.
β¨ DHT-RELATED SETTINGS β¨
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 todisableto completely disable DHT,off(the default) to enable DHT but not start the DHT server,autoto automatically start and stop the DHT server as needed, oronto 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 to6881.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 port6881being used by default.dht_statistics = TODOβ TODOset_dht_port = TODOβ TODOset_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 = nameview_sort = name,secondsβ Sort a view according to the criteria set byview_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 withschedule.view_sort_new = name,...view_sort_current = name,...β Set the sorting criteria for when new elements are inserted orview_sortis 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,suffixdelete_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 usesmadvise(..., 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 themincorestatus, before forcing. Overworked systems might need lower values to get a decent hash checking rate.safe_sync = yes|noβ Always useMS_SYNCrather thanMS_ASYNCwhen 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 onsysconf(_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 onsysconf(_SC_OPEN_MAX).max_open_http = valueβ Number of sockets to simultaneously keep open. This value is set to32by default.max_memory_usage = bytesβ Set the max amount of memory space used to mapping file chunks. This may also be set usingulimit -mwhere3/4will 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 usingchdir.session_on_completion = yesβ Controls if the session torrent is saved when a torrent finishes. By defaulton.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 tothroughput. If the option is set todefaultthen 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 tothroughput. If the option is set todefaultthen 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
- debian bookworm: rtorrent 0.9.8-1 Β· GPL-2.0-or-later WITH OpenSSL exception
- debian trixie: rtorrent 0.9.8-1.1 Β· GPL-2.0-or-later WITH OpenSSL exception
- ubuntu jammy: rtorrent 0.9.8-1build1 Β· GPL-2.0-or-later WITH OpenSSL exception
- ubuntu noble: rtorrent 0.9.8-1build3 Β· GPL-2.0-or-later WITH OpenSSL exception
- ubuntu noble: rtorrent 0.9.8-1ubuntu0.1 Β· GPL-2.0-or-later WITH OpenSSL exception
- ubuntu questing: rtorrent 0.9.8-1.1ubuntu1
- ubuntu resolute: rtorrent 0.9.8-1.1ubuntu2 Β· GPL-2.0-or-later WITH OpenSSL exception
- ubuntu stonking: rtorrent 0.16.17-1 Β· GPL-2.0-or-later WITH OpenSSL exception
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms