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

📄 tp.1

📁 <B>Digital的Unix操作系统VAX 4.2源码</B>
💻 1
字号:
.\" SCCSID: @(#)tp.1	8.1	9/11/90.TH tp 1 "" "" Unsupported.SH Nametp \- manipulate tape archive.SH Syntax.B tp[ \fIkey\fR ] [ \fIname\fR... ].SH DescriptionThe.PN tpcommand saves and restores filesto and from an archive on DECtape or magnetic tape.The default archive is.PN tapx ,but any file or device may be requested throughthe use of options.Its actions are controlled by the.I key argument.  The key is a string of characters containing atmost one function letter and possibly one or more functionmodifiers.  Other arguments to the command are file ordirectory names specifying which files are to be dumped,restored, or listed.  In all cases appearance of a directory name refers to the files and (recursively) subdirectories of thatdirectory.  .PP.NTThe DECtape device is not supported in ULTRIX..NE.PPThe function portion of the key is specified by one of the following letters:.IP d 5Deletes the named files from the tape.  At least one.I nameargument must be given.  This function is not permittedon magnetic tapes..IP rThe named filesare writtenon the tape.If files with the same namesalready exist, they are replaced.``Same'' is determined by string comparison, so.PN \&./abcis not the same as .PN /usr/dmr/abcevenif .PN /usr/dmr is the current directory.If no .I nameargument is given, `\fB.\fR' is the default..IP tLists the names of the specified files.  If no.I nameargument is given, the entire contents of the tape arelisted..IP uUpdates the tape..B uis like.B r,but a file is replaced only if itsmodification date is later than the date stored on the tape..B uis the default function key if none is given..IP xExtracts the named files from the tape to the file system.The owner and mode are restored.If no .I nameargument is given, the entire contents of thetape are extracted..PPYou can use one or more of the following options in additionto the letter that selects the function desired..IP c 5A fresh dump is to be created.  The tape directoryis cleared before beginning.This option is usable only withthe.B rand.B ufunction keys.This option is assumed with magnetic tape sinceit is impossible to selectively overwritemagnetic tape..IP fUse the next argument as the name of the archive.  Anyspecial file can be used as the next argument.  Whenused with the.B rfunction key, the.B coption is implied.  That is, the directory is clearedbefore beginning..IPThis option cannot be used with the.B dor.B ufunction keys..IP iErrors reading and writing thetape are noted, but no action is taken.Normally, errors cause a return to the command level..IP mSpecifies magnetic tape as opposed to DECtape.  Thedefault tape is.PN rmt0h ,but other devices may be requested with the.B foption..IPWhen used with the.B rfunction key, the.B c option is implied.  That is, the directoryis cleared before beginning..IPThis option cannot be used with the.B dor.B ufunction keys..IP vNormally,.PN tpdoes its work silently.  This option causes itto display the name of each file it treats, precededby the function letter.  With the.B tfunction,.B vgives more information about the entries than justthe name..IP wCauses.I tpto pause before transferring each file, typethe indicative letter and the file name (as with.BR v )and await the user's response..IPResponse.B ymeans `yes', so the file is transferred.Null responsemeans `no', and the file is not transferred.IPResponse.B xmeans ``exit'';the.I tpcommand terminates immediately.With the.B xfunction key,files previously asked abouthave been extracted already.With the.BR r , .BR u ,and.B dfunction keys,no change has been made to the tape..PP.SH RestrictionsA single file with several links to it is treated like several files..PPBinary-coded control information makesmagnetic tapes written by.PN tpdifficult to carry to other machines.The.MS tar 1commandavoids this problem..SH DiagnosticsThere are several.  The least obvious one is`Phase error', which means the file changed after it was selected fordumping but before it was dumped..SH Files.TP 22\f(CW/dev/tap?\fRDECtape archive.TP\f(CW/dev/rmt?h\fR or \f(CW/dev/nmt?h\fRMagnetic tape archive.SH See Alsoar(1), tar(1)

⌨️ 快捷键说明

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