MT(1) UNIX Programmer's Manual MT(1)
mt - magnetic tape manipulating program
S
\bSY
\bYN
\bNO
\bOP
\bPS
\bSI
\bIS
\bS
m
\bmt
\bt [ -
\b-f
\bf _
\bt_
\ba_
\bp_
\be_
\bn_
\ba_
\bm_
\be ] _
\bc_
\bo_
\bm_
\bm_
\ba_
\bn_
\bd [ _
\bc_
\bo_
\bu_
\bn_
\bt ]
D
\bDE
\bES
\bSC
\bCR
\bRI
\bIP
\bPT
\bTI
\bIO
\bON
\bN
_
\bM_
\bt is used to give commands to a magnetic tape drive. If a
tape name is not specified, the environment variable TAPE is
used; if TAPE does not exist, _
\bm_
\bt uses the device
/_
\bd_
\be_
\bv/_
\br_
\bm_
\bt_
\b1_
\b2. Note that _
\bt_
\ba_
\bp_
\be_
\bn_
\ba_
\bm_
\be must reference a raw (not
block) tape device. By default _
\bm_
\bt performs the requested
operation once. Operations may be performed multiple times
by specifying _
\bc_
\bo_
\bu_
\bn_
\bt.
The available commands are listed below. Only as many char-
acters as are required to uniquely identify a command need
e
\beo
\bof
\bf, w
\bwe
\beo
\bof
\bf
Write _
\bc_
\bo_
\bu_
\bn_
\bt end-of-file marks at the current position
f
\bfs
\bsf
\bf Forward space _
\bc_
\bo_
\bu_
\bn_
\bt files.
f
\bfs
\bsr
\br Forward space _
\bc_
\bo_
\bu_
\bn_
\bt records.
b
\bbs
\bsf
\bf Back space _
\bc_
\bo_
\bu_
\bn_
\bt files.
b
\bbs
\bsr
\br Back space _
\bc_
\bo_
\bu_
\bn_
\bt records.
Rewind the tape (_
\bC_
\bo_
\bu_
\bn_
\bt is ignored).
o
\bof
\bff
\bfl
\bli
\bin
\bne
\be, r
\bre
\bew
\bwo
\bof
\bff
\bfl
\bl
Rewind the tape and place the tape unit off-line (_
\bC_
\bo_
\bu_
\bn_
\bt
Print status information about the tape unit.
_
\bM_
\bt returns a 0 exit status when the operation(s) were suc-
cessful, 1 if the command was unrecognized, and 2 if an
/dev/rmt* Raw magnetic tape interface
S
\bSE
\bEE
\bE A
\bAL
\bLS
\bSO
\bO
mtio(4), dd(1), ioctl(2), environ(7)
Printed 7/9/88 May 9, 1986 1