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

📄 tar.1

📁 这是一个同样来自贝尔实验室的和UNIX有着渊源的操作系统, 其简洁的设计和实现易于我们学习和理解
💻 1
字号:
.\" $Id: tar.1,v 1.2 89/02/12 10:08:55 mark Exp $.TH TAR 1 "USENIX Association" "".SH NAMEtar \- process tape archives.SH SYNOPSIS.B tar.BR \-c [ bfvw ].I device.I block.I filename....br.B tar.BR \-r [ bvw ].I device.I block.RI [ filename... ].br.B tar.BR \-t [ fv ].I device.br.B tar.BR \-u [ bvw ].I device.I block.br.B tar.BR \-x [ flmovw ].I device.RI [ filename... ].SH DESCRIPTION.I Tarreads and writes archive files which conform to the.B "Archive/Interchange File Format"specified in.IR "IEEE Std. 1003.1-1988" ..SS OptionsThe following options are available:.TP 1i.B \-cCreates a new archive; writing begins at the beginning of the archive,instead of after the last file..TP 1i.B \-rWrites names files to the end of the archive..TP 1i.B \-tLists the names of all of the files in the archive..TP 1i.B \-uCauses named files to beadded to the archive if they are not already there, or have beenmodified since last written into the archive.This implies the.B \-roption..TP 1i.B \-xExtracts named filesfrom the archive.If a named file matches a directory whose contents had been written ontothe archive, that directory is recursively extracted.If a named file in the archive does not exist on the system, the file iscreate with the same mode as the one in the archive, except that theset-user-id and get-group-id modes are not set unless the user hasappropriate privileges..PPIf the files exist, their modes are not changed except as described above.The owner, group and modification time are restored if possible.If no.I filenameargument is given, the entire contents of the archive is extracted.Note that if several files with the same name are in the archive,the last one will overwrite all earlier ones..TP 1i.B \-bCauses.I tarto use the next argument on the command line as the blocking factor fortape records.The default is 1; the maximum is 20.This option should only be used with raw magnetic tape archives.Normally, the block size is determined automatically when reading tapes..TP 1i.B \-fCauses.I tarto use the next argument on the command line as the name of the archiveinstead of the default, which is usually a tape drive.If.B -is specified as a filename.I tarwrites to the standard output or reads from the standard input, whicheveris appropriate for the options given.Thus,.I tarcan be used as the head or tail of a pipeline..TP 1i.B \-lTells.I tarto report if it cannot resolve all of the links to the files beingarchived.If.B \-lis not specified, no error messages are written to the standard output.This modifier is only valid with the.BR \-c ,.B \-rand.BR \-uoptions..TP 1i.B \-mTells.I tarnot to restore the modification times.The modification time of the file will be the time of extraction.This modifier is invalid with th.B \-toption..TP 1i.B \-oCauses extracted files to take on the user and group identifier of the userrunning the program rather than those on the archive.This modifier is only valid with the.B \-xoption..TP 1i.B \-vCauses.I tarto operate verbosely.  Usually,.I tardoes its work silently, butthe.B vmodifier causes it to print the name of each file it processes,preceded by the option letter.With the.B \-toption,.B vgives more information about the archive entries than just the name..TP 1i.B \-wCauses.I tarto print the action to be taken, followed by the name of the file, and thenwait for the user's confirmation.If a word beginning with.B yis given, the action is performed.Any other input means "no".This modifier is invalid with the.B \-toption..SH FILES.TP 1i/dev/ttyused to prompt the user for information when the.BR \-i " or " \-yoptions are specified..SH "SEE ALSO"cpio(1), dd(1), find(1), pax(1), cpio(5), tar(5).SH COPYRIGHTCopyright (c) 1989 Mark H. Colburn.  .brAll rights reserved..PPRedistribution and use in source and binary forms are permittedprovided that the above copyright notice is duplicated in all such forms and that any documentation, advertising materials, and other materials related to such distribution and use acknowledge that the software was developed by Mark H. Colburn and sponsored by The USENIX Association. .PPTHE SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS ORIMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIEDWARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE..SH AUTHORMark H. Colburn.brNAPS International.br117 Mackubin Street, Suite 1.brSt. Paul, MN 55102.brmark@jhereg.MN.ORG.sp 2Sponsored by.B "The USENIX Association"for public distribution.

⌨️ 快捷键说明

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