Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ mt(1) — Duplix 4.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

mtio(4)

dd(1)

ioctlT(2)

environ(7)

MT(1)  —  Unix Programmer’s Manual

NAME

mt − magnetic tape manipulating program

SYNOPSIS

mt [ −f tapename ] command [ count ]

DESCRIPTION

Mt lets you give commands to a magnetic tape drive.  If you do not specify a tapename, mt uses the environment variable TAPE.  If TAPE does not exist, mt uses the device /dev/rmt12 .  Note that tapename must refer to a raw (not block) tape device. 

By default mt performs the requested operation once.  To perform an operation multiple times, specify count.

The available commands are listed below.  You need to specify only as many characters as are required to uniquely identify a command. 

eof, weof
Write count end-of-file marks at the current position on the tape. 

fsf Forward space count files. 

fsr Forward space count records. 

bsf Back space count files. 

bsr Back space count records. 

rewind
Rewind the tape (Count is ignored). 

offline, rewoffl
Rewind the tape and place the tape unit off-line (Count is ignored). 

status
Print status information about the tape unit.

Mt returns a 0 exit status if the operations were successful, 1 if a command was unrecognized, or 2 if an operation failed. 

FILES

/dev/rmt∗Raw magnetic tape interface

SEE ALSO

mtio(4), dd(1), ioctlT(2), environ(7)

4th Berkeley Distribution  —  May 9, 1986

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026