You can control tape drives using the mt command. You can use the command to move and position the tape.
You can use the mt command to perform any of the following tasks:
The syntax of the mt command is as follows:
| Variables | Description |
|---|---|
| -f and -t | Indicate that the next parameter is a device. These options are interchangeable. |
| device | Is a tape device. |
| command | Is a command that controls the tape drives. |
| count | Specifies the number of times to execute a command that supports multiple operations. |
The command can be any one of the following.
| Command | Task |
|---|---|
| eom | Position the tape to the end of the data or the end of the medium if the tape is full. |
| fsf | Move the tape forward, skipping a specified number of files. |
| bsf | Move the tape backward, skipping a specified number of files. |
| rewind | Rewind the tape. |
| offline | Rewind the tape and unload the tape medium, if possible. |
| status | Display information about a device and the drive associated with it. |