MT(1)
πΈ NAME πΈ
mt β control magnetic tape drive operation
periodt. That's the name, bestie. Now let's get into it.
β¨ SYNOPSIS β¨
mt [-V] [-f device] [--file=device] [--rsh-command=command] [--version]
operation [count]
π DESCRIPTION π
okay so this manual page documents the GNU version of mt. mt performs the given operation, which must be one of the tape operations listed below, on a tape drive. no cap.
The default tape device to operate on is taken from the file /usr/include/sys/mtio.h when mt is compiled. but wait, there's more β it can be overridden by giving a device file name in the environment variable TAPE or by a command line option (see below), which also overrides the environment variable. slay.
The device must be either a character special file or a remote tape drive. To use a tape drive on another machine as the archive, use a filename that starts with HOSTNAME:. The hostname can be preceded by a username and an @ to access the remote tape drive as that user, if you have permission to do so (typically an entry in that user's ~/.rhosts file). iykyk.
The available operations are listed below. Unique abbreviations are accepted. Not all operations are available on all systems, or work on all types of tape drives. Some operations optionally take a repeat count, which can be given after the operation name and defaults to 1. got it? good.
eof,weofβ Write count EOF marks at current position. bye bye data? no, just marks.fsfβ Forward space count files. The tape is positioned on the first block of the next file. move it move it.bsfβ Backward space count files. The tape is positioned on the first block of the next file. back it up.fsrβ Forward space count records.bsrβ Backward space count records.bsfmβ Backward space count file marks. The tape is positioned on the beginning-of-the-tape side of the file mark.fsfmβ Forward space count file marks. The tape is positioned on the beginning-of-the-tape side of the file mark.asfβ Absolute space to file number count. Equivalent torewindfollowed byfsfcount.seekβ Seek to block number count.eomβ Space to the end of the recorded media on the tape (for appending files onto tapes). for when you wanna add more.rewindβ Rewind the tape. rewind, bestie!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. a whole journey.eraseβ Erase the tape. danger, but okay.
mt exits with a status of 0 if the operation succeeded, 1 if the operation or device name given was invalid, or 2 if the operation failed.
π OPTIONS π
-f,--file=deviceβ Use device as the file name of the tape drive to operate on. To use a tape drive on another machine, use a filename that starts withHOSTNAME:. The hostname can be preceded by a username and an@to access the remote tape drive as that user, if you have permission to do so (typically an entry in that user's~/.rhostsfile). remote tape realness.--rsh-command=commandβ Notifiesmtthat it should use command to communicate with remote devices instead of/usr/bin/sshor/usr/bin/rsh. ssh but make it custom.-V,--versionβ Print the version number ofmt. version check, slay.
π¦ BUG REPORTS π¦
Report bugs to <bug-cpio@gnu.org>. they wanna know.
π 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.
fr fr, no warranty.
π that's the tea, bestie! this page came from GNU CPIO, dated January 28, 2014. now go rewind that tape and slay. π β¨
π¦ where this page comes from
- opensuse-leap 16.0: cpio-mt 2.15-160000.3.1 Β· GPL-3.0-only
- opensuse-leap 16.0: cpio-mt 2.15-160000.3.1 Β· GPL-3.0-only
- opensuse-leap 16.0: cpio-mt 2.15-160000.3.1 Β· GPL-3.0-only
- opensuse-leap 16.0: cpio-mt 2.15-160000.3.1 Β· GPL-3.0-only
- Copyright 2014-2024 Free Software Foundation, Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms