15.3. Tape commands
The mt utility provides magnetic tape control commands for managing tape device operations such as status checking, rewinding, and head positioning.
The following are the common mt commands:
| Command | Description |
|---|---|
|
| Displays the status of the tape device. |
|
| Erases the entire tape. |
|
| Rewinds the tape device. |
|
| Switches the tape head to the forward record. Here, n is an optional file count. If a file count is specified, tape head skips n records. |
|
| Switches the tape head to the previous record. |
|
| Switches the tape head to the end of the data. |