O'Reilly logo

Linux Pocket Guide, 2nd Edition by Daniel J. Barrett

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

mt — stdin  stdout  - file  -- opt  --help  --version

Synopsis

mt [-f device] command

The mt (magnetic tape) command performs simple operations on a tape drive, such as rewinding, skipping forward and backward, and retensioning. Some common operations are:

status

Show the status of the drive.

rewind

Rewind the tape.

retension

Retension the tape.

erase

Erase the tape.

offline

Take the tape drive offline.

eod

Move forward on the tape to the end of data.

For example:

$ mt -f /dev/tape rewind

You can also move through the tape, file by file or record by record, but often you’ll use a tape reading/writing program for that, such as tar or restore.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required