source: trunk/essentials/app-arch/cpio/doc/mt.1

Last change on this file was 3332, checked in by bird, 18 years ago

cpio 2.7

File size: 3.1 KB
Line 
1.TH MT 1L \" -*- nroff -*-
2.SH NAME
3mt \- control magnetic tape drive operation
4.SH SYNOPSIS
5.B mt
6[\-V] [\-f device] [\-\-file=device] [\-\-rsh-command=command] [\-\-version]
7operation [count]
8.SH DESCRIPTION
9This manual page
10documents the GNU version of
11.BR mt .
12.B mt
13performs the given
14.IR operation ,
15which must be one of the tape operations listed below, on a tape
16drive.
17.PP
18The default tape device to operate on is taken from the file
19.I /usr/include/sys/mtio.h
20when
21.B mt
22is compiled. It can be overridden by giving a device file name in
23the environment variable
24.BR TAPE
25or by a command line option (see below), which also overrides the
26environment variable.
27.PP
28The device must be either a character special file or a
29remote tape drive. To use a tape drive on another machine as the
30archive, use a filename that starts with `HOSTNAME:'. The
31hostname can be preceded by a username and an `@' to access the remote
32tape drive as that user, if you have permission to do so (typically an
33entry in that user's `~/.rhosts' file).
34.PP
35The available operations are listed below. Unique abbreviations are
36accepted. Not all operations are available on all systems, or work on
37all types of tape drives.
38Some operations optionally take a repeat count, which can be given
39after the operation name and defaults to 1.
40.IP "eof, weof"
41Write
42.I count
43EOF marks at current position.
44.IP fsf
45Forward space
46.I count
47files.
48The tape is positioned on the first block of the next file.
49.IP bsf
50Backward space
51.I count
52files.
53The tape is positioned on the first block of the next file.
54.IP fsr
55Forward space
56.I count
57records.
58.IP bsr
59Backward space
60.I count
61records.
62.IP bsfm
63Backward space
64.I count
65file marks.
66The tape is positioned on the beginning-of-the-tape side of
67the file mark.
68.IP fsfm
69Forward space
70.I count
71file marks.
72The tape is positioned on the beginning-of-the-tape side of
73the file mark.
74.IP asf
75Absolute space to file number
76.IR count .
77Equivalent to rewind followed by fsf
78.IR count .
79.IP seek
80Seek to block number
81.IR count .
82.IP eom
83Space to the end of the recorded media on the tape
84(for appending files onto tapes).
85.IP rewind
86Rewind the tape.
87.IP "offline, rewoffl"
88Rewind the tape and, if applicable, unload the tape.
89.IP status
90Print status information about the tape unit.
91.IP retension
92Rewind the tape, then wind it to the end of the reel,
93then rewind it again.
94.IP erase
95Erase the tape.
96.PP
97.B mt
98exits with a status of 0 if the operation succeeded, 1 if the
99operation or device name given was invalid, or 2 if the operation
100failed.
101.SS OPTIONS
102.TP
103.I "\-f, \-\-file=device"
104Use
105.I device
106as the file name of the tape drive to operate on.
107To use a
108tape drive on another machine, use a filename that
109starts with `HOSTNAME:'. The hostname can be preceded by a
110username and an `@' to access the remote tape drive as that user, if
111you have permission to do so (typically an entry in that user's
112`~/.rhosts' file).
113.TP
114.I "\-\-rsh-command=command"
115Notifies
116.B mt
117that it should use
118.I command
119to communicate with remote devices instead of
120.I /usr/bin/ssh
121or
122.IR /usr/bin/rsh .
123.TP
124.I "\-V, \-\-version"
125Print the version number of
126.BR mt .
Note: See TracBrowser for help on using the repository browser.