


      MT(1)                       (bsd 4.2)                       MT(1)



      NAME
           mt - magnetic tape manipulating program

      SYNTAX
           mt [ -f tapename ] command [ count ]

      DESCRIPTION
           Mt performs operations on a magnetic tape.  The tape to be
           manipulated can be specified using -f.  If it is not
           specified, mt attempts to open the tape device specified in
           the environment variable TAPE.  If TAPE is not defined,
           /dev/nrtape, /dev/rmt0, and /dev/nrct0 are tried in order.

           Tapename must be a raw (non-block) tape device.

           By default, mt performs the command once.  Count may be
           specified to perform the command multiple times.

           Only as many characters as are required to uniquely identify
           a command need be specified.  Some commands may be
           inappropriate for some tape drives.  If so, mt will report
           this fact without accessing the tape.  The possible commands
           are:

           bsf  Back space count files.  This command is not supported
                on cartridge tape drives.

           bsr  Back space count records.  This command is not
                supported on cartridge tape drives.

           eod  Forward space to the end of recorded data.  (Count is
                ignored.) This command is only supported on cartridge
                tape drives.

           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.

           hispeed
                set tape drive operation to high speed for this
                invocation of mt only.  This command is not supported
                on cartridge tape drives.

           lowspeed
                set tape drive operation to low speed for this
                invocation of mt only.  This command is not supported
                on cartridge tape drives.




      Page 1                                          (73 A2 02MT REV1)






      MT(1)                       (bsd 4.2)                       MT(1)



           offline, rewoffl
                Rewind the tape and place the tape unit off-line (Count
                is ignored.) This command is not supported on cartridge
                tape drives.

           retension
                Forward space to the end of tape and then rewind.
                (Count is ignored.) This command is only supported on
                cartridge tape drives.

           rewind
                Rewind the tape (Count is ignored.)

           status
                Print status information about the tape unit.

           Mt returns a 0 exit status when the operation(s) were
           successful, 1 if the command was unrecognized or
           inappropriate, and 2 if an operation failed.




































      Page 2                                          (73 A2 02MT REV1)






      MT(1)                       (bsd 4.2)                       MT(1)



      FILES
           /dev/nrct*     Cartridge tape interface
           /dev/nrtape    Default no-rewind, raw tape interface
           /dev/rmt* Raw half inch tape interface

      SEE ALSO
           dd(1), ioctl(2), ct(7), mt(7)
















































      Page 3                                          (73 A2 02MT REV1)



