Commit | Line | Data |
---|---|---|
47c9fc73 C |
1 | MT(1) UNIX Reference Manual MT(1) |
2 | ||
3 | N\bNA\bAM\bME\bE | |
4 | m\bmt\bt - magnetic tape manipulating program | |
5 | ||
6 | S\bSY\bYN\bNO\bOP\bPS\bSI\bIS\bS | |
7 | m\bmt\bt [-\b-f\bf _\bt_\ba_\bp_\be_\bn_\ba_\bm_\be] _\bc_\bo_\bm_\bm_\ba_\bn_\bd [_\bc_\bo_\bu_\bn_\bt] | |
8 | ||
9 | D\bDE\bES\bSC\bCR\bRI\bIP\bPT\bTI\bIO\bON\bN | |
10 | M\bMt\bt is used to give commands to a magnetic tape drive. If a tape name is | |
11 | not specified, the environment variable TAPE is used; if TAPE does not | |
12 | exist, m\bmt\bt uses the device /_\bd_\be_\bv/_\br_\bm_\bt_\b1_\b2. Note that _\bt_\ba_\bp_\be_\bn_\ba_\bm_\be must reference | |
13 | a raw (not block) tape device. By default m\bmt\bt performs the requested | |
14 | operation once. Operations may be performed multiple times by specifying | |
15 | _\bc_\bo_\bu_\bn_\bt. | |
16 | ||
17 | The available commands are listed below. Only as many characters as are | |
18 | required to uniquely identify a command need be specified. | |
19 | ||
20 | e\beo\bof\bf, w\bwe\beo\bof\bf | |
21 | Write _\bc_\bo_\bu_\bn_\bt end-of-file marks at the current position on the | |
22 | tape. | |
23 | ||
24 | f\bfs\bsf\bf Forward space _\bc_\bo_\bu_\bn_\bt files. | |
25 | ||
26 | f\bfs\bsr\br Forward space _\bc_\bo_\bu_\bn_\bt records. | |
27 | ||
28 | b\bbs\bsf\bf Back space _\bc_\bo_\bu_\bn_\bt files. | |
29 | ||
30 | b\bbs\bsr\br Back space _\bc_\bo_\bu_\bn_\bt records. | |
31 | ||
32 | r\bre\bew\bwi\bin\bnd\bd Rewind the tape (Count is ignored). | |
33 | ||
34 | o\bof\bff\bfl\bli\bin\bne\be, r\bre\bew\bwo\bof\bff\bfl\bl | |
35 | Rewind the tape and place the tape unit off-line (Count is ig- | |
36 | nored). | |
37 | ||
38 | s\bst\bta\bat\btu\bus\bs Print status information about the tape unit. | |
39 | ||
40 | M\bMt\bt returns a 0 exit status when the operation(s) were successful, 1 if | |
41 | the command was unrecognized, and 2 if an operation failed. | |
42 | ||
43 | E\bEN\bNV\bVI\bIR\bRO\bON\bNM\bME\bEN\bNT\bT | |
44 | If the following environment variable exists, it is utilized by m\bmt\bt. | |
45 | ||
46 | TAPE M\bMt\bt checks the TAPE environment variable if the argument | |
47 | _\bt_\ba_\bp_\be_\bn_\ba_\bm_\be is not given. | |
48 | ||
49 | F\bFI\bIL\bLE\bES\bS | |
50 | /_\bd_\be_\bv/_\br_\bm_\bt* Raw magnetic tape interface | |
51 | ||
52 | ||
53 | S\bSE\bEE\bE A\bAL\bLS\bSO\bO | |
54 | dd(1), ioctl(2), environ(7) | |
55 | ||
56 | H\bHI\bIS\bST\bTO\bOR\bRY\bY | |
57 | M\bMt\bt appeared in 4.3 BSD. |