{
    "mode": "man",
    "parameter": "rmt-tar",
    "section": "8",
    "url": "https://www.chedong.com/phpMan.php/man/rmt-tar/8/json",
    "generated": "2026-05-30T07:10:18Z",
    "synopsis": "",
    "sections": {
        "NAME": {
            "content": "rmt - remote magnetic tape server\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "",
            "subsections": [
                {
                    "name": "rmt",
                    "content": ""
                }
            ]
        },
        "DESCRIPTION": {
            "content": "Rmt provides remote access to files and devices for tar(1), cpio(1), and similar backup util‐\nities.  It is normally called by running rsh(1) or ssh(1) to the remote  machine,  optionally\nusing a different login name if one is supplied.\n\nThe calling program communicates with rmt by sending requests on its standard input and read‐\ning replies from the standard output.  A request consists of a request letter followed by  an\nargument  (if required) and a newline character.  Additional data, if any, are sent after the\nnewline.  On success, rmt returns\n\nAnumber\\n\n\nwhere number is an ASCII representation of a decimal return code.  Additional  data  are  re‐\nturned after this line.  On error, the following response is returned:\n\nEerrno\\nerror-message\\n\n\nwhere  errno is one of the system error codes, as described in errno(3), and error-message is\na one-line human-readable description of the error, as printed by perror(3).\n\nAvailable commands and possible responses are discussed in detail in the subsequent section.\n",
            "subsections": []
        },
        "COMMANDS": {
            "content": "Odevice\\nflags\\n\nOpens the device with given flags. If a device had already been opened, it  is  closed\nbefore opening the new one.\n\nArguments\n\ndevice The name of the device to open.\n\nflags  Flags  for  open(2):  a  decimal number, or any valid O* constant from fcntl.h\n(the initial O may be omitted), or a bitwise or (using |)  of  any  number  of\nthese, e.g.:\n576\n64|512\nCREAT|TRUNC\nIn  addition,  a combined form is also allowed, i.e. a decimal mode followed by\nits symbolic representation.  In this case the symbolic representation is given\npreference.\n\nReply\nA0\\n on success.\n\nExtensions\nBSD version allows only decimal number as flags.\n\nC[device]\\n\nClose the currently open device.\n\nArguments\nAny arguments are silently ignored.\n\nReply\nA0\\n on success.\n\nLwhence\\noffset\\n\nPerforms an lseek(2) on the currently open device with the specified parameters.\n\nArguments\n\nwhence Where to measure offset from. Valid values are:\n\n0, SET, SEEKSET   seek from the file beginning\n1, CUR, SEEKCUR   seek from the current location\n2, END, SEEKEND   seek from the file end\n\nReply\nAoffset\\n on success. The offset is the new offset in file.\n\nExtensions\nBSD version allows only 0,1,2 as whence.\n\nRcount\\n\nRead count bytes of data from the current device.\n\nArguments\n\ncount  number of bytes to read.\n\nReply\nOn success:\n\nArdcount\\n\n\nfollowed by rdcount bytes of data read from the device.\n\nWcount\\n\nWrites  data onto the current device.  The command is followed by count bytes of input\ndata.\n\nArguments\n\ncount  Number of bytes to write.\n\nReply\nOn success: Awrcount\\n, where wrcount is the number of bytes actually written.\n\nIopcode\\ncount\\n\nPerform a MTIOCOP ioctl(2) command with the specified paramedters.\n\nArguments\n\nopcode MTIOCOP operation code.\n\ncount  mtcount.\n\nReply\nOn success: A0\\n.\n\nS\\n    Returns the status of the currently open device, as obtained from a MTIOCGET  ioctl(2)\ncall.\n\nArguments\nNone\n\nReply\nOn success: Acount\\n followed by count bytes of data.\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "tar(1).\n",
            "subsections": []
        },
        "BUGS": {
            "content": "Using this utility as a general-purpose remote file access tool is discouraged.\n",
            "subsections": []
        },
        "BUG REPORTS": {
            "content": "Report bugs to <bug-tar@gnu.org>.\n",
            "subsections": []
        },
        "HISTORY": {
            "content": "The rmt command appeared in 4.2BSD.  The GNU rmt is written from scratch, using the BSD spec‐\nification.\n",
            "subsections": []
        },
        "COPYRIGHT": {
            "content": "Copyright © 2013, 2018 Free Software Foundation, Inc.\nLicense GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\nThis is free software: you are free to change and redistribute it.  There is NO WARRANTY,  to\nthe extent permitted by law.\n\n\n\nRMT                                        March 24, 2018                                     RMT(8)",
            "subsections": []
        }
    },
    "summary": "rmt - remote magnetic tape server",
    "flags": [],
    "examples": [],
    "see_also": [
        {
            "name": "tar",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/tar/1/json"
        }
    ]
}