⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mt.1

📁 <B>Digital的Unix操作系统VAX 4.2源码</B>
💻 1
字号:
.\" SCCSID: @(#)mt.1	3.2	5/11/88.TH mt 1.SH Namemt \- magnetic tape manipulating program.SH Syntax.B mt[\fB\-f\fI tapename\fR\|] \fIcommand\fR [\|\fIcount\fR\|].SH Description.NXR "mt program".NXR "magnetic tape" "manipulating"The.PN mtcommandpermits the operation of a magnetic tape drive..SH OptionsThe \fB\-f\fR flag option uses the specified tape device (next argument) inplace of either that tape device defined by your TAPEenvironment variable (.login or .profile) or /dev/nrmt0h..PPSome operationsmay be performed multiple times by specifying.IR count .By default,.PN mtperforms the requested operation once..PPThe \fIcommand\fR argument defines the operation to be performed.Only as many characters as are required to uniquely identifya command need be specified.  .PPThe following is a list of commands:.NXR "mt program" "command list".IP \fBbsf\fR 20.NXR "bsf command (mt)"Backspace \fIcount\fR files..IP \fBbsr\fR.NXR "bsr command (mt)"Backspace \fIcount\fR records..IP \fBcache\fR.NXR "cache command (mt)"Allows .PN mtto use the cache buffer on a tape drive that has the cachebuffer feature..IP \fBclhrdsf\fR.NXR "clhrdsf command (mt)"Clear hardware/software problem.  Works with tape drives which use the TMSCP tape controller interface.MS tms 4 .This command is restricted to root access only..IP \fBclserex\fR.NXR "clserex command (mt)"Clear serious exception.  Works with tape drives which use the TMSCP tape controller interface.MS tms 4 ..IP \fBclsub\fR.NXR "clsub command (mt)"Clear subsystem.  Works with tape drives which use the TMSCP tapecontroller interface.MS tms 4 .This command is restricted to root access only..IP "\fBeof, weof\fR".NXR "eof command (mt)".NXR "weof command (mt)"Write \fIcount\fR end-of-file marks at the current position onthe tape..IP \fBeotdis\fR.NXR "eotdis command (mt)"Disable end-of-tape detection.  When the end of tapeis reached, the tape will run off the reel.  Only the superuser can issue this command.  The command remains in effect for the device until end-of-tape detection is enabledwith the \fBeoten\fR command..IP \fBeoten\fR.NXR "eoten command (mt)"Enable end-of-tape detection.  When the end-of-tapemarkers are reached, the tape is halted on the reel,between the two end-of-tape markers.Only the superuser can issue this command.  The command remainsin effect for the device until end-of-tape detection is disabledwith the \fBeotdis\fR command.This is the default mode after a system boot..IP \fBfsf\fR.NXR "fsf command (mt)"Forward-space \fIcount\fR files..IP \fBfsr\fR.NXR "fsr command (mt)"Forward-space \fIcount\fR records..IP \fBnocache\fR.NXR "nocache command (mt)"Disables the use of the cache buffer for any tape drive that has the cache buffer feature..IP "\fBoffline, rewoffl\fR".NXR "offline command (mt)".NXR "rewolffl command (mt)"Rewind the tape and place the tape unit off-line..IP \fBretension\fR.NXR "retension command (mt)"Retensions the tape.  Retension means moving the tape one completepass between EOT and BOT..IP \fBrewind\fR.NXR "rewind command (mt)"Rewind the tape..IP \fBstatus\fR.NXR "status command (mt)"Print status information about the tape unit..SH Examples.NXR(e) "mt program" This example shows how to rewind the tape .PN rmt0l :.EXmt \-f /dev/rmt0l rewind.EEThis example shows how to backspace the tape nmt1h three files:.EXmt \-f /dev/nrmt1h bsf 3.EEThis example shows how to write two end-of-file marks at thecurrent position on tape nmt6h:.EXmt \-f /dev/nrmt6h eof 2.EE.SH Return ValuesIn shell scripts,.PN mtreturns a 0 exit status when the operation(s) were successful,1 if the command was unrecognized, and 2 if an operation failed..SH Files.IP "/dev/rmt?h or /dev/rmt?l" 1iRaw magnetic tape interface with rewind when closed.IP "/dev/nmt?h or /dev/nmt?l" 1iRaw magnetic tape interface with no rewind when closed.SH See Alsodd(1), tar(1), ioctl(2), mtio(4), tms(4), environ(7)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -