MT(1)

๐Ÿ“ฆ
version 2.15 ยท 2 versions
, in debian trixie, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

๐ŸŽ€ 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 a rewind followed by fsf count ๐Ÿ‘‘
  • 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 with HOSTNAME:. 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 ~/.rhosts file) ๐ŸŒธ
  • --rsh-command=command โ€” tells mt to use command to talk to remote devices instead of /usr/bin/ssh or /usr/bin/rsh ๐Ÿซถ
  • -V, --version โ€” print the version number of mt โœจ

๐Ÿšจ BUG REPORTS ๐Ÿšจ

found a bug? report it to <bug-cpio@gnu.org> ๐Ÿ’Œ

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 ๐ŸŽ€โœจ