SCCS-vsn: usr.bin/mt/mt.1 6.7
SCCS-vsn: usr.bin/printenv/printenv.1 6.7
.\" 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.
.\"
-.\" %sccs.include.redist.man%
-.\" @(#)mt.1 6.6 (Berkeley) %G%
+.\" %sccs.include.redist.roff%
+.\"
+.\" @(#)mt.1 6.7 (Berkeley) %G%
.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.
+.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.
Forward space
.Ar count
files.
Forward space
.Ar count
files.
Forward space
.Ar count
records.
Forward space
.Ar count
records.
Back space
.Ar count
files.
Back space
.Ar count
files.
Back space
.Ar count
records.
Back space
.Ar count
records.
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).
Print status information about the tape unit.
Print status information about the tape unit.
+.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,
.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 .
+.Bl -tag -width Fl
+.It Ev TAPE
.Nm Mt
checks the
.Ev TAPE
.Nm Mt
checks the
.Ev TAPE
.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
.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
.\"
.\" This code is derived from software contributed to Berkeley by
.\" the Institute of Electrical and Electronics Engineers, Inc.
.\"
.\" This code is derived from software contributed to Berkeley by
.\" the Institute of Electrical and Electronics Engineers, Inc.
+.\" %sccs.include.redist.roff%
-.\" %sccs.include.redist.man%
+.\" @(#)printenv.1 6.7 (Berkeley) %G%
-.\" @(#)printenv.1 6.6 (Berkeley) %G%
-.\"
-.Vx
.Sh NAME
.Nm printenv , env
.Nd print out the environment, set and print environment
.Sh NAME
.Nm printenv , env
.Nd print out the environment, set and print environment
.Op Ar name
.Nm env
.Op Fl
.Op Ar name
.Nm env
.Op Fl
.Op Ar command
.Sh DESCRIPTION
.Nm Printenv
.Op Ar command
.Sh DESCRIPTION
.Nm Printenv
.Xr execvp 3 ,
.Xr environ 7
.Sh HISTORY
.Xr execvp 3 ,
.Xr environ 7
.Sh HISTORY
-.Nm Printenv
-appeared in 3 BSD.
+The
+.Nm printenv
+command appeared in
+.Bx 3.0 .
.Sh BUGS
.Nm Env
doesn't handle commands with equal (``='') signs in their
.Sh BUGS
.Nm Env
doesn't handle commands with equal (``='') signs in their