diff options
Diffstat (limited to 'usr/src/man/man1/tar.1')
-rw-r--r-- | usr/src/man/man1/tar.1 | 98 |
1 files changed, 26 insertions, 72 deletions
diff --git a/usr/src/man/man1/tar.1 b/usr/src/man/man1/tar.1 index 3205d961c8..cbf3aebccc 100644 --- a/usr/src/man/man1/tar.1 +++ b/usr/src/man/man1/tar.1 @@ -2,46 +2,46 @@ .\" Copyright 1989 AT&T .\" Copyright (c) 2006, Sun Microsystems, Inc. All Rights Reserved .\" Portions Copyright (c) 1992, X/Open Company Limited All Rights Reserved -.\" Sun Microsystems, Inc. gratefully acknowledges The Open Group for permission to reproduce portions of its copyrighted documentation. Original documentation from The Open Group can be obtained online at +.\" Sun Microsystems, Inc. gratefully acknowledges The Open Group for permission to reproduce portions of its copyrighted documentation. Original documentation from The Open Group can be obtained online at .\" http://www.opengroup.org/bookstore/. .\" The Institute of Electrical and Electronics Engineers and The Open Group, have given us permission to reprint portions of their documentation. In the following statement, the phrase "this text" refers to portions of the system documentation. Portions of this text are reprinted and reproduced in electronic form in the Sun OS Reference Manual, from IEEE Std 1003.1, 2004 Edition, Standard for Information Technology -- Portable Operating System Interface (POSIX), The Open Group Base Specifications Issue 6, Copyright (C) 2001-2004 by the Institute of Electrical and Electronics Engineers, Inc and The Open Group. In the event of any discrepancy between these versions and the original IEEE and The Open Group Standard, the original IEEE and The Open Group Standard is the referee document. The original Standard can be obtained online at http://www.opengroup.org/unix/online.html. .\" This notice shall appear on any product containing this material. .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License. .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License. .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner] -.TH tar 1 "26 Oct 2007" "SunOS 5.11" "User Commands" +.TH TAR 1 "Oct 26, 2007" .SH NAME tar \- create tape archives and add or extract files .SH SYNOPSIS .LP .nf -\fBtar\fR c[BDeEFhilnopPqTvw@/[0-7]][bfk][X...] [\fIblocksize\fR] - [\fItarfile\fR] [\fIsize\fR] [\fIexclude-file\fR]... +\fBtar\fR c[BDeEFhilnopPqTvw@/[0-7]][bfk][X...] [\fIblocksize\fR] + [\fItarfile\fR] [\fIsize\fR] [\fIexclude-file\fR]... {\fIfile\fR | \(miI \fIinclude-file\fR | \(miC \fIdirectory\fR \fIfile\fR}... .fi .LP .nf -\fBtar\fR r[BDeEFhilnqTvw@/[0-7]][bfk] [\fIblocksize\fR] [\fItarfile\fR] - [\fIsize\fR] +\fBtar\fR r[BDeEFhilnqTvw@/[0-7]][bfk] [\fIblocksize\fR] [\fItarfile\fR] + [\fIsize\fR] {\fIfile\fR | \(miI \fIinclude-file\fR | \(miC \fIdirectory\fR \fIfile\fR}... .fi .LP .nf -\fBtar\fR t[BeFhilnqTv[0-7]][fk][X...] [\fItarfile\fR] [\fIsize\fR] +\fBtar\fR t[BeFhilnqTv[0-7]][fk][X...] [\fItarfile\fR] [\fIsize\fR] [\fIexclude-file\fR]... {\fIfile\fR | \(miI \fIinclude-file\fR}... .fi .LP .nf -\fBtar\fR u[BDeEFhilnqTvw@/[0-7]][bfk] [\fIblocksize\fR] [\fItarfile\fR] +\fBtar\fR u[BDeEFhilnqTvw@/[0-7]][bfk] [\fIblocksize\fR] [\fItarfile\fR] [\fIsize\fR] \fIfile\fR... .fi .LP .nf -\fBtar\fR x[BeFhilmnopqTvw@/[0-7]][fk][X...] [\fItarfile\fR] [\fIsize\fR] +\fBtar\fR x[BeFhilmnopqTvw@/[0-7]][fk][X...] [\fItarfile\fR] [\fIsize\fR] [\fIexclude-file\fR]... [\fIfile\fR]... .fi @@ -70,7 +70,6 @@ braces (\fB{ }\fR) indicate that one of the arguments must be specified. The following operands are supported: .sp .ne 2 -.mk .na \fB\fB\(miC\fR \fIdirectory file\fR\fR .ad @@ -85,7 +84,6 @@ multiple directories not related by a close common parent. .sp .ne 2 -.mk .na \fB\fB\(miI\fR \fIinclude-file\fR\fR .ad @@ -104,7 +102,6 @@ excluded. .sp .ne 2 -.mk .na \fB\fIfile\fR\fR .ad @@ -135,7 +132,6 @@ positions 151-156. The function portion of the key is specified by one of the following letters: .sp .ne 2 -.mk .na \fB\fBc\fR\fR .ad @@ -146,7 +142,6 @@ Create. Writing begins at the beginning of the tarfile, instead of at the end. .sp .ne 2 -.mk .na \fB\fBr\fR\fR .ad @@ -160,7 +155,6 @@ headers cannot be modified with extended headers. .sp .ne 2 -.mk .na \fB\fBt\fR\fR .ad @@ -175,7 +169,6 @@ is displayed. .sp .ne 2 -.mk .na \fB\fBu\fR\fR .ad @@ -192,7 +185,6 @@ extended headers. .sp .ne 2 -.mk .na \fB\fBx\fR\fR .ad @@ -248,7 +240,6 @@ The characters below can be used in conjunction with the letter that selects the desired function. .sp .ne 2 -.mk .na \fB\fBb\fR \fIblocksize\fR\fR .ad @@ -271,7 +262,6 @@ nominal blocking factor, a read error results. See Example 5 in EXAMPLES. .sp .ne 2 -.mk .na \fB\fBB\fR\fR .ad @@ -287,7 +277,6 @@ from short reads. .sp .ne 2 -.mk .na \fB\fBD\fR\fR .ad @@ -302,7 +291,6 @@ affected. .sp .ne 2 -.mk .na \fB\fBe\fR\fR .ad @@ -315,7 +303,6 @@ occur. The \fBSYSV3\fR environment variable overrides the default behavior. .sp .ne 2 -.mk .na \fB\fBE\fR\fR .ad @@ -334,7 +321,6 @@ of microseconds is desired. .sp .ne 2 -.mk .na \fB\fBf\fR\fR .ad @@ -374,7 +360,6 @@ example% \fBcd fromdir; tar cf \(mi .| (cd todir; tar xfBp \(mi)\fR .sp .ne 2 -.mk .na \fB\fBF\fR\fR .ad @@ -390,7 +375,6 @@ ENVIRONMENT VARIABLES section below.) .sp .ne 2 -.mk .na \fB\fBh\fR\fR .ad @@ -402,7 +386,6 @@ Follow symbolic links as if they were normal files or directories. Normally, .sp .ne 2 -.mk .na \fB\fBi\fR\fR .ad @@ -413,7 +396,6 @@ Ignore directory checksum errors. .sp .ne 2 -.mk .na \fB\fBk\fR \fIsize\fR\fR .ad @@ -427,7 +409,6 @@ fit in the specified size. .sp .ne 2 -.mk .na \fB\fBl\fR\fR .ad @@ -439,7 +420,6 @@ archived. If \fBl\fR is not specified, no error messages are printed. .sp .ne 2 -.mk .na \fB\fBm\fR\fR .ad @@ -451,7 +431,6 @@ function modifier is valid only with the \fBx\fR function. .sp .ne 2 -.mk .na \fB\fBn\fR\fR .ad @@ -463,7 +442,6 @@ since \fBtar\fR can randomly seek around the archive. .sp .ne 2 -.mk .na \fB\fBo\fR\fR .ad @@ -479,7 +457,6 @@ function modifier is only valid with the \fBx\fR function. .sp .ne 2 -.mk .na \fB\fBp\fR\fR .ad @@ -497,7 +474,6 @@ tarfile with \fBACL\fRs is extracted by previous versions of \fBtar\fR. .sp .ne 2 -.mk .na \fB\fBP\fR\fR .ad @@ -509,7 +485,6 @@ archive. .sp .ne 2 -.mk .na \fB\fBq\fR\fR .ad @@ -521,7 +496,6 @@ normally continues reading the archive after finding an occurrence of a file. .sp .ne 2 -.mk .na \fB\fBT\fR\fR .ad @@ -559,7 +533,6 @@ archived label matches the destination label. .sp .ne 2 -.mk .na \fB\fBv\fR\fR .ad @@ -573,7 +546,6 @@ of the \fBls\fR(1) command. .sp .ne 2 -.mk .na \fB\fBw\fR\fR .ad @@ -587,7 +559,6 @@ with the \fBt\fR function. .sp .ne 2 -.mk .na \fB\fBX\fR\fR .ad @@ -617,7 +588,6 @@ included files. If a file is specified in both the \fIexclude-file\fR and the .sp .ne 2 -.mk .na \fB\fB@\fR\fR .ad @@ -636,7 +606,6 @@ ignored. .sp .ne 2 -.mk .na \fB\fB/\fR\fR .ad @@ -655,7 +624,6 @@ explicitly extract attribute records are ignored. .sp .ne 2 -.mk .na \fB\fB[0-7]\fR\fR .ad @@ -700,7 +668,7 @@ directory on a tape mounted on drive \fB/dev/rmt/0\fR: .nf example% \fBcd\fR example% \fBtar cvf /dev/rmt/0\fR . -\fImessages from\fR tar +\fImessages from\fR tar .fi .in -2 .sp @@ -842,10 +810,10 @@ following: .sp .in +2 .nf -include/ +include/ include/a.out.h \fIand all the other files in\fR \fB/usr/include ...\fR -\&./chown \fIand all the other files in\fR /etc +\&./chown \fIand all the other files in\fR /etc .fi .in -2 .sp @@ -858,7 +826,7 @@ To extract all files in the \fBinclude\fR directory: .in +2 .nf example% \fBtar xv include -x include/, 0 bytes, 0 tape blocks \e +x include/, 0 bytes, 0 tape blocks \e \fIand all files under\fR include ...\fR .fi .in -2 @@ -985,7 +953,6 @@ tar: tape read error .SH ENVIRONMENT VARIABLES .sp .ne 2 -.mk .na \fB\fBSYSV3\fR\fR .ad @@ -997,7 +964,6 @@ and should not be used in new scripts. (It is intended for compatibility purposes only.) When set, the following function modifiers behave differently: .sp .ne 2 -.mk .na \fB\fBF\fR \fIfilename\fR\fR .ad @@ -1009,7 +975,6 @@ which to operate. .sp .ne 2 -.mk .na \fB\fBe\fR\fR .ad @@ -1043,7 +1008,6 @@ expression defined for the \fByesexpr\fR. See \fBlocale\fR(5). The following exit values are returned: .sp .ne 2 -.mk .na \fB\fB0\fR\fR .ad @@ -1054,7 +1018,6 @@ Successful completion. .sp .ne 2 -.mk .na \fB\fB>0\fR\fR .ad @@ -1066,73 +1029,66 @@ An error occurred. .SH FILES .sp .ne 2 -.mk .na \fB\fB/dev/rmt/[0-7][b][n]\fR\fR .ad .sp .6 .RS 4n - + .RE .sp .ne 2 -.mk .na \fB\fB/dev/rmt/[0-7]l[b][n]\fR\fR .ad .sp .6 .RS 4n - + .RE .sp .ne 2 -.mk .na \fB\fB/dev/rmt/[0-7]m[b][n]\fR\fR .ad .sp .6 .RS 4n - + .RE .sp .ne 2 -.mk .na \fB\fB/dev/rmt/[0-7]h[b][n]\fR\fR .ad .sp .6 .RS 4n - + .RE .sp .ne 2 -.mk .na \fB\fB/dev/rmt/[0-7]u[b][n]\fR\fR .ad .sp .6 .RS 4n - + .RE .sp .ne 2 -.mk .na \fB\fB/dev/rmt/[0-7]c[b][n]\fR\fR .ad .sp .6 .RS 4n - + .RE .sp .ne 2 -.mk .na \fB\fB/etc/default/tar\fR\fR .ad @@ -1175,13 +1131,12 @@ Settings might look like this: .sp .ne 2 -.mk .na \fB\fB/tmp/tar*\fR\fR .ad .sp .6 .RS 4n - + .RE .SH ATTRIBUTES @@ -1192,15 +1147,14 @@ See \fBattributes\fR(5) for descriptions of the following attributes: .sp .TS -tab() box; -cw(2.75i) |cw(2.75i) -lw(2.75i) |lw(2.75i) -. -ATTRIBUTE TYPEATTRIBUTE VALUE +box; +c | c +l | l . +ATTRIBUTE TYPE ATTRIBUTE VALUE _ -CSIEnabled +CSI Enabled _ -Interface StabilityCommitted +Interface Stability Committed .TE .SH SEE ALSO |