RMT(8)
# โจ RMT(8) โ rmt, the remote magnetic tape server โจ
## ๐ NAME ๐
okay so rmt is the remote magnetic tape server ๐ it gives you remote access to files and devices for tar(1), cpio(1), and similar backup utilities ๐
## ๐ง SYNOPSIS ๐ง
rmt
## ๐ฆ DESCRIPTION ๐ฆ
bestie, rmt is the remote access queen ๐ it gives you remote access to files and devices for tar(1), cpio(1), and similar backup utilities. it's normally called by running rsh(1) or ssh(1) to the remote machine, and you can optionally use a different login name if one is supplied ๐ซถ
the calling program talks to rmt by sending requests on its standard input and reading replies from the standard output โจ a request is a request letter, then an argument (if it needs one), then a newline character. any extra data gets sent after the newline ๐
on success, rmt returns:
Anumber\n
where number is an ASCII representation of a decimal return code. any additional data comes back after this line ๐ธ on error, you get this instead:
Eerrno\nerror-message\n
where errno is one of the system error codes, as described in errno(3), and error-message is a one-line human-readable description of the error, as printed by perror(3) ๐ญ
the available commands and their possible responses are discussed in detail in the next section ๐
# ๐ COMMANDS ๐
Odevice\nflags\nโ opens the device with the given flags ๐ฅ if a device was already open, it gets closed before the new one opens, so no drama ๐
๐ Arguments ๐
- device โ the name of the device to open.
- flags โ flags for
open(2): either a decimal number, or any validO_*constant fromfcntl.h(the initialO_can be left off), or a bitwise or (using|) of any number of these, e.g.:
576
64|512
CREAT|TRUNC
the combined form is allowed too, meaning a decimal mode followed by its symbolic representation. when that happens, the symbolic representation gets the preference ๐
๐ฆ Reply ๐ฆ
A0\n on success โจ
๐ Extensions ๐
the BSD version only allows a decimal number for flags ๐ฅบ
C[device]\nโ closes the currently open device ๐
๐ Arguments ๐
any arguments are silently ignored ๐
๐ฆ Reply ๐ฆ
A0\n on success โจ
Lwhence\noffset\nโ performs anlseek(2)on the currently open device with the specified parameters ๐ง
๐ Arguments ๐
- whence โ where to measure the offset from. valid values are:
0, SET, SEEK_SET seek from the file beginning
1, CUR, SEEK_CUR seek from the current location
2, END, SEEK_END seek from the file end
๐ฆ Reply ๐ฆ
Aoffset\n on success. the offset is the new offset in file ๐ซถ
๐ Extensions ๐
the BSD version only allows 0, 1, 2 as whence ๐ฅบ
Rcount\nโ reads count bytes of data from the current device ๐
๐ Arguments ๐
- count โ number of bytes to read.
๐ฆ Reply ๐ฆ
on success, you get:
Ardcount\n
followed by rdcount bytes of data read from the device ๐
Wcount\nโ writes data onto the current device ๐ the command is followed by count bytes of input data.
๐ Arguments ๐
- count โ number of bytes to write.
๐ฆ Reply ๐ฆ
on success: Awrcount\n, where wrcount is the number of bytes actually written โจ
Iopcode\ncount\nโ performs aMTIOCOPioctl(2)command with the specified paramedters ๐
๐ Arguments ๐
- opcode โ
MTIOCOPoperation code. - count โ
mt_count.
๐ฆ Reply ๐ฆ
on success: A0\n โจ
S\nโ returns the status of the currently open device, as obtained from aMTIOCGETioctl(2)call ๐
๐ Arguments ๐
None
๐ฆ Reply ๐ฆ
on success: Acount\n followed by count bytes of data ๐
# ๐ธ SEE ALSO ๐ธ
# ๐ BUGS ๐
using this utility as a general-purpose remote file access tool is discouraged ๐
# ๐ BUG REPORTS ๐
report bugs to <bug-tar@gnu.org> ๐
# ๐ HISTORY ๐
the rmt command appeared in 4.2BSD. the GNU rmt was written from scratch, using the BSD specification ๐
# ๐ฅ COPYRIGHT ๐ฅ
Copyright ยฉ 2013, 2018 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. ๐ซถ
bestie, that's the whole rmt manual, GNU TAR Manual edition, last touched March 24, 2018 โจ๐๐ฆ slay forever ๐ ๐
๐ฆ where this page comes from
- debian trixie: tar 1.35+dfsg-3.1 ยท GPL-3.0-or-later
- ubuntu noble: tar 1.35+dfsg-3build1 ยท GPL-3.0-or-later
- ubuntu noble: tar 1.35+dfsg-3ubuntu0.4 ยท GPL-3.0-or-later
- ubuntu questing: tar 1.35+dfsg-3.1build1 ยท GPL-3.0-or-later
- ubuntu resolute: tar 1.35+dfsg-4 ยท GPL-3.0-or-later
- ubuntu resolute: tar 1.35+dfsg-4ubuntu0.4 ยท GPL-3.0-or-later
- ubuntu stonking: tar 1.35+dfsg-5ubuntu1 ยท GPL-3.0-or-later
- Copyright 2013, 2018, 2023 Free Software Foundation, Inc
- ๐ girlified by anthropic/claude-haiku-5.5 on : a language model's rewrite of the original, under its terms