mt
This manual page documents the tape control program mt. mt performs the given operation, which must be one of the tape operations listed below, on a tape drive.[1]
Documentation
- man 1 'mt' [EN]
Syntax
mt [PARAMETER ...] SUBCOMMAND [COUNT] [ARGUMENT ...]
Subcommands & Parameters
- -f PATH, -t PATH
- The PATH of the tape device on which to operate can be given with the -f or -t option. If neither of those options is given, and the environment variable TAPE is set, it is used.
- bsf
- Backward space count files. The tape is positioned on the last block of the previous file.
- eof, weof
- Write count EOF marks at current position.
- erase
- Erase the tape.
- fsf
- Forward space count files. The tape is positioned on the first block of the next file.
- offline, rewoffl, eject
- Rewind the tape and, if applicable, unload the tape.
- rewind
- Rewind the tape.
- status
- Print status information about the tape unit.
Examples
- Rewind a tape
mt -f '/dev/st0' rewind
- Forward three files
mt -f '/dev/st0' fsf 3
References
- ↑ man 1 'mt'