MT(1)
๐ NAME ๐
okay bestie, this is the mt manual ๐ and it's all about controlling magnetic tape drive operation ๐ผโจ
mt - control magnetic tape drive operation
๐ง SYNOPSIS ๐ง
mt [-V] [-f device] [--file=device] [--rsh-command=command] [--version]
operation [count]
๐ DESCRIPTION ๐
okay so this page documents the GNU version of mt ๐ซถ mt runs the given operation on a tape drive. The operation has to be one of the tape operations listed below, and no cap, it's giving main character energy ๐
The default tape device comes from the file /usr/include/sys/mtio.h when mt gets compiled ๐ฆ You can override it by setting the environment variable TAPE to a device file name, or by using a command line option (see below). The command line option beats the environment variable too, so it always wins ๐
The device has to be either a character special file or a remote tape drive. Want to use a tape drive on another machine as your archive? Use a filename that starts with HOSTNAME: ๐ธ You can put a username and an @ in front of the hostname to access the remote tape drive as that user, as long as you have permission (usually that's an entry in that user's ~/.rhosts file) ๐
The available operations are listed below. Unique abbreviations are accepted, so you don't have to type the whole thing ๐ Not every operation works on every system or on every type of tape drive, so ngl, check your vibe first ๐ Some operations can take a repeat count, which goes after the operation name and defaults to 1 โจ
eof,weofโ write count EOF marks at the current position ๐fsfโ forward space count files. The tape gets positioned on the first block of the next file ๐ฆbsfโ backward space count files. The tape gets positioned on the first block of the next file ๐ฆfsrโ forward space count records ๐ซถbsrโ backward space count records ๐ซถbsfmโ backward space count file marks. The tape gets positioned on the beginning-of-the-tape side of the file mark ๐งfsfmโ forward space count file marks. The tape gets positioned on the beginning-of-the-tape side of the file mark ๐งasfโ absolute space to file number count. It's the same as arewindfollowed byfsfcount ๐seekโ seek to block number count ๐ฏeomโ space to the end of the recorded media on the tape (for appending files onto tapes) ๐rewindโ rewind the tape ๐offline,rewofflโ rewind the tape and, if applicable, unload the tape ๐คstatusโ print status information about the tape unit ๐retensionโ rewind the tape, then wind it to the end of the reel, then rewind it again ๐eraseโ perform a long erase of the tape. If count is 0, it does a short erase instead (some devices don't support this, so be warned ๐) ๐
mt exits with a status of 0 if the operation succeeded, 1 if the operation or device name you gave was invalid, or 2 if the operation failed ๐ฅ
๐ฆ OPTIONS ๐ฆ
-f,--file=deviceโ use device as the file name of the tape drive you want to operate on ๐ To use a tape drive on another machine, use a filename that starts withHOSTNAME:. You can put a username and an@before the hostname to access the remote tape drive as that user, if you have permission (typically an entry in that user's~/.rhostsfile) ๐ธ--rsh-command=commandโ tellsmtto use command to talk to remote devices instead of/usr/bin/sshor/usr/bin/rsh๐ซถ-V,--versionโ print the version number ofmtโจ
๐จ BUG REPORTS ๐จ
found a bug? report it to <bug-cpio@gnu.org> ๐
๐ COPYRIGHT ๐
Copyright ยฉ 2014 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 ๐ซถ
that's the whole manual, bestie ๐ it's GNU cpio, dated January 28, 2014, and it's officially iconic ๐โจ
๐ฆ where this page comes from
- debian trixie: cpio 2.15+dfsg-2 ยท GPL-3.0-or-later
- ubuntu noble: cpio 2.15+dfsg-1ubuntu2 ยท GPL-3.0-or-later
- ubuntu noble: cpio 2.15+dfsg-1ubuntu2.1 ยท GPL-3.0-or-later
- ubuntu questing: cpio 2.15+dfsg-2ubuntu1 ยท GPL-3.0-or-later
- ubuntu resolute: cpio 2.15+dfsg-2.1 ยท GPL-3.0-or-later
- ubuntu resolute: cpio 2.15+dfsg-2.1ubuntu0.1 ยท GPL-3.0-or-later
- ubuntu stonking: cpio 2.15+dfsg-2.1ubuntu1 ยท GPL-3.0-or-later
- Copyright 2014-2024 Free Software Foundation, Inc
- ๐ girlified by anthropic/claude-haiku-5.5 on : a language model's rewrite of the original, under its terms