mt(1) mt(1)NAME mt - magnetic tape manipulating program SYNOPSIS mt [-fdevice-file] command [count] DESCRIPTION mt is used to give commands to a magnetic tape drive. If device-file is not specified using the -f flag option, the environment variable TAPE is used; if TAPE does not exist, mt uses the device /dev/rmt12. Note that special-file must reference a raw (not block) tape device. By default, mt performs command once. command may be performed more than once by supplying a count. command may be any one of the following set of commands. Only as many characters as are required to uniquely identify a command within the set need be specified. eof, weof Write count end-of-file marks at the current posi- tion on the tape. fsf Forward space count files. fsr Forward space count records. bsf Backspace count files. bsr Backspace count records. rewind Rewind the tape (count is ignored). offline, rewoffl Rewind the tape and place the tape unit off-line (count is ignored). format Format a tape cartridge (count is ignored). This only applies to /dev/rmt/tcx[n] device files that represent the Apple SC 40 Tape Backup. status Print status information about the tape unit. mt returns a 0 exit status when count invocations of command are successful, 1 if command was unrecognized, and 2 if any invocation of command failed. FILES /dev/rmt/* SEE ALSO mtio(4), dd(1), ioctl(2), environ(7). April, 1990 1