3 mt \- magnetic tape control
11 is a user interface to the magnetic tape commands described in
13 It allows one to space a tape forwards or backwards, write end of file
18 option a tape device can be named, otherwise the environment variable
20 is used if set. Standard input is used if the tape name is a dash (\-). The
22 argument is used to tell how many blocks or files to space or how many file
23 markers to write. It may be a C-style decimal, octal or hexadecimal constant,
27 is the action to perform, it may be one of the following, or any
28 unambiguous prefix (like
46 records. (The size of a record depends on the tape, and may even be
47 variable, depending on the size of the writes.)
52 files. The count may be zero to backspace to the start of the current file.
53 (A tape device need not support backwards movement, or may be very slow
54 doing it. Rewinding and forward spacing may be better.)
59 records. The tape is positioned after the last block of the previous file
60 if you hit a filemark when spacing backwards. The block count is set to -1
61 to indicate that the driver has no idea where it is on the previous file.
64 Forward space to the end of media.
70 Rewind and take offline. This may cause some drives to eject the tape.
73 Shows the status of the drive, the sense key of the last SCSI error,
74 current file number, current record number, residual count if the last
75 command that encountered end-of-file, and the current block size.
78 Removes tape tension by winding and rewinding the tape completely.
81 Erases the tape completely and rewinds it.
84 Sets the density code to read or write the tape to
86 Density codes supported depend on the drive. This command need not be
87 used if the drive senses the proper density on read and can only write
91 Sets the block size used to read or write the tape to
93 This command may be used to select a fixed block size for a variable block
94 size tape. This will speed up I/O for small block sizes. Use a zero
96 to use variable sized blocks again.
100 Tape drive to use if set.
109 Kees J. Bot (kjb@cs.vu.nl)