BSD 4_3_Net_2 release
[unix-history] / usr / src / usr.bin / mt / mt.1
index 962d4fc..a933efc 100644 (file)
@@ -1,24 +1,38 @@
 .\" Copyright (c) 1981, 1990 The Regents of the University of California.
 .\" All rights reserved.
 .\"
 .\" Copyright (c) 1981, 1990 The Regents of the University of California.
 .\" All rights reserved.
 .\"
-.\" Redistribution and use in source and binary forms are permitted provided
-.\" that: (1) source distributions retain this entire copyright notice and
-.\" comment, and (2) distributions including binaries display the following
-.\" acknowledgement:  ``This product includes software developed by the
-.\" University of California, Berkeley and its contributors'' in the
-.\" documentation or other materials provided with the distribution and in
-.\" all advertising materials mentioning features or use of this software.
-.\" Neither the name of the University nor the names of its contributors may
-.\" be used to endorse or promote products derived from this software without
-.\" specific prior written permission.
-.\" THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
-.\" WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
-.\" MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
 .\"
 .\"
-.\"     @(#)mt.1       6.5 (Berkeley) 7/24/90
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\"    notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\"    notice, this list of conditions and the following disclaimer in the
+.\"    documentation and/or other materials provided with the distribution.
+.\" 3. All advertising materials mentioning features or use of this software
+.\"    must display the following acknowledgement:
+.\"    This product includes software developed by the University of
+.\"    California, Berkeley and its contributors.
+.\" 4. Neither the name of the University nor the names of its contributors
+.\"    may be used to endorse or promote products derived from this software
+.\"    without specific prior written permission.
 .\"
 .\"
-.Dd July 24, 1990
-.Os BSD 4.4
+.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
+.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
+.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+.\" SUCH DAMAGE.
+.\"
+.\"    @(#)mt.1        6.7 (Berkeley) 7/28/91
+.\"
+.Dd July 28, 1991
 .Dt MT 1
 .Os BSD 4
 .Sh NAME
 .Dt MT 1
 .Os BSD 4
 .Sh NAME
 .Sh DESCRIPTION
 .Nm Mt
 is used to give commands to a magnetic tape drive.
 .Sh DESCRIPTION
 .Nm Mt
 is used to give commands to a magnetic tape drive.
-If a tape name is not specified, the environment variable
-.Ev TAPE
-is used;  if
-.Ev TAPE
-does not exist,
-.Nm mt
-uses the device
-.Pa /dev/rmt12 .
-Note
-that
-.Ar tapename
-must reference a raw (not block) tape device.
 By default
 .Nm mt
 performs the requested operation once.  Operations
 may be performed multiple times by specifying
 .Ar count  .
 By default
 .Nm mt
 performs the requested operation once.  Operations
 may be performed multiple times by specifying
 .Ar count  .
+Note
+that
+.Ar tapename
+must reference a raw (not block) tape device.
 .Pp
 The available commands are listed below.  Only as many
 characters as are required to uniquely identify a command
 need be specified.
 .Pp
 The available commands are listed below.  Only as many
 characters as are required to uniquely identify a command
 need be specified.
-.Tp Cm eof , weof
+.Bl -tag -width "eof, weof"
+.It Cm eof , weof
 Write
 .Ar count
 end-of-file marks at the current position on the tape.
 Write
 .Ar count
 end-of-file marks at the current position on the tape.
-.Tp Cm fsf
+.It Cm fsf
 Forward space
 .Ar count
 files.
 Forward space
 .Ar count
 files.
-.Tp Cm fsr
+.It Cm fsr
 Forward space
 .Ar count
 records.
 Forward space
 .Ar count
 records.
-.Tp Cm bsf
+.It Cm bsf
 Back space
 .Ar count
 files.
 Back space
 .Ar count
 files.
-.Tp Cm bsr
+.It Cm bsr
 Back space
 .Ar count
 records.
 Back space
 .Ar count
 records.
-.Tp Cm rewind
+.It Cm rewind
 Rewind the tape
 (Count is ignored).
 Rewind the tape
 (Count is ignored).
-.Tp Cm offline , rewoffl
+.It Cm offline , rewoffl
 Rewind the tape and place the tape unit off-line
 (Count is ignored).
 Rewind the tape and place the tape unit off-line
 (Count is ignored).
-.Tp Cm status
+.It Cm status
 Print status information about the tape unit.
 Print status information about the tape unit.
-.Tp
+.El
+.Pp
+If a tape name is not specified, and the environment variable
+.Ev TAPE
+does not exist;
+.Nm mt
+uses the device
+.Pa /dev/rmt12 .
 .Pp
 .Nm Mt
 returns a 0 exit status when the operation(s) were successful,
 .Pp
 .Nm Mt
 returns a 0 exit status when the operation(s) were successful,
@@ -89,8 +103,8 @@ returns a 0 exit status when the operation(s) were successful,
 .Sh ENVIRONMENT
 If the following environment variable exists, it is utilized by
 .Nm mt .
 .Sh ENVIRONMENT
 If the following environment variable exists, it is utilized by
 .Nm mt .
-.Tw Fl
-.Tp Ev TAPE
+.Bl -tag -width Fl
+.It Ev TAPE
 .Nm Mt
 checks the
 .Ev TAPE
 .Nm Mt
 checks the
 .Ev TAPE
@@ -99,17 +113,18 @@ argument
 .Ar tapename
 is not given.
 .Sh FILES
 .Ar tapename
 is not given.
 .Sh FILES
-.Dw /dev/rmt*
-.Di L
-.Dp Pa /dev/rmt*
+.Bl -tag -width /dev/rmt* -compact
+.It Pa /dev/rmt*
 Raw magnetic tape interface
 Raw magnetic tape interface
-.Dp
+.El
 .Sh SEE ALSO
 .\".Xr mtio 4 ,
 .Xr dd 1 ,
 .Xr ioctl 2 ,
 .Xr environ 7
 .Sh HISTORY
 .Sh SEE ALSO
 .\".Xr mtio 4 ,
 .Xr dd 1 ,
 .Xr ioctl 2 ,
 .Xr environ 7
 .Sh HISTORY
-.Nm Mt
-appeared in 4.3 BSD.
+The
+.Nm mt
+command appeared in
+.Bx 4.3 .
 .\" mt.1: mtio(4) missing
 .\" mt.1: mtio(4) missing