head	1.22;
access;
symbols
	libarchive-3-8-7:1.1.1.23
	libarchive-3-8-6:1.1.1.22
	pkgsrc-2026Q1:1.20.0.2
	pkgsrc-2026Q1-base:1.20
	libarchive-3-8-5:1.1.1.21
	libarchive-3-8-4:1.1.1.20
	pkgsrc-2025Q4:1.18.0.2
	pkgsrc-2025Q4-base:1.18
	libarchive-3-8-3:1.1.1.19
	libarchive-3-8-2:1.1.1.18
	pkgsrc-2025Q3:1.16.0.2
	pkgsrc-2025Q3-base:1.16
	libarchive-3-8-1:1.1.1.17
	pkgsrc-2025Q2:1.15.0.2
	pkgsrc-2025Q2-base:1.15
	libarchive-3-8-0:1.1.1.16
	libarchive-3-7-9:1.1.1.15
	pkgsrc-2025Q1:1.13.0.4
	pkgsrc-2025Q1-base:1.13
	pkgsrc-2024Q4:1.13.0.2
	pkgsrc-2024Q4-base:1.13
	libarchive-3-7-7:1.1.1.14
	pkgsrc-2024Q3:1.12.0.2
	pkgsrc-2024Q3-base:1.12
	libarchive-3-7-5:1.1.1.13
	pkgsrc-2024Q2:1.11.0.2
	pkgsrc-2024Q2-base:1.11
	libarchive-3-7-4:1.1.1.12
	libarchive-3-7-3:1.1.1.11
	pkgsrc-2024Q1:1.9.0.2
	pkgsrc-2024Q1-base:1.9
	libarchive-3-7-2:1.1.1.10
	pkgsrc-2023Q4:1.8.0.30
	pkgsrc-2023Q4-base:1.8
	pkgsrc-2023Q3:1.8.0.28
	pkgsrc-2023Q3-base:1.8
	pkgsrc-2023Q2:1.8.0.26
	pkgsrc-2023Q2-base:1.8
	pkgsrc-2023Q1:1.8.0.24
	pkgsrc-2023Q1-base:1.8
	pkgsrc-2022Q4:1.8.0.22
	pkgsrc-2022Q4-base:1.8
	pkgsrc-2022Q3:1.8.0.20
	pkgsrc-2022Q3-base:1.8
	pkgsrc-2022Q2:1.8.0.18
	pkgsrc-2022Q2-base:1.8
	pkgsrc-2022Q1:1.8.0.16
	pkgsrc-2022Q1-base:1.8
	pkgsrc-2021Q4:1.8.0.14
	pkgsrc-2021Q4-base:1.8
	pkgsrc-2021Q3:1.8.0.12
	pkgsrc-2021Q3-base:1.8
	pkgsrc-2021Q2:1.8.0.10
	pkgsrc-2021Q2-base:1.8
	pkgsrc-2021Q1:1.8.0.8
	pkgsrc-2021Q1-base:1.8
	pkgsrc-2020Q4:1.8.0.6
	pkgsrc-2020Q4-base:1.8
	pkgsrc-2020Q3:1.8.0.4
	pkgsrc-2020Q3-base:1.8
	pkgsrc-2020Q2:1.8.0.2
	pkgsrc-2020Q2-base:1.8
	pkgsrc-2020Q1:1.7.0.4
	pkgsrc-2020Q1-base:1.7
	pkgsrc-2019Q4:1.7.0.6
	pkgsrc-2019Q4-base:1.7
	pkgsrc-2019Q3:1.7.0.2
	pkgsrc-2019Q3-base:1.7
	libarchive-3-4-0:1.1.1.9
	libarchive-3-3-3:1.1.1.8
	pkgsrc-2019Q2:1.6.0.2
	pkgsrc-2019Q2-base:1.6
	pkgsrc-2019Q1:1.5.0.16
	pkgsrc-2019Q1-base:1.5
	pkgsrc-2018Q4:1.5.0.14
	pkgsrc-2018Q4-base:1.5
	pkgsrc-2018Q3:1.5.0.12
	pkgsrc-2018Q3-base:1.5
	pkgsrc-2018Q2:1.5.0.10
	pkgsrc-2018Q2-base:1.5
	pkgsrc-2018Q1:1.5.0.8
	pkgsrc-2018Q1-base:1.5
	pkgsrc-2017Q4:1.5.0.6
	pkgsrc-2017Q4-base:1.5
	pkgsrc-2017Q3:1.5.0.4
	pkgsrc-2017Q3-base:1.5
	libarchive-3-3-2:1.1.1.7
	pkgsrc-2017Q2:1.4.0.4
	pkgsrc-2017Q2-base:1.4
	pkgsrc-2017Q1:1.4.0.2
	pkgsrc-2017Q1-base:1.4
	libarchive-3-3-1:1.1.1.6
	pkgsrc-2016Q4:1.3.0.6
	pkgsrc-2016Q4-base:1.3
	pkgsrc-2016Q3:1.3.0.4
	pkgsrc-2016Q3-base:1.3
	pkgsrc-2016Q2:1.3.0.2
	pkgsrc-2016Q2-base:1.3
	libarchive-3-2-1:1.1.1.5
	pkgsrc-2016Q1:1.2.0.10
	pkgsrc-2016Q1-base:1.2
	pkgsrc-2015Q4:1.2.0.8
	pkgsrc-2015Q4-base:1.2
	pkgsrc-2015Q3:1.2.0.6
	pkgsrc-2015Q3-base:1.2
	pkgsrc-2015Q2:1.2.0.4
	pkgsrc-2015Q2-base:1.2
	pkgsrc-2015Q1:1.2.0.2
	pkgsrc-2015Q1-base:1.2
	pkgsrc-2014Q4:1.1.1.4.0.36
	pkgsrc-2014Q4-base:1.1.1.4
	pkgsrc-2014Q3:1.1.1.4.0.34
	pkgsrc-2014Q3-base:1.1.1.4
	pkgsrc-2014Q2:1.1.1.4.0.32
	pkgsrc-2014Q2-base:1.1.1.4
	pkgsrc-2014Q1:1.1.1.4.0.30
	pkgsrc-2014Q1-base:1.1.1.4
	pkgsrc-2013Q4:1.1.1.4.0.28
	pkgsrc-2013Q4-base:1.1.1.4
	pkgsrc-2013Q3:1.1.1.4.0.26
	pkgsrc-2013Q3-base:1.1.1.4
	pkgsrc-2013Q2:1.1.1.4.0.24
	pkgsrc-2013Q2-base:1.1.1.4
	pkgsrc-2013Q1:1.1.1.4.0.22
	pkgsrc-2013Q1-base:1.1.1.4
	pkgsrc-2012Q4:1.1.1.4.0.20
	pkgsrc-2012Q4-base:1.1.1.4
	pkgsrc-2012Q3:1.1.1.4.0.18
	pkgsrc-2012Q3-base:1.1.1.4
	pkgsrc-2012Q2:1.1.1.4.0.16
	pkgsrc-2012Q2-base:1.1.1.4
	pkgsrc-2012Q1:1.1.1.4.0.14
	pkgsrc-2012Q1-base:1.1.1.4
	pkgsrc-2011Q4:1.1.1.4.0.12
	pkgsrc-2011Q4-base:1.1.1.4
	pkgsrc-2011Q3:1.1.1.4.0.10
	pkgsrc-2011Q3-base:1.1.1.4
	pkgsrc-2011Q2:1.1.1.4.0.8
	pkgsrc-2011Q2-base:1.1.1.4
	pkgsrc-2011Q1:1.1.1.4.0.6
	pkgsrc-2011Q1-base:1.1.1.4
	pkgsrc-2010Q4:1.1.1.4.0.4
	pkgsrc-2010Q4-base:1.1.1.4
	pkgsrc-2010Q3:1.1.1.4.0.2
	pkgsrc-2010Q3-base:1.1.1.4
	libarchive-2-8-4:1.1.1.4
	pkgsrc-2010Q2:1.1.1.3.0.4
	pkgsrc-2010Q2-base:1.1.1.3
	pkgsrc-2010Q1:1.1.1.3.0.2
	pkgsrc-2010Q1-base:1.1.1.3
	libarchive-2-8-3:1.1.1.3
	libarchive-2-8-2:1.1.1.2
	libarchive-2-8-0:1.1.1.1
	KIENTZLE:1.1.1;
locks; strict;
comment	@# @;


1.22
date	2026.04.15.08.46.34;	author adam;	state Exp;
branches;
next	1.21;
commitid	pL26mrnh4kOo62CG;

1.21
date	2026.03.26.11.20.06;	author adam;	state Exp;
branches;
next	1.20;
commitid	8pSUUUHFeJu1BtzG;

1.20
date	2026.01.06.11.55.22;	author adam;	state Exp;
branches;
next	1.19;
commitid	lOosf75XWhczkkpG;

1.19
date	2025.12.23.14.01.22;	author adam;	state Exp;
branches;
next	1.18;
commitid	3zKcl3VhUVXFtxnG;

1.18
date	2025.11.20.06.08.25;	author adam;	state Exp;
branches;
next	1.17;
commitid	kB7NF5kSlmUaVfjG;

1.17
date	2025.11.02.08.52.12;	author adam;	state Exp;
branches;
next	1.16;
commitid	hdaVwMAEUWR8pXgG;

1.16
date	2025.07.01.15.14.43;	author adam;	state Exp;
branches;
next	1.15;
commitid	sA2cBFYBXpUBv31G;

1.15
date	2025.05.21.15.25.49;	author adam;	state Exp;
branches;
next	1.14;
commitid	6aTN21WjRYk8TMVF;

1.14
date	2025.04.28.10.31.33;	author adam;	state Exp;
branches;
next	1.13;
commitid	Tocq615J6mYPZNSF;

1.13
date	2024.10.19.05.39.56;	author adam;	state Exp;
branches;
next	1.12;
commitid	fYRSlpIWMYluweuF;

1.12
date	2024.09.15.07.02.19;	author adam;	state Exp;
branches;
next	1.11;
commitid	x365AQIKhret4SpF;

1.11
date	2024.04.30.06.05.18;	author adam;	state Exp;
branches;
next	1.10;
commitid	id0E8i4RwCC4c88F;

1.10
date	2024.04.12.15.39.48;	author adam;	state Exp;
branches;
next	1.9;
commitid	52ilmjFHKDf0XR5F;

1.9
date	2024.01.18.18.00.14;	author adam;	state Exp;
branches;
next	1.8;
commitid	hNXpsHx3SuHqsXUE;

1.8
date	2020.05.26.09.16.40;	author nia;	state Exp;
branches;
next	1.7;
commitid	nNhsdZACz3PjmJ9C;

1.7
date	2019.09.22.09.55.07;	author joerg;	state Exp;
branches;
next	1.6;
commitid	FdPvRjF4OzwBwZDB;

1.6
date	2019.04.10.08.24.05;	author adam;	state Exp;
branches;
next	1.5;
commitid	LnliQ9ieqYkikMiB;

1.5
date	2017.08.01.22.26.22;	author joerg;	state Exp;
branches;
next	1.4;
commitid	32clTfkmVE8bPy1A;

1.4
date	2017.02.25.21.11.19;	author joerg;	state Exp;
branches;
next	1.3;
commitid	rW8QfCWrsCO1snHz;

1.3
date	2016.06.20.17.24.56;	author joerg;	state Exp;
branches;
next	1.2;
commitid	ArUvympBjfBseebz;

1.2
date	2015.01.17.12.44.49;	author adam;	state Exp;
branches;
next	1.1;
commitid	yy7e1hLrfmA2pn6y;

1.1
date	2010.02.20.03.49.46;	author joerg;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	2010.02.20.03.49.46;	author joerg;	state Exp;
branches;
next	1.1.1.2;

1.1.1.2
date	2010.03.14.17.57.28;	author joerg;	state Exp;
branches;
next	1.1.1.3;

1.1.1.3
date	2010.03.16.17.07.07;	author joerg;	state Exp;
branches;
next	1.1.1.4;

1.1.1.4
date	2010.07.09.11.53.36;	author joerg;	state Exp;
branches;
next	1.1.1.5;

1.1.1.5
date	2016.06.20.17.11.53;	author joerg;	state Exp;
branches;
next	1.1.1.6;
commitid	rRgm3BqbmbI8aebz;

1.1.1.6
date	2017.02.25.20.54.24;	author joerg;	state Exp;
branches;
next	1.1.1.7;
commitid	ReqPI0ibLYjdmnHz;

1.1.1.7
date	2017.08.01.22.21.12;	author joerg;	state Exp;
branches;
next	1.1.1.8;
commitid	XQwPAFJku336Ny1A;

1.1.1.8
date	2019.09.22.09.47.04;	author joerg;	state Exp;
branches;
next	1.1.1.9;
commitid	N0KxAXOYyULduZDB;

1.1.1.9
date	2019.09.22.09.51.33;	author joerg;	state Exp;
branches;
next	1.1.1.10;
commitid	5kDbfPbiV3INvZDB;

1.1.1.10
date	2024.01.18.17.37.45;	author adam;	state Exp;
branches;
next	1.1.1.11;
commitid	zDULEPUODGjTkXUE;

1.1.1.11
date	2024.04.12.15.27.44;	author adam;	state Exp;
branches;
next	1.1.1.12;
commitid	tQWTddCoxBumSR5F;

1.1.1.12
date	2024.04.30.05.50.49;	author adam;	state Exp;
branches;
next	1.1.1.13;
commitid	e4DnFoZdQV9Z688F;

1.1.1.13
date	2024.09.15.06.45.25;	author adam;	state Exp;
branches;
next	1.1.1.14;
commitid	pOuXKsbh8iPCYRpF;

1.1.1.14
date	2024.10.19.05.27.34;	author adam;	state Exp;
branches;
next	1.1.1.15;
commitid	v1iXM4j1Na52seuF;

1.1.1.15
date	2025.04.28.09.44.10;	author adam;	state Exp;
branches;
next	1.1.1.16;
commitid	1zB7ffc4d2qCJNSF;

1.1.1.16
date	2025.05.21.15.11.28;	author adam;	state Exp;
branches;
next	1.1.1.17;
commitid	Nzqt2UgtvkVXNMVF;

1.1.1.17
date	2025.07.01.14.58.53;	author adam;	state Exp;
branches;
next	1.1.1.18;
commitid	wKXYoBc9F9j8q31G;

1.1.1.18
date	2025.11.02.08.32.34;	author adam;	state Exp;
branches;
next	1.1.1.19;
commitid	8C56Xg3dc0HriXgG;

1.1.1.19
date	2025.11.20.05.51.45;	author adam;	state Exp;
branches;
next	1.1.1.20;
commitid	LC6NMc2P0QpnPfjG;

1.1.1.20
date	2025.12.23.13.41.06;	author adam;	state Exp;
branches;
next	1.1.1.21;
commitid	hhQbXTytJ7PFmxnG;

1.1.1.21
date	2026.01.06.11.43.29;	author adam;	state Exp;
branches;
next	1.1.1.22;
commitid	Q4rjOheYoLWofkpG;

1.1.1.22
date	2026.03.26.11.11.16;	author adam;	state Exp;
branches;
next	1.1.1.23;
commitid	P6u0vpfNBymXxtzG;

1.1.1.23
date	2026.04.15.08.40.11;	author adam;	state Exp;
branches;
next	;
commitid	enlkxxj5Vxhi42CG;


desc
@@


1.22
log
@libarchive: updated to 3.8.7

Libarchive 3.8.7 is a security and bugfix release.

Notable fixes:

CAB: fix NULL pointer dereference during skip
CAB: Fix Heap OOB Write in CAB LZX decoder
cpio: various fixes and improvements
contrib/untar: fix out-of-bounds read
iso9660: fix undefined behavior
iso9660: fix posibble heap buffer overflow on 32-bit systems
libarchive: fix handling of option failures
libarchive: do not continue with truncated numbers
libarchive: lzop and grzip filter support
RAR: fix LZSS window size mismatch after PPMd block
@
text
@<!-- Creator     : groff version 1.23.0 -->
<!-- CreationDate: Mon Apr 13 12:57:35 2026 -->
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta name="generator" content="groff -Thtml, see www.gnu.org">
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<meta name="Content-Style" content="text/css">
<style type="text/css">
       p       { margin-top: 0; margin-bottom: 0; vertical-align: top }
       pre     { margin-top: 0; margin-bottom: 0; vertical-align: top }
       table   { margin-top: 0; margin-bottom: 0; vertical-align: top }
       h1      { text-align: center }
</style>
<title></title>
</head>
<body>

<hr>


<p><i>TAR</i>(1) General Commands Manual <i>TAR</i>(1)</p>

<p style="margin-top: 1em"><b>NAME</b></p>

<p style="margin-left:9%;">tar &mdash; manipulate tape
archives</p>

<p style="margin-top: 1em"><b>SYNOPSIS</b></p>

<p style="margin-left:14%;"><b>tar</b>
[<i>bundled-flags&nbsp;</i>&lang;</p>

<p>args &rang; ] [&lang; <i><br>
file</i> &rang; &nbsp;|&nbsp;&lang; <i><br>
pattern</i> &rang; &nbsp;...]</p>

<p style="margin-left:14%;"><b>tar</b> {<b>-c</b>}
[<i>options</i>]
[<i>files&nbsp;</i>|&nbsp;<i>directories</i>] <b><br>
tar</b> {<b>-r&nbsp;</b>|&nbsp;<b>-u</b>} <b>-f</b>
<i>archive-file</i> [<i>options</i>]
[<i>files&nbsp;</i>|&nbsp;<i>directories</i>] <b><br>
tar</b> {<b>-t&nbsp;</b>|&nbsp;<b>-x</b>} [<i>options</i>]
[<i>patterns</i>]</p>

<p style="margin-top: 1em"><b>DESCRIPTION</b></p>

<p style="margin-left:9%;"><b>tar</b> creates and
manipulates streaming archive files. This implementation can
extract from tar, pax, cpio, zip, jar, ar, xar, rar, rpm,
7-zip, and ISO 9660 cdrom images and can create tar, pax,
cpio, ar, zip, 7-zip, and shar archives.</p>

<p style="margin-left:9%; margin-top: 1em">The first
synopsis form shows a &ldquo;bundled&rdquo; option word.
This usage is provided for compatibility with historical
implementations. See &ldquo;COMPATIBILITY&rdquo; below for
details.</p>

<p style="margin-left:9%; margin-top: 1em">The other
synopsis forms show the preferred usage. The first option to
<b>tar</b> is a mode indicator from the following list:</p>

<p style="margin-top: 1em"><b>-c</b></p>

<p style="margin-left:19%; margin-top: 1em">Create a new
archive containing the specified items. The long option form
is <b>--create</b>.</p>

<p><b>-r</b></p>

<p style="margin-left:19%; margin-top: 1em">Like <b>-c</b>,
but new entries are appended to the archive. Note that this
only works on uncompressed archives stored in regular files.
The <b>-f</b> option is required. The long option form is
<b>--append</b>.</p>

<p><b>-t</b></p>

<p style="margin-left:19%; margin-top: 1em">List archive
contents to stdout. The long option form is
<b>--list</b>.</p>

<p><b>-u</b></p>

<p style="margin-left:19%; margin-top: 1em">Like <b>-r</b>,
but new entries are added only if they have a modification
date newer than the corresponding entry in the archive. Note
that this only works on uncompressed archives stored in
regular files. The <b>-f</b> option is required. The long
form is <b>--update</b>.</p>

<p><b>-x</b></p>

<p style="margin-left:19%; margin-top: 1em">Extract to disk
from the archive. If a file with the same name appears more
than once in the archive, each copy will be extracted, with
later copies overwriting (replacing) earlier copies. The
long option form is <b>--extract</b>.</p>

<p style="margin-left:9%; margin-top: 1em">In <b>-c</b>,
<b>-r</b>, or <b>-u</b> mode, each specified file or
directory is added to the archive in the order specified on
the command line. By default, the contents of each directory
are also archived.</p>

<p style="margin-left:9%; margin-top: 1em">In extract or
list mode, the entire command line is read and parsed before
the archive is opened. The pathnames or patterns on the
command line indicate which items in the archive should be
processed. Patterns are shell-style globbing patterns as
documented in <i>tcsh</i>(1).</p>

<p style="margin-top: 1em"><b>OPTIONS</b></p>

<p style="margin-left:9%;">Unless specifically stated
otherwise, options are applicable in all operating
modes.</p>

<p style="margin-top: 1em"><b>@@</b><i>archive</i></p>

<p style="margin-left:19%;">(c and r modes only) The
specified archive is opened and the entries in it will be
appended to the current archive. As a simple example,</p>

<p style="margin-left:27%; margin-top: 1em"><b>tar -c
-f</b> <i>- newfile</i> <b>@@</b><i>original.tar</i></p>

<p style="margin-left:19%; margin-top: 1em">writes a new
archive to standard output containing a file <i>newfile</i>
and all of the entries from <i>original.tar</i>. In
contrast,</p>

<p style="margin-left:27%; margin-top: 1em"><b>tar -c
-f</b> <i>- newfile original.tar</i></p>

<p style="margin-left:19%; margin-top: 1em">creates a new
archive with only two entries. Similarly,</p>

<p style="margin-left:27%; margin-top: 1em"><b>tar -czf</b>
<i>-</i> <b>--format pax @@</b><i>-</i></p>

<p style="margin-left:19%; margin-top: 1em">reads an
archive from standard input (whose format will be determined
automatically) and converts it into a gzip-compressed
pax-format archive on stdout. In this way, <b>tar</b> can be
used to convert archives from one format to another.</p>

<p style="margin-top: 1em"><b>-a</b>,
<b>--auto-compress</b></p>

<p style="margin-left:19%;">(c mode only) Use the archive
suffix to decide a set of the format and the compressions.
As a simple example,</p>

<p style="margin-left:27%; margin-top: 1em"><b>tar -a
-cf</b> <i>archive.tgz source.c source.h</i></p>

<p style="margin-left:19%; margin-top: 1em">creates a new
archive with restricted pax format and gzip compression,</p>

<p style="margin-left:27%; margin-top: 1em"><b>tar -a
-cf</b> <i>archive.tar.bz2.uu source.c source.h</i></p>

<p style="margin-left:19%; margin-top: 1em">creates a new
archive with restricted pax format and bzip2 compression and
uuencode compression,</p>

<p style="margin-left:27%; margin-top: 1em"><b>tar -a
-cf</b> <i>archive.zip source.c source.h</i></p>

<p style="margin-left:19%; margin-top: 1em">creates a new
archive with zip format,</p>

<p style="margin-left:27%; margin-top: 1em"><b>tar -a
-jcf</b> <i>archive.tgz source.c source.h</i></p>

<p style="margin-left:19%; margin-top: 1em">ignores the
&ldquo;-j&rdquo; option, and creates a new archive with
restricted pax format and gzip compression,</p>

<p style="margin-left:27%; margin-top: 1em"><b>tar -a
-jcf</b> <i>archive.xxx source.c source.h</i></p>

<p style="margin-left:19%; margin-top: 1em">if it is
unknown suffix or no suffix, creates a new archive with
restricted pax format and bzip2 compression.</p>

<p style="margin-top: 1em"><b>--acls</b></p>

<p style="margin-left:19%; margin-top: 1em">(c, r, u, x
modes only) Archive or extract POSIX.1e or NFSv4 ACLs. This
is the reverse of <b>--no-acls</b> and the default behavior
in c, r, and u modes (except on Mac OS X) or if <b>tar</b>
is run in x mode as root. On Mac OS X this option translates
extended ACLs to NFSv4 ACLs. To store extended ACLs the
<b>--mac-metadata</b> option is preferred.</p>

<p style="margin-top: 1em"><b>-B</b>,
<b>--read-full-blocks</b></p>

<p style="margin-left:19%;">Ignored for compatibility with
other <i>tar</i>(1) implementations.</p>

<p style="margin-top: 1em"><b>-b</b> <i>blocksize</i>,
<b>--block-size</b> <i>blocksize</i></p>

<p style="margin-left:19%;">Specify the block size, in
512-byte records, for tape drive I/O. As a rule, this
argument is only needed when reading from or writing to tape
drives, and usually not even then as the default block size
of 20 records (10240 bytes) is very common.</p>

<p style="margin-top: 1em"><b>-C</b> <i>directory</i>,
<b>--cd</b> <i>directory</i>, <b>--directory</b>
<i>directory</i></p>

<p style="margin-left:19%;">In c and r mode, this changes
the directory before adding the following files. In x mode,
change directories after opening the archive but before
extracting entries from the archive.</p>

<p style="margin-top: 1em"><b>--chroot</b></p>

<p style="margin-left:19%;">(x mode only) <b>chroot</b>()
to the current directory after processing any <b>-C</b>
options and before extracting any files.</p>

<p style="margin-top: 1em"><b>--clamp-mtime</b></p>

<p style="margin-left:19%;">(use with <b>--mtime</b>) Only
set the modification time if the file is newer than the date
specified in <b>--mtime</b>.</p>


<p style="margin-top: 1em"><b>--clear-nochange-fflags</b></p>

<p style="margin-left:19%;">(x mode only) Before removing
file system objects to replace them, clear platform-specific
file attributes or file flags that might prevent
removal.</p>

<p style="margin-top: 1em"><b>--exclude</b>
<i>pattern</i></p>

<p style="margin-left:19%;">Do not process files or
directories that match the specified pattern. Note that
exclusions take precedence over patterns or filenames
specified on the command line.</p>

<p style="margin-top: 1em"><b>--exclude-vcs</b></p>

<p style="margin-left:19%;">Do not process files or
directories internally used by the version control systems
&lsquo;Arch&rsquo;, &lsquo;Bazaar&rsquo;, &lsquo;CVS&rsquo;,
&lsquo;Darcs&rsquo;, &lsquo;Mercurial&rsquo;,
&lsquo;RCS&rsquo;, &lsquo;SCCS&rsquo;, &lsquo;SVN&rsquo; and
&lsquo;git&rsquo;.</p>

<p style="margin-top: 1em"><b>--fflags</b></p>

<p style="margin-left:19%;">(c, r, u, x modes only) Archive
or extract platform-specific file attributes or file flags.
This is the reverse of <b>--no-fflags</b> and the default
behavior in c, r, and u modes or if <b>tar</b> is run in x
mode as root.</p>

<p style="margin-top: 1em"><b>--format</b>
<i>format</i></p>

<p style="margin-left:19%;">(c, r, u mode only) Use the
specified format for the created archive. Supported formats
include &ldquo;cpio&rdquo;, &ldquo;pax&rdquo;,
&ldquo;shar&rdquo;, and &ldquo;ustar&rdquo;. Other formats
may also be supported; see <i>libarchive-formats</i>(5) for
more information about currently-supported formats. In r and
u modes, when extending an existing archive, the format
specified here must be compatible with the format of the
existing archive on disk.</p>

<p style="margin-top: 1em"><b>-f</b> <i>file</i>,
<b>--file</b> <i>file</i></p>

<p style="margin-left:19%;">Read the archive from or write
the archive to the specified file. The filename can be
<i>-</i> for standard input or standard output. The default
varies by system; on FreeBSD, the default is
<i>/dev/sa0</i>; on Linux, the default is
<i>/dev/st0</i>.</p>

<p style="margin-top: 1em"><b>--gid</b> <i>id</i></p>

<p style="margin-left:19%;">Use the provided group id
number. On extract, this overrides the group id in the
archive; the group name in the archive will be ignored. On
create, this overrides the group id read from disk; if
<b>--gname</b> is not also specified, the group name will be
set to match the group id.</p>

<p style="margin-top: 1em"><b>--gname</b> <i>name</i></p>

<p style="margin-left:19%;">Use the provided group name. On
extract, this overrides the group name in the archive; if
the provided group name does not exist on the system, the
group id (from the archive or from the <b>--gid</b> option)
will be used instead. On create, this sets the group name
that will be stored in the archive; the name will not be
verified against the system group database.</p>

<p style="margin-top: 1em"><b>--group</b>
<i>name</i>[:<i>gid</i>]</p>

<p style="margin-left:19%;">Use the provided group, if
<i>gid</i> is not provided, <i>name</i> can be either a
group name or numeric id. See the <b>--gname</b> option for
details.</p>

<p style="margin-top: 1em"><b>-H</b></p>

<p style="margin-left:19%; margin-top: 1em">(c and r modes
only) Symbolic links named on the command line will be
followed; the target of the link will be archived, not the
link itself.</p>

<p style="margin-top: 1em"><b>-h</b></p>

<p style="margin-left:19%; margin-top: 1em">(c and r modes
only) Synonym for <b>-L</b>.</p>

<p style="margin-top: 1em"><b>-I</b></p>

<p style="margin-left:19%; margin-top: 1em">Synonym for
<b>-T</b>.</p>

<p style="margin-top: 1em"><b>--help</b></p>

<p style="margin-left:19%; margin-top: 1em">Show usage.</p>

<p style="margin-top: 1em"><b>--hfsCompression</b></p>

<p style="margin-left:19%;">(x mode only) Mac OS X specific
(v10.6 or later). Compress extracted regular files with HFS+
compression.</p>

<p style="margin-top: 1em"><b>--ignore-zeros</b></p>

<p style="margin-left:19%;">An alias of <b>--options
read_concatenated_archives</b> for compatibility with GNU
tar.</p>

<p style="margin-top: 1em"><b>--include</b>
<i>pattern</i></p>

<p style="margin-left:19%;">Process only files or
directories that match the specified pattern. Note that
exclusions specified with <b>--exclude</b> take precedence
over inclusions. If no inclusions are explicitly specified,
all entries are processed by default. The <b>--include</b>
option is especially useful when filtering archives. For
example, the command</p>

<p style="margin-left:27%; margin-top: 1em"><b>tar -c
-f</b> <i>new.tar</i> <b>--include=&rsquo;*foo*&rsquo;
@@</b><i>old.tgz</i></p>

<p style="margin-left:19%; margin-top: 1em">creates a new
archive <i>new.tar</i> containing only the entries from
<i>old.tgz</i> containing the string &lsquo;foo&rsquo;.</p>

<p style="margin-top: 1em"><b>-J</b>, <b>--xz</b></p>

<p style="margin-left:19%;">(c mode only) Compress the
resulting archive with <i>xz</i>(1). In extract or list
modes, this option is ignored. Note that this <b>tar</b>
implementation recognizes XZ compression automatically when
reading archives.</p>

<p style="margin-top: 1em"><b>-j</b>, <b>--bzip</b>,
<b>--bzip2</b>, <b>--bunzip2</b></p>

<p style="margin-left:19%;">(c mode only) Compress the
resulting archive with <i>bzip2</i>(1). In extract or list
modes, this option is ignored. Note that this <b>tar</b>
implementation recognizes bzip2 compression automatically
when reading archives.</p>

<p style="margin-top: 1em"><b>-k</b>,
<b>--keep-old-files</b></p>

<p style="margin-left:19%;">(x mode only) Do not overwrite
existing files. In particular, if a file appears more than
once in an archive, later copies will not overwrite earlier
copies.</p>

<p style="margin-top: 1em"><b>--keep-newer-files</b></p>

<p style="margin-left:19%;">(x mode only) Do not overwrite
existing files that are newer than the versions appearing in
the archive being extracted.</p>

<p style="margin-top: 1em"><b>-L</b>,
<b>--dereference</b></p>

<p style="margin-left:19%;">(c and r modes only) All
symbolic links will be followed. Normally, symbolic links
are archived as such. With this option, the target of the
link will be archived instead.</p>

<p style="margin-top: 1em"><b>-l</b>,
<b>--check-links</b></p>

<p style="margin-left:19%;">(c and r modes only) Issue a
warning message unless all links to each file are
archived.</p>

<p style="margin-top: 1em"><b>--lrzip</b></p>

<p style="margin-left:19%;">(c mode only) Compress the
resulting archive with <i>lrzip</i>(1). In extract or list
modes, this option is ignored. Note that this <b>tar</b>
implementation recognizes lrzip compression automatically
when reading archives.</p>

<p style="margin-top: 1em"><b>--lz4</b></p>

<p style="margin-left:19%; margin-top: 1em">(c mode only)
Compress the archive with lz4-compatible compression before
writing it. In extract or list modes, this option is
ignored. Note that this <b>tar</b> implementation recognizes
lz4 compression automatically when reading archives.</p>

<p style="margin-top: 1em"><b>--zstd</b></p>

<p style="margin-left:19%; margin-top: 1em">(c mode only)
Compress the archive with zstd-compatible compression before
writing it. In extract or list modes, this option is
ignored. Note that this <b>tar</b> implementation recognizes
zstd compression automatically when reading archives.</p>

<p style="margin-top: 1em"><b>--lzma</b></p>

<p style="margin-left:19%; margin-top: 1em">(c mode only)
Compress the resulting archive with the original LZMA
algorithm. In extract or list modes, this option is ignored.
Use of this option is discouraged and new archives should be
created with <b>--xz</b> instead. Note that this <b>tar</b>
implementation recognizes LZMA compression automatically
when reading archives.</p>

<p style="margin-top: 1em"><b>--lzop</b></p>

<p style="margin-left:19%; margin-top: 1em">(c mode only)
Compress the resulting archive with <i>lzop</i>(1). In
extract or list modes, this option is ignored. Note that
this <b>tar</b> implementation recognizes LZO compression
automatically when reading archives.</p>

<p style="margin-top: 1em"><b>-m</b>,
<b>--modification-time</b></p>

<p style="margin-left:19%;">(x mode only) Do not extract
modification time. By default, the modification time is set
to the time stored in the archive.</p>

<p style="margin-top: 1em"><b>--mac-metadata</b></p>

<p style="margin-left:19%;">(c, r, u and x mode only) Mac
OS X specific. Archive or extract extended ACLs and extended
file attributes using <i>copyfile</i>(3) in AppleDouble
format. This is the reverse of <b>--no-mac-metadata</b>. and
the default behavior in c, r, and u modes or if <b>tar</b>
is run in x mode as root. Currently supported only for pax
formats (</p>

<p>including pax restricted, the default tar format for
<b>bsdtar</b> )</p>

<p style="margin-top: 1em"><b>--mtime</b> <i>date</i></p>

<p style="margin-left:19%;">(c, r, u modes only) Set the
modification times of added files to the specified date.</p>

<p style="margin-top: 1em"><b>-n</b>, <b>--norecurse</b>,
<b>--no-recursion</b></p>

<p style="margin-left:19%;">Do not operate recursively on
the content of directories.</p>

<p style="margin-top: 1em"><b>--newer</b> <i>date</i></p>

<p style="margin-left:19%;">(c, r, u modes only) Only
include files and directories newer than the specified date.
This compares ctime entries.</p>

<p style="margin-top: 1em"><b>--newer-mtime</b>
<i>date</i></p>

<p style="margin-left:19%;">(c, r, u modes only) Like
<b>--newer</b>, except it compares mtime entries instead of
ctime entries.</p>

<p style="margin-top: 1em"><b>--newer-than</b>
<i>file</i></p>

<p style="margin-left:19%;">(c, r, u modes only) Only
include files and directories newer than the specified file.
This compares ctime entries.</p>

<p style="margin-top: 1em"><b>--newer-mtime-than</b>
<i>file</i></p>

<p style="margin-left:19%;">(c, r, u modes only) Like
<b>--newer-than</b>, except it compares mtime entries
instead of ctime entries.</p>

<p style="margin-top: 1em"><b>--nodump</b></p>

<p style="margin-left:19%;">(c and r modes only) Honor the
nodump file flag by skipping this file.</p>


<p style="margin-top: 1em"><b>--nopreserveHFSCompression</b></p>

<p style="margin-left:19%;">(x mode only) Mac OS X specific
(v10.6 or later). Do not compress extracted regular files
which were compressed with HFS+ compression before archived.
By default, compress the regular files again with HFS+
compression.</p>

<p style="margin-top: 1em"><b>--null</b></p>

<p style="margin-left:19%; margin-top: 1em">(use with
<b>-I</b> or <b>-T</b>) Filenames or patterns are separated
by null characters, not by newlines. This is often used to
read filenames output by the <b>-print0</b> option to
<i>find</i>(1).</p>

<p style="margin-top: 1em"><b>--no-acls</b></p>

<p style="margin-left:19%;">(c, r, u, x modes only) Do not
archive or extract POSIX.1e or NFSv4 ACLs. This is the
reverse of <b>--acls</b> and the default behavior if
<b>tar</b> is run as non-root in x mode (on Mac OS X as any
user in c, r, u and x modes).</p>

<p style="margin-top: 1em"><b>--no-fflags</b></p>

<p style="margin-left:19%;">(c, r, u, x modes only) Do not
archive or extract file attributes or file flags. This is
the reverse of <b>--fflags</b> and the default behavior if
<b>tar</b> is run as non-root in x mode.</p>

<p style="margin-top: 1em"><b>--no-mac-metadata</b></p>

<p style="margin-left:19%;">(c, r, u and x mode only) Mac
OS X specific. Do not archive or extract ACLs and extended
file attributes using <i>copyfile</i>(3) in AppleDouble
format. This is the reverse of <b>--mac-metadata</b>. and
the default behavior if <b>tar</b> is run as non-root in x
mode.</p>

<p style="margin-top: 1em"><b>--no-read-sparse</b></p>

<p style="margin-left:19%;">(c, r, u modes only) Do not
read sparse file information from disk. This is the reverse
of <b>--read-sparse</b>.</p>

<p style="margin-top: 1em"><b>--no-safe-writes</b></p>

<p style="margin-left:19%;">(x mode only) Do not create
temporary files and use <i>rename</i>(2) to replace the
original ones. This is the reverse of
<b>--safe-writes</b>.</p>

<p style="margin-top: 1em"><b>--no-same-owner</b></p>

<p style="margin-left:19%;">(x mode only) Do not extract
owner and group IDs. This is the reverse of
<b>--same-owner</b> and the default behavior if <b>tar</b>
is run as non-root.</p>


<p style="margin-top: 1em"><b>--no-same-permissions</b></p>

<p style="margin-left:19%;">(x mode only) Do not extract
full permissions (SGID, SUID, sticky bit, file attributes or
file flags, extended file attributes and ACLs). This is the
reverse of <b>-p</b> and the default behavior if <b>tar</b>
is run as non-root.</p>

<p style="margin-top: 1em"><b>--no-xattrs</b></p>

<p style="margin-left:19%;">(c, r, u, x modes only) Do not
archive or extract extended file attributes. This is the
reverse of <b>--xattrs</b> and the default behavior if
<b>tar</b> is run as non-root in x mode.</p>

<p style="margin-top: 1em"><b>--numeric-owner</b></p>

<p style="margin-left:19%;">This is equivalent to
<b>--uname</b> &quot;&quot; <b>--gname</b> &quot;&quot;. On
extract, it causes user and group names in the archive to be
ignored in favor of the numeric user and group ids. On
create, it causes user and group names to not be stored in
the archive.</p>

<p style="margin-top: 1em"><b>-O</b>,
<b>--to-stdout</b></p>

<p style="margin-left:19%;">(x, t modes only) In extract
(-x) mode, files will be written to standard out rather than
being extracted to disk. In list (-t) mode, the file listing
will be written to stderr rather than the usual stdout.</p>

<p style="margin-top: 1em"><b>-o</b></p>

<p style="margin-left:19%; margin-top: 1em">(x mode) Use
the user and group of the user running the program rather
than those specified in the archive. Note that this has no
significance unless <b>-p</b> is specified, and the program
is being run by the root user. In this case, the file modes
and flags from the archive will be restored, but ACLs or
owner information in the archive will be discarded.</p>

<p style="margin-top: 1em"><b>-o</b></p>

<p style="margin-left:19%; margin-top: 1em">(c, r, u mode)
A synonym for <b>--format</b> <i>ustar</i></p>

<p style="margin-top: 1em"><b>--older</b> <i>date</i></p>

<p style="margin-left:19%;">(c, r, u modes only) Only
include files and directories older than the specified date.
This compares ctime entries.</p>

<p style="margin-top: 1em"><b>--older-mtime</b>
<i>date</i></p>

<p style="margin-left:19%;">(c, r, u modes only) Like
<b>--older</b>, except it compares mtime entries instead of
ctime entries.</p>

<p style="margin-top: 1em"><b>--older-than</b>
<i>file</i></p>

<p style="margin-left:19%;">(c, r, u modes only) Only
include files and directories older than the specified file.
This compares ctime entries.</p>

<p style="margin-top: 1em"><b>--older-mtime-than</b>
<i>file</i></p>

<p style="margin-left:19%;">(c, r, u modes only) Like
<b>--older-than</b>, except it compares mtime entries
instead of ctime entries.</p>

<p style="margin-top: 1em"><b>--one-file-system</b></p>

<p style="margin-left:19%;">(c, r, and u modes) Do not
cross mount points.</p>

<p style="margin-top: 1em"><b>--options</b>
<i>options</i></p>

<p style="margin-left:19%;">Select optional behaviors for
particular modules. The argument is a text string containing
comma-separated keywords and values. These are passed to the
modules that handle particular formats to control how those
formats will behave. Each option has one of the following
forms:</p>

<p style="margin-top: 1em"><i>key=value</i></p>

<p style="margin-left:29%;">The key will be set to the
specified value in every module that supports it. Modules
that do not support this key will ignore it.</p>

<p><i>key</i></p>

<p style="margin-left:29%; margin-top: 1em">The key will be
enabled in every module that supports it. This is equivalent
to <i>key</i><b>=1</b>.</p>

<p><i>!key</i></p>

<p style="margin-left:29%; margin-top: 1em">The key will be
disabled in every module that supports it.</p>

<p><i>module:key=value</i>, <i>module:key</i>,
<i>module:!key</i></p>

<p style="margin-left:29%;">As above, but the corresponding
key and value will be provided only to modules whose name
matches <i>module</i>.</p>

<p style="margin-left:19%; margin-top: 1em">The complete
list of supported modules and keys for create and append
modes is in <i>archive_write_set_options</i>(3) and for
extract and list modes in
<i>archive_read_set_options</i>(3).</p>

<p style="margin-left:19%; margin-top: 1em">Examples of
supported options:</p>

<p style="margin-top: 1em"><b>iso9660:joliet</b></p>

<p style="margin-left:29%;">Support Joliet extensions. This
is enabled by default, use <b>!joliet</b> or
<b>iso9660:!joliet</b> to disable.</p>

<p><b>iso9660:rockridge</b></p>

<p style="margin-left:29%;">Support Rock Ridge extensions.
This is enabled by default, use <b>!rockridge</b> or
<b>iso9660:!rockridge</b> to disable.</p>

<p><b>gzip:compression-level</b></p>

<p style="margin-left:29%;">A decimal integer from 1 to 9
specifying the gzip compression level.</p>

<p><b>gzip:timestamp</b></p>

<p style="margin-left:29%;">Store timestamp. This is
enabled by default, use <b>!timestamp</b> or
<b>gzip:!timestamp</b> to disable.</p>

<p><b>lrzip:compression</b>=<i>type</i></p>

<p style="margin-left:29%;">Use <i>type</i> as compression
method. Supported values are bzip2, gzip, lzo (ultra fast),
and zpaq (best, extremely slow).</p>

<p><b>lrzip:compression-level</b></p>

<p style="margin-left:29%;">A decimal integer from 1 to 9
specifying the lrzip compression level.</p>

<p><b>lz4:compression-level</b></p>

<p style="margin-left:29%;">A decimal integer from 1 to 9
specifying the lzop compression level.</p>

<p><b>lz4:stream-checksum</b></p>

<p style="margin-left:29%;">Enable stream checksum. This is
by default, use <b>lz4:!stream-checksum</b> to disable.</p>

<p><b>lz4:block-checksum</b></p>

<p style="margin-left:29%;">Enable block checksum (Disabled
by default).</p>

<p><b>lz4:block-size</b></p>

<p style="margin-left:29%;">A decimal integer from 4 to 7
specifying the lz4 compression block size (7 is set by
default).</p>

<p><b>lz4:block-dependence</b></p>

<p style="margin-left:29%;">Use the previous block of the
block being compressed for a compression dictionary to
improve compression ratio.</p>

<p><b>zstd:compression-level</b>=<i>N</i></p>

<p style="margin-left:29%;">A decimal integer specifying
the zstd compression level. Supported values depend on the
library version, common values are from 1 to 22.</p>

<p><b>zstd:threads</b>=<i>N</i></p>

<p style="margin-left:29%;">Specify the number of worker
threads to use, or 0 to use as many threads as there are CPU
cores in the system.</p>

<p><b>zstd:frame-per-file</b></p>

<p style="margin-left:29%;">Start a new compression frame
at the beginning of each file in the archive.</p>

<p><b>zstd:min-frame-in</b>=<i>N</i></p>

<p style="margin-left:29%;">In combination with
<b>zstd:frame-per-file</b>, do not start a new compression
frame unless the uncompressed size of the current frame is
at least <i>N</i> bytes. The number may be followed by <b>k
/ kB</b>, <b>M / MB</b>, or <b>G / GB</b> to indicate
kilobytes, megabytes or gigabytes respectively.</p>

<p><b>zstd:min-frame-out</b>=<i>N</i>,
<b>zstd:min-frame-size</b>=<i>N</i></p>

<p style="margin-left:29%;">In combination with
<b>zstd:frame-per-file</b>, do not start a new compression
frame unless the compressed size of the current frame is at
least <i>N</i> bytes. The number may be followed by <b>k /
kB</b>, <b>M / MB</b>, or <b>G / GB</b> to indicate
kilobytes, megabytes or gigabytes respectively.</p>

<p><b>zstd:max-frame-in</b>=<i>N</i>,
<b>zstd:max-frame-size</b>=<i>N</i></p>

<p style="margin-left:29%;">Start a new compression frame
as soon as possible after the uncompressed size of the
current frame exceeds <i>N</i> bytes. The number may be
followed by <b>k / kB</b>, <b>M / MB</b>, or <b>G / GB</b>
to indicate kilobytes, megabytes or gigabytes respectively.
Values less than 1,024 will be rejected.</p>

<p><b>zstd:max-frame-out</b>=<i>N</i></p>

<p style="margin-left:29%;">Start a new compression frame
as soon as possible after the compressed size of the current
frame exceeds <i>N</i> bytes. The number may be followed by
<b>k / kB</b>, <b>M / MB</b>, or <b>G / GB</b> to indicate
kilobytes, megabytes or gigabytes respectively. Values less
than 1,024 will be rejected.</p>

<p><b>lzop:compression-level</b></p>

<p style="margin-left:29%;">A decimal integer from 1 to 9
specifying the lzop compression level.</p>

<p><b>xz:compression-level</b></p>

<p style="margin-left:29%;">A decimal integer from 0 to 9
specifying the xz compression level.</p>

<p><b>xz:threads</b></p>

<p style="margin-left:29%;">Specify the number of worker
threads to use. Setting threads to a special value 0 makes
<i>xz</i>(1) use as many threads as there are CPU cores on
the system.</p>

<p><b>mtree:</b><i>keyword</i></p>

<p style="margin-left:29%;">The mtree writer module allows
you to specify which mtree keywords will be included in the
output. Supported keywords include: <b>cksum</b>,
<b>device</b>, <b>flags</b>, <b>gid</b>, <b>gname</b>,
<b>indent</b>, <b>link</b>, <b>md5</b>, <b>mode</b>,
<b>nlink</b>, <b>rmd160</b>, <b>sha1</b>, <b>sha256</b>,
<b>sha384</b>, <b>sha512</b>, <b>size</b>, <b>time</b>,
<b>uid</b>, <b>uname</b>. The default is equivalent to:
&ldquo;device, flags, gid, gname, link, mode, nlink, size,
time, type, uid, uname&rdquo;.</p>

<p><b>mtree:all</b></p>

<p style="margin-left:29%;">Enables all of the above
keywords. You can also use <b>mtree:!all</b> to disable all
keywords.</p>

<p><b>mtree:use-set</b></p>

<p style="margin-left:29%;">Enable generation of
<b>/set</b> lines in the output.</p>

<p><b>mtree:indent</b></p>

<p style="margin-left:29%;">Produce human-readable output
by indenting options and splitting lines to fit into 80
columns.</p>

<p><b>zip:compression</b>=<i>type</i></p>

<p style="margin-left:29%;">Use <i>type</i> as compression
method. Supported values are store (uncompressed) and
deflate (gzip algorithm).</p>

<p><b>zip:encryption</b></p>

<p style="margin-left:29%;">Enable encryption using
traditional zip encryption.</p>

<p><b>zip:encryption</b>=<i>type</i></p>

<p style="margin-left:29%;">Use <i>type</i> as encryption
type. Supported values are zipcrypt (traditional zip
encryption), aes128 (WinZip AES-128 encryption) and aes256
(WinZip AES-256 encryption).</p>

<p><b>read_concatenated_archives</b></p>

<p style="margin-left:29%;">Ignore zeroed blocks in the
archive, which occurs when multiple tar archives have been
concatenated together. Without this option, only the
contents of the first concatenated archive would be read.
This option is comparable to the <b>-i</b>,
<b>--ignore-zeros</b> option of GNU tar.</p>

<p style="margin-left:19%; margin-top: 1em">If a provided
option is not supported by any module, that is a fatal
error.</p>

<p style="margin-top: 1em"><b>-P</b>,
<b>--absolute-paths</b></p>

<p style="margin-left:19%;">Preserve pathnames. By default,
absolute pathnames (those that begin with a / character)
have the leading slash removed both when creating archives
and extracting from them. Also, <b>tar</b> will refuse to
extract archive entries whose pathnames contain <i>..</i> or
whose target directory would be altered by a symlink. This
option suppresses these behaviors.</p>

<p style="margin-top: 1em"><b>-p</b>, <b>--insecure</b>,
<b>--preserve-permissions</b></p>

<p style="margin-left:19%;">(x mode only) Preserve file
permissions. Attempt to restore the full permissions,
including file modes, file attributes or file flags,
extended file attributes and ACLs, if available, for each
item extracted from the archive. This is the reverse of
<b>--no-same-permissions</b> and the default if <b>tar</b>
is being run as root. It can be partially overridden by also
specifying <b>--no-acls</b>, <b>--no-fflags</b>,
<b>--no-mac-metadata</b> or <b>--no-xattrs</b>.</p>

<p style="margin-top: 1em"><b>--passphrase</b>
<i>passphrase</i></p>

<p style="margin-left:19%;">The <i>passphrase</i> is used
to extract or create an encrypted archive. Currently, zip is
the only supported format that supports encryption. You
shouldn&rsquo;t use this option unless you realize how
insecure use of this option is.</p>

<p style="margin-top: 1em"><b>--posix</b></p>

<p style="margin-left:19%;">(c, r, u mode only) Synonym for
<b>--format</b> <i>pax</i></p>

<p style="margin-top: 1em"><b>-q</b>,
<b>--fast-read</b></p>

<p style="margin-left:19%;">(x and t mode only) Extract or
list only the first archive entry that matches each pattern
or filename operand. Exit as soon as each specified pattern
or filename has been matched. By default, the archive is
always read to the very end, since there can be multiple
entries with the same name and, by convention, later entries
overwrite earlier entries. This option is provided as a
performance optimization.</p>

<p style="margin-top: 1em"><b>--read-sparse</b></p>

<p style="margin-left:19%;">(c, r, u modes only) Read
sparse file information from disk. This is the reverse of
<b>--no-read-sparse</b> and the default behavior.</p>

<p style="margin-top: 1em"><b>-S</b></p>

<p style="margin-left:19%; margin-top: 1em">(x mode only)
Extract files as sparse files. For every block on disk,
check first if it contains only NULL bytes and seek over it
otherwise. This works similar to the conv=sparse option of
dd.</p>

<p style="margin-top: 1em"><b>-s</b> <i>pattern</i></p>

<p style="margin-left:19%;">Modify file or archive member
names according to <i>pattern</i>. The pattern has the
format <i>/old/new/</i>[bghHprRsS] where <i>old</i> is a
basic regular expression, <i>new</i> is the replacement
string of the matched part, and the optional trailing
letters modify how the replacement is handled. If <i>old</i>
is not matched, the pattern is skipped. Within <i>new</i>,
&#732; is substituted with the match, \1 to \9 with the
content of the corresponding captured group. The optional
trailing g specifies that matching should continue after the
matched part and stop on the first unmatched pattern. The
optional trailing s specifies that the pattern applies to
the value of symbolic links. The optional trailing p
specifies that after a successful substitution the original
path name and the new path name should be printed to
standard error. The optional trailing b specifies that the
substitution should be matched from the beginning of the
string rather than from right after the position at which
the previous matching substitution ended. Optional trailing
H, R, or S characters suppress substitutions for hardlink
targets, regular filenames, or symlink targets,
respectively. Optional trailing h, r, or s characters enable
substitutions for hardlink targets, regular filenames, or
symlink targets, respectively. The default is <i>hrs</i>
which applies substitutions to all names. In particular, it
is never necessary to specify h, r, or s.</p>

<p style="margin-top: 1em"><b>--safe-writes</b></p>

<p style="margin-left:19%;">(x mode only) Extract files
atomically. By default <b>tar</b> unlinks the original file
with the same name as the extracted file (if it exists), and
then creates it immediately under the same name and writes
to it. For a short period of time, applications trying to
access the file might not find it, or see incomplete
results. If <b>--safe-writes</b> is enabled, <b>tar</b>
first creates a unique temporary file, then writes the new
contents to the temporary file, and finally renames the
temporary file to its final name atomically using
<i>rename</i>(2). This guarantees that an application
accessing the file, will either see the old contents or the
new contents at all times.</p>

<p style="margin-top: 1em"><b>--same-owner</b></p>

<p style="margin-left:19%;">(x mode only) Extract owner and
group IDs. This is the reverse of <b>--no-same-owner</b> and
the default behavior if <b>tar</b> is run as root.</p>

<p style="margin-top: 1em"><b>--strip-components</b>
<i>count</i></p>

<p style="margin-left:19%;">Remove the specified number of
leading path elements. Pathnames with fewer elements will be
silently skipped. Note that the pathname is edited after
checking inclusion/exclusion patterns but before security
checks.</p>

<p style="margin-top: 1em"><b>-T</b> <i>filename</i>,
<b>--files-from</b> <i>filename</i></p>

<p style="margin-left:19%;">In x or t mode, <b>tar</b> will
read the list of names to be extracted from <i>filename</i>.
In c mode, <b>tar</b> will read names to be archived from
<i>filename</i>. The special name &ldquo;-C&rdquo; on a line
by itself will cause the current directory to be changed to
the directory specified on the following line. Names are
terminated by newlines unless <b>--null</b> is specified.
Note that <b>--null</b> also disables the special handling
of lines containing &ldquo;-C&rdquo;. Note: If you are
generating lists of files using <i>find</i>(1), you probably
want to use <b>-n</b> as well.</p>

<p style="margin-top: 1em"><b>--totals</b></p>

<p style="margin-left:19%;">(c, r, u modes only) After
archiving all files, print a summary to stderr.</p>

<p style="margin-top: 1em"><b>-U</b>, <b>--unlink</b>,
<b>--unlink-first</b></p>

<p style="margin-left:19%;">(x mode only) Unlink files
before creating them. This can be a minor performance
optimization if most files already exist, but can make
things slower if most files do not already exist. This flag
also causes <b>tar</b> to remove intervening directory
symlinks instead of reporting an error. See the
&ldquo;SECURITY&rdquo; section below for more details.</p>

<p style="margin-top: 1em"><b>--uid</b> <i>id</i></p>

<p style="margin-left:19%;">Use the provided user id number
and ignore the user name from the archive. On create, if
<b>--uname</b> is not also specified, the user name will be
set to match the user id.</p>

<p style="margin-top: 1em"><b>--uname</b> <i>name</i></p>

<p style="margin-left:19%;">Use the provided user name. On
extract, this overrides the user name in the archive; if the
provided user name does not exist on the system, it will be
ignored and the user id (from the archive or from the
<b>--uid</b> option) will be used instead. On create, this
sets the user name that will be stored in the archive; the
name is not verified against the system user database.</p>

<p style="margin-top: 1em"><b>--use-compress-program</b>
<i>program</i></p>

<p style="margin-left:19%;">Pipe the input (in x or t mode)
or the output (in c mode) through <i>program</i> instead of
using the builtin compression support.</p>

<p style="margin-top: 1em"><b>--owner</b>
<i>name</i>[:<i>uid</i>]</p>

<p style="margin-left:19%;">Use the provided user, if
<i>uid</i> is not provided, <i>name</i> can be either an
username or numeric id. See the <b>--uname</b> option for
details.</p>

<p style="margin-top: 1em"><b>-v</b>, <b>--verbose</b></p>

<p style="margin-left:19%;">Produce verbose output. In
create and extract modes, <b>tar</b> will list each file
name as it is read from or written to the archive. In list
mode, <b>tar</b> will produce output similar to that of
<i>ls</i>(1). An additional <b>-v</b> option will also
provide ls-like details in create and extract mode.</p>

<p style="margin-top: 1em"><b>--version</b></p>

<p style="margin-left:19%;">Print version of <b>tar</b> and
<b>libarchive</b>, and exit.</p>

<p style="margin-top: 1em"><b>-w</b>,
<b>--confirmation</b>, <b>--interactive</b></p>

<p style="margin-left:19%;">Ask for confirmation for every
action.</p>

<p style="margin-top: 1em"><b>-X</b> <i>filename</i>,
<b>--exclude-from</b> <i>filename</i></p>

<p style="margin-left:19%;">Read a list of exclusion
patterns from the specified file. See <b>--exclude</b> for
more information about the handling of exclusions.</p>

<p style="margin-top: 1em"><b>--xattrs</b></p>

<p style="margin-left:19%;">(c, r, u, x modes only) Archive
or extract extended file attributes. This is the reverse of
<b>--no-xattrs</b> and the default behavior in c, r, and u
modes or if <b>tar</b> is run in x mode as root.</p>

<p style="margin-top: 1em"><b>-y</b></p>

<p style="margin-left:19%; margin-top: 1em">(c mode only)
Compress the resulting archive with <i>bzip2</i>(1). In
extract or list modes, this option is ignored. Note that
this <b>tar</b> implementation recognizes bzip2 compression
automatically when reading archives.</p>

<p style="margin-top: 1em"><b>-Z</b>, <b>--compress</b>,
<b>--uncompress</b></p>

<p style="margin-left:19%;">(c mode only) Compress the
resulting archive with <i>compress</i>(1). In extract or
list modes, this option is ignored. Note that this
<b>tar</b> implementation recognizes compress compression
automatically when reading archives.</p>

<p style="margin-top: 1em"><b>-z</b>, <b>--gunzip</b>,
<b>--gzip</b></p>

<p style="margin-left:19%;">(c mode only) Compress the
resulting archive with <i>gzip</i>(1). In extract or list
modes, this option is ignored. Note that this <b>tar</b>
implementation recognizes gzip compression automatically
when reading archives.</p>

<p style="margin-top: 1em"><b>ENVIRONMENT</b></p>

<p style="margin-left:9%;">The following environment
variables affect the execution of <b>tar</b>:</p>

<p style="margin-top: 1em">TAR_READER_OPTIONS</p>

<p style="margin-left:19%;">The default options for format
readers and compression readers. The <b>--options</b> option
overrides this.</p>

<p style="margin-top: 1em">TAR_WRITER_OPTIONS</p>

<p style="margin-left:19%;">The default options for format
writers and compression writers. The <b>--options</b> option
overrides this.</p>

<p style="margin-top: 1em">LANG</p>

<p style="margin-left:19%; margin-top: 1em">The locale to
use. See <i>environ</i>(7) for more information.</p>

<p style="margin-top: 1em">TAPE</p>

<p style="margin-left:19%; margin-top: 1em">The default
device. The <b>-f</b> option overrides this. Please see the
description of the <b>-f</b> option above for more
details.</p>

<p style="margin-top: 1em">TZ</p>

<p style="margin-left:19%; margin-top: 1em">The timezone to
use when displaying dates. See <i>environ</i>(7) for more
information.</p>

<p style="margin-top: 1em"><b>EXIT STATUS</b></p>

<p style="margin-left:9%;">The <b>tar</b> utility
exits&nbsp;0 on success, and&nbsp;&gt;0 if an error
occurs.</p>

<p style="margin-top: 1em"><b>EXAMPLES</b></p>

<p style="margin-left:9%;">The following creates a new
archive called <i>file.tar.gz</i> that contains two files
<i>source.c</i> and <i>source.h</i>:</p>

<p style="margin-left:17%; margin-top: 1em"><b>tar -czf</b>
<i>file.tar.gz source.c source.h</i></p>

<p style="margin-left:9%; margin-top: 1em">To view a
detailed table of contents for this archive:</p>

<p style="margin-left:17%; margin-top: 1em"><b>tar -tvf</b>
<i>file.tar.gz</i></p>

<p style="margin-left:9%; margin-top: 1em">To extract all
entries from the archive on the default tape drive:</p>

<p style="margin-left:17%; margin-top: 1em"><b>tar
-x</b></p>

<p style="margin-left:9%; margin-top: 1em">To examine the
contents of an ISO 9660 cdrom image:</p>

<p style="margin-left:17%; margin-top: 1em"><b>tar -tf</b>
<i>image.iso</i></p>

<p style="margin-left:9%; margin-top: 1em">To move file
hierarchies, invoke <b>tar</b> as</p>

<p style="margin-left:17%; margin-top: 1em"><b>tar -cf</b>
<i>-</i> <b>-C</b> <i>srcdir .</i> | <b>tar -xpf</b>
<i>-</i> <b>-C</b> <i>destdir</i></p>

<p style="margin-left:9%; margin-top: 1em">or more
traditionally</p>

<p style="margin-left:17%; margin-top: 1em"><b>cd srcdir ;
tar -cf</b> <i>- .</i> | (<i>cd destdir ;</i> <b>tar
-xpf</b> <i>-</i>)</p>

<p style="margin-left:9%; margin-top: 1em">In create mode,
the list of files and directories to be archived can also
include directory change instructions of the form
<b>-C</b><i>foo/baz</i> and archive inclusions of the form
<b>@@</b><i>archive-file</i>. For example, the command
line</p>

<p style="margin-left:17%; margin-top: 1em"><b>tar -c
-f</b> <i>new.tar foo1</i> <b>@@</b><i>old.tgz</i>
<b>-C</b><i>/tmp foo2</i></p>

<p style="margin-left:9%; margin-top: 1em">will create a
new archive <i>new.tar</i>. <b>tar</b> will read the file
<i>foo1</i> from the current directory and add it to the
output archive. It will then read each entry from
<i>old.tgz</i> and add those entries to the output archive.
Finally, it will switch to the <i>/tmp</i> directory and add
<i>foo2</i> to the output archive.</p>

<p style="margin-left:9%; margin-top: 1em">An input file in
<i>mtree</i>(5) format can be used to create an output
archive with arbitrary ownership, permissions, or names that
differ from existing data on disk:</p>

<p style="margin-left:17%; margin-top: 1em">$ cat
input.mtree <br>
#mtree <br>
usr/bin uid=0 gid=0 mode=0755 type=dir <br>
usr/bin/ls uid=0 gid=0 mode=0755 type=file content=myls <br>
$ tar -cvf output.tar @@input.mtree</p>

<p style="margin-left:9%; margin-top: 1em">The
<b>--newer</b> and <b>--newer-mtime</b> switches accept a
variety of common date and time specifications, including
&ldquo;12 Mar 2005 7:14:29pm&rdquo;, &ldquo;2005-03-12
19:14&rdquo;, &ldquo;5 minutes ago&rdquo;, and &ldquo;19:14
PST May 1&rdquo;.</p>

<p style="margin-left:9%; margin-top: 1em">The
<b>--options</b> argument can be used to control various
details of archive generation or reading. For example, you
can generate mtree output which only contains <b>type</b>,
<b>time</b>, and <b>uid</b> keywords:</p>

<p style="margin-left:17%; margin-top: 1em"><b>tar -cf</b>
<i>file.tar</i> <b>--format=mtree
--options=&rsquo;!all,type,time,uid&rsquo;</b>
<i>dir</i></p>

<p style="margin-left:9%; margin-top: 1em">or you can set
the compression level used by gzip or xz compression:</p>

<p style="margin-left:17%; margin-top: 1em"><b>tar -czf</b>
<i>file.tar</i>
<b>--options=&rsquo;compression-level=9&rsquo;</b>.</p>

<p style="margin-left:9%; margin-top: 1em">For more
details, see the explanation of the
<b>archive_read_set_options</b>() and
<b>archive_write_set_options</b>() API calls that are
described in <i>archive_read</i>(3) and
<i>archive_write</i>(3).</p>

<p style="margin-top: 1em"><b>COMPATIBILITY</b></p>

<p style="margin-left:9%;">The bundled-arguments format is
supported for compatibility with historic implementations.
It consists of an initial word (with no leading - character)
in which each character indicates an option. Arguments
follow as separate words. The order of the arguments must
match the order of the corresponding characters in the
bundled command word. For example,</p>

<p style="margin-left:17%; margin-top: 1em"><b>tar tbf
32</b> <i>file.tar</i></p>

<p style="margin-left:9%; margin-top: 1em">specifies three
flags <b>t</b>, <b>b</b>, and <b>f</b>. The <b>b</b> and
<b>f</b> flags both require arguments, so there must be two
additional items on the command line. The <i>32</i> is the
argument to the <b>b</b> flag, and <i>file.tar</i> is the
argument to the <b>f</b> flag.</p>

<p style="margin-left:9%; margin-top: 1em">The mode options
c, r, t, u, and x and the options b, f, l, m, o, v, and w
comply with SUSv2.</p>

<p style="margin-left:9%; margin-top: 1em">For maximum
portability, scripts that invoke <b>tar</b> should use the
bundled-argument format above, should limit themselves to
the <b>c</b>, <b>t</b>, and <b>x</b> modes, and the
<b>b</b>, <b>f</b>, <b>m</b>, <b>v</b>, and <b>w</b>
options.</p>

<p style="margin-left:9%; margin-top: 1em">Additional long
options are provided to improve compatibility with other tar
implementations.</p>

<p style="margin-top: 1em"><b>SECURITY</b></p>

<p style="margin-left:9%;">Certain security issues are
common to many archiving programs, including <b>tar</b>. In
particular, carefully-crafted archives can request that
<b>tar</b> extract files to locations outside of the target
directory. This can potentially be used to cause unwitting
users to overwrite files they did not intend to overwrite.
If the archive is being extracted by the superuser, any file
on the system can potentially be overwritten. There are
three ways this can happen. Although <b>tar</b> has
mechanisms to protect against each one, savvy users should
be aware of the implications:</p>

<p style="margin-top: 1em"><b>&bull;</b></p>

<p style="margin-left:19%;">Archive entries can have
absolute pathnames. By default, <b>tar</b> removes the
leading <i>/</i> character from filenames before restoring
them to guard against this problem.</p>

<p style="margin-top: 1em"><b>&bull;</b></p>

<p style="margin-left:19%;">Archive entries can have
pathnames that include <i>..</i> components. By default,
<b>tar</b> will not extract files containing <i>..</i>
components in their pathname.</p>

<p style="margin-top: 1em"><b>&bull;</b></p>

<p style="margin-left:19%;">Archive entries can exploit
symbolic links to restore files to other directories. An
archive can restore a symbolic link to another directory,
then use that link to restore a file into that directory. To
guard against this, <b>tar</b> checks each extracted path
for symlinks. If the final path element is a symlink, it
will be removed and replaced with the archive entry. If
<b>-U</b> is specified, any intermediate symlink will also
be unconditionally removed. If neither <b>-U</b> nor
<b>-P</b> is specified, <b>tar</b> will refuse to extract
the entry.</p>

<p style="margin-left:9%; margin-top: 1em">To protect
yourself, you should be wary of any archives that come from
untrusted sources. You should examine the contents of an
archive with</p>

<p style="margin-left:17%; margin-top: 1em"><b>tar -tf</b>
<i>filename</i></p>

<p style="margin-left:9%; margin-top: 1em">before
extraction. You should use the <b>-k</b> option to ensure
that <b>tar</b> will not overwrite any existing files or the
<b>-U</b> option to remove any pre-existing files. You
should generally not extract archives while running with
super-user privileges. Note that the <b>-P</b> option to
<b>tar</b> disables the security checks above and allows you
to extract an archive while preserving any absolute
pathnames, <i>..</i> components, or symlinks to other
directories.</p>

<p style="margin-top: 1em"><b>SEE ALSO</b></p>

<p style="margin-left:9%;"><i>bzip2</i>(1),
<i>compress</i>(1), <i>cpio</i>(1), <i>gzip</i>(1),
<i>mt</i>(1), <i>pax</i>(1), <i>shar</i>(1), <i>xz</i>(1),
<i>libarchive</i>(3), <i>libarchive-formats</i>(5),
<i>tar</i>(5)</p>

<p style="margin-top: 1em"><b>STANDARDS</b></p>

<p style="margin-left:9%;">There is no current POSIX
standard for the tar command; it appeared in ISO/IEC
9945-1:1996 (&ldquo;POSIX.1&rdquo;) but was dropped from
IEEE Std 1003.1-2001 (&ldquo;POSIX.1&rdquo;). The options
supported by this implementation were developed by surveying
a number of existing tar implementations as well as the old
POSIX specification for tar and the current POSIX
specification for pax.</p>

<p style="margin-left:9%; margin-top: 1em">The ustar and
pax interchange file formats are defined by IEEE Std
1003.1-2001 (&ldquo;POSIX.1&rdquo;) for the pax command.</p>

<p style="margin-top: 1em"><b>HISTORY</b></p>

<p style="margin-left:9%;">A <b>tar</b> command appeared in
Seventh Edition Unix, which was released in January, 1979.
There have been numerous other implementations, many of
which extended the file format. John Gilmore&rsquo;s
<b>pdtar</b> public-domain implementation (circa November,
1987) was quite influential, and formed the basis of GNU
tar. GNU tar was included as the standard system tar in
FreeBSD beginning with FreeBSD&nbsp;1.0.</p>

<p style="margin-left:9%; margin-top: 1em">This is a
complete re-implementation based on the <i>libarchive</i>(3)
library. It was first released with FreeBSD&nbsp;5.4 in May,
2005.</p>

<p style="margin-top: 1em"><b>BUGS</b></p>

<p style="margin-left:9%;">This program follows ISO/IEC
9945-1:1996 (&ldquo;POSIX.1&rdquo;) for the definition of
the <b>-l</b> option. Note that GNU tar prior to version
1.15 treated <b>-l</b> as a synonym for the
<b>--one-file-system</b> option.</p>

<p style="margin-left:9%; margin-top: 1em">The <b>-C</b>
<i>dir</i> option may differ from historic
implementations.</p>

<p style="margin-left:9%; margin-top: 1em">All archive
output is written in correctly-sized blocks, even if the
output is being compressed. Whether or not the last output
block is padded to a full block size varies depending on the
format and the output device. For tar and cpio formats, the
last block of output is padded to a full block size if the
output is being written to standard output or to a character
or block device such as a tape drive. If the output is being
written to a regular file, the last block will not be
padded. Many compressors, including <i>gzip</i>(1) and
<i>bzip2</i>(1), complain about the null padding when
decompressing an archive created by <b>tar</b>, although
they still extract it correctly.</p>

<p style="margin-left:9%; margin-top: 1em">The compression
and decompression is implemented internally, so there may be
insignificant differences between the compressed output
generated by</p>

<p style="margin-left:17%; margin-top: 1em"><b>tar -czf</b>
<i>- file</i></p>

<p style="margin-left:9%; margin-top: 1em">and that
generated by</p>

<p style="margin-left:17%; margin-top: 1em"><b>tar -cf</b>
<i>- file</i> | <b>gzip</b></p>

<p style="margin-left:9%; margin-top: 1em">The default
should be to read and write archives to the standard I/O
paths, but tradition (and POSIX) dictates otherwise.</p>

<p style="margin-left:9%; margin-top: 1em">The <b>r</b> and
<b>u</b> modes require that the archive be uncompressed and
located in a regular file on disk. Other archives can be
modified using <b>c</b> mode with the <i>@@archive-file</i>
extension.</p>

<p style="margin-left:9%; margin-top: 1em">To archive a
file called <i>@@foo</i> or <i>-foo</i> you must specify it
as <i>./@@foo</i> or <i>./-foo</i>, respectively.</p>

<p style="margin-left:9%; margin-top: 1em">In create mode,
a leading <i>./</i> is always removed. A leading <i>/</i> is
stripped unless the <b>-P</b> option is specified.</p>

<p style="margin-left:9%; margin-top: 1em">There needs to
be better support for file selection on both create and
extract.</p>

<p style="margin-left:9%; margin-top: 1em">There is not yet
any support for multi-volume archives.</p>

<p style="margin-left:9%; margin-top: 1em">Converting
between dissimilar archive formats (such as tar and cpio)
using the <b>@@</b><i>-</i> convention can cause hard link
information to be lost. This is a consequence of the
incompatible ways that different archive formats store
hardlink information. Debian April 23, 2024
<i>TAR</i>(1)</p>
<hr>
</body>
</html>
@


1.21
log
@libarchive: updated to 3.8.6

Libarchive 3.8.6 is a security and bugfix release.

Notable fixes:

libarchive: fix incompatibility with Nettle 4.x
libarchive: fix NULL pointer dereference in archive_acl_from_text_w()
bsdunzip: fix ISO week year and Gregorian year confusion
7zip: ix SEGV in check_7zip_header_in_sfx via ELF offset validation
7zip: fix out-of-bounds access on ELF 64-bit header
RAR5 reader: fix infinite loop in rar5 decompression
RAR5 reader: fix potential memory leak
RAR5: fix SIGSEGV when archive_read_support_format_rar5 is called twice
CAB reader: fix memory leak on repeated calls to archive_read_support_format_cab
mtree reader: Fix file descriptor leak in mtree parser cleanup
various small bugfixes in code and documentation
@
text
@d2 1
a2 1
<!-- CreationDate: Tue Mar 10 09:57:30 2026 -->
@


1.20
log
@libarchive: updated to 3.8.5

3.8.5

Notable bugxies:

bsdtar: fix regression from 3.8.4 zero-length pattern issue bugfix
various small bugfixes in code and documentation
@
text
@d2 1
a2 1
<!-- CreationDate: Mon Jan  5 10:42:46 2026 -->
@


1.19
log
@libarchive: updated to 3.8.4

3.8.4

Notable bugxies:

bsdtar: Fix zero-length pattern issue
lib: Fix regression introduced in libarchive 3.8.2 when walking enterable but unreadable directories
@
text
@d2 1
a2 1
<!-- CreationDate: Mon Dec  1 12:42:39 2025 -->
@


1.18
log
@libarchive: updated to 3.8.3

Libarchive 3.8.3 is a bugfix and security release.

Security fixes:

lib: Create temporary files in the target directory
lha: Fix for an out-of-bounds buffer overrun when using p[H_LEVEL_OFFSET]
7-zip: Fix a buffer overrun when reading truncated 7zip headers

Notable bugxies:

lz4 and zstd: Support both lz4 and zstd data with leading skippable frames
@
text
@d2 1
a2 1
<!-- CreationDate: Mon Nov 17 22:19:03 2025 -->
@


1.17
log
@libarchive: updated to 3.8.2

Libarchive 3.8.2 is a bugfix and security release.

Security fixes:

7zip: Fix out of boundary access
tar reader: fix checking the result of the strftime

Notable bugfixes:

bsdtar: Allow filename to have CRLF endings
lib: archive_read_data: handle sparse holes at end of file correctly
lib: improve filter process handling
lib: fix error checking in writing files
lib: handle possible errors from system calls
lib: avoid leaking file descriptors into subprocesses
lib: parse_date: handle dates in 2038 and beyond if time_t is big enough
RAR5 reader: fix multiple issues in extra field parsing function
RAR5 reader: early fail when file declares data for a dir entry
tar writer: fix replacing a regular file with a dir for ARCHIVE_EXTRACT_SAFE_WRITES
tar reader (Windows): check WCS pathname in header_gnutar before overwriting
tar reader: fix an infinite loop when parsing V headers
zip writer: fix a memory leak if write callback error early
zip writer: fix writing with ZSTD compression
zstd write filter: enable Zstandard's checksum feature
@
text
@d2 1
a2 1
<!-- CreationDate: Wed Oct 15 21:49:47 2025 -->
@


1.16
log
@libarchive: updated to 3.8.1

3.8.1

Important bugfixes

various compilation fixes
fixed undefined behavior in a function in warc reader
Windows binary uses xz 5.2.5
@
text
@d2 1
a2 1
<!-- CreationDate: Sun Jun  1 19:29:41 2025 -->
@


1.15
log
@libarchive bsdtar: updated to 3.8.0

Libarchive 3.8.0 is a feature and bugfix release.

New features:
bsdtar: support --mtime and --clamp-mtime
lib: mbedtls 3.x compatibility
7-zip reader: improve self-extracting archive detection
xar: xmllite support for the XAR reader and writer
zip writer: added XZ, LZMA, ZSTD and BZIP2 support
zip writer: added LZMA + RISCV BCJ filter

Notable security fixes:
rar: do not skip past EOF while reading
rar: fix double free with over 4 billion nodes
rar: fix heap-buffer-overflow
warc: prevent signed integer overflow
tar: fix overflow in build_ustar_entry

Notable bugfixes:
bsdtar: don't hardlink negative inode files together
gz: allow setting the original filename for gzip compressed files
lib: improve lseek handling
lib: support @@-prefixed Unix epoch timestamps as date strings
rar: support large headers on 32 bit systems
tar reader: Improve LFS support on 32 bit systems
@
text
@d2 1
a2 1
<!-- CreationDate: Tue May 20 09:02:20 2025 -->
@


1.14
log
@bsdtar libarchive: updated to 3.7.9

3.7.9

Important bugfixes:

a regression in libarchive 3.7.8 regarding GNU sparse entries was fixed


3.7.8

Security fixes:

tar reader: Handle truncation in the middle of a GNU long linkname
unzip: fix null pointer dereference
tar reader: fix unchecked return value in list_item_verbose()

Important bugfixes:

7zip reader: add SPARC
tar reader: Ignore ustar size when pax size is present
tar writer: Fix bug when -s/a/b/ used more than once with b flag
cpio: Fix a Y2038 bug on Windows
libarchive: Handle ARCHIVE_FILTER_LZOP in archive_read_append_filter
libarchive: Adding missing seeker function to archive_read_open_FILE()
@
text
@d2 1
a2 1
<!-- CreationDate: Sun Mar 30 20:07:39 2025 -->
d231 6
d480 5
d557 5
a561 5
<p style="margin-left:19%;">(x mode only) Mac OS X
specific. Do not archive or extract ACLs and extended file
attributes using <i>copyfile</i>(3) in AppleDouble format.
This is the reverse of <b>--mac-metadata</b>. and the
default behavior if <b>tar</b> is run as non-root in x
@


1.13
log
@libarchive: updated to 3.7.7

Libarchive 3.7.7 is a bugfix and security release

Security fixes:

gzip: prevent a hang when processing a malformed gzip inside a gzip
tar: don't crash on truncated tar archives
tar: fix two leaks in tar header parsing

Important bugfixes:

7-zip: read/write symlink paths as UTF-8
cpio: exit with an error code if an entry could not be extracted
rar5: report encrypted entries
tar: fix truncation of entry pathnames in specific archives
windows: fix ARCHIVE_EXTRACT_SECURE_NOABSOLUTEPATHS


Libarchive 3.7.6 is a bugfix and security release.
This release fixes a tar regression introduced in libarchive 3.7.5

Important bugfixes.

tar: clean up linkpath between entries
tar: fix memory leaks when processing symlinks or parsing pax headers
iso: be more cautious about parsing ISO-9660 timestamps
@
text
@d2 1
a2 1
<!-- CreationDate: Sun Oct 13 08:12:11 2024 -->
d52 3
a54 3
extract from tar, pax, cpio, zip, jar, ar, xar, rpm, 7-zip,
and ISO 9660 cdrom images and can create tar, pax, cpio, ar,
zip, 7-zip, and shar archives.</p>
d59 2
a60 1
implementations. See COMPATIBILITY below for details.</p>
d66 1
a66 1
<p><b>-c</b></p>
d128 2
a129 2
<p style="margin-left:27%;"><b>tar -c -f</b> <i>-
newfile</i> <b>@@</b><i>original.tar</i></p>
d131 19
a149 18
<p style="margin-left:19%;">writes a new archive to
standard output containing a file <i>newfile</i> and all of
the entries from <i>original.tar</i>. In contrast,</p>

<p style="margin-left:27%;"><b>tar -c -f</b> <i>- newfile
original.tar</i></p>

<p style="margin-left:19%;">creates a new archive with only
two entries. Similarly,</p>

<p style="margin-left:27%;"><b>tar -czf</b> <i>-</i>
<b>--format pax @@</b><i>-</i></p>

<p style="margin-left:19%;">reads an archive from standard
input (whose format will be determined automatically) and
converts it into a gzip-compressed pax-format archive on
stdout. In this way, <b>tar</b> can be used to convert
archives from one format to another.</p>
d158 2
a159 2
<p style="margin-left:27%;"><b>tar -a -cf</b>
<i>archive.tgz source.c source.h</i></p>
d161 2
a162 2
<p style="margin-left:19%;">creates a new archive with
restricted pax format and gzip compression,</p>
d164 2
a165 2
<p style="margin-left:27%;"><b>tar -a -cf</b>
<i>archive.tar.bz2.uu source.c source.h</i></p>
d167 3
a169 3
<p style="margin-left:19%;">creates a new archive with
restricted pax format and bzip2 compression and uuencode
compression,</p>
d171 2
a172 2
<p style="margin-left:27%;"><b>tar -a -cf</b>
<i>archive.zip source.c source.h</i></p>
d174 2
a175 2
<p style="margin-left:19%;">creates a new archive with zip
format,</p>
d177 2
a178 2
<p style="margin-left:27%;"><b>tar -a -jcf</b>
<i>archive.tgz source.c source.h</i></p>
d180 3
a182 3
<p style="margin-left:19%;">ignores the &ldquo;-j&rdquo;
option, and creates a new archive with restricted pax format
and gzip compression,</p>
d184 2
a185 2
<p style="margin-left:27%;"><b>tar -a -jcf</b>
<i>archive.xxx source.c source.h</i></p>
d187 3
a189 3
<p style="margin-left:19%;">if it is unknown suffix or no
suffix, creates a new archive with restricted pax format and
bzip2 compression.</p>
d358 3
a360 2
<p style="margin-left:27%;"><b>tar -c -f</b> <i>new.tar</i>
<b>--include=&rsquo;*foo*&rsquo; @@</b><i>old.tgz</i></p>
d362 2
a363 2
<p style="margin-left:19%;">creates a new archive
<i>new.tar</i> containing only the entries from
d469 4
a472 2
formats (including &quot;pax restricted&quot;, the default
tar format for bsdtar.)</p>
d663 1
a663 1
<p><i>key=value</i></p>
d696 1
a696 1
<p><b>iso9660:joliet</b></p>
d886 3
a888 2
<p style="margin-left:19%;">If a provided option is not
supported by any module, that is a fatal error.</p>
d1042 2
a1043 2
symlinks instead of reporting an error. See the SECURITY
section below for more details.</p>
d1184 2
a1185 2
<p style="margin-left:17%;"><b>tar -czf</b> <i>file.tar.gz
source.c source.h</i></p>
d1190 1
a1190 1
<p style="margin-left:17%;"><b>tar -tvf</b>
d1196 2
a1197 1
<p style="margin-left:17%;"><b>tar -x</b></p>
d1202 1
a1202 1
<p style="margin-left:17%;"><b>tar -tf</b>
d1208 10
a1217 8
<p style="margin-left:17%;"><b>tar -cf</b> <i>-</i>
<b>-C</b> <i>srcdir .</i> | <b>tar -xpf</b> <i>-</i>
<b>-C</b> <i>destdir</i></p>

<p style="margin-left:9%;">or more traditionally</p>

<p style="margin-left:17%;"><b>cd srcdir ; tar -cf</b> <i>-
.</i> | (<i>cd destdir ;</i> <b>tar -xpf</b> <i>-</i>)</p>
d1226 11
a1236 11
<p style="margin-left:17%;"><b>tar -c -f</b> <i>new.tar
foo1</i> <b>@@</b><i>old.tgz</i> <b>-C</b><i>/tmp
foo2</i></p>

<p style="margin-left:9%;">will create a new archive
<i>new.tar</i>. <b>tar</b> will read the file <i>foo1</i>
from the current directory and add it to the output archive.
It will then read each entry from <i>old.tgz</i> and add
those entries to the output archive. Finally, it will switch
to the <i>/tmp</i> directory and add <i>foo2</i> to the
output archive.</p>
d1263 2
a1264 2
<p style="margin-left:17%;"><b>tar -cf</b> <i>file.tar</i>
<b>--format=mtree
d1268 2
a1269 2
<p style="margin-left:9%;">or you can set the compression
level used by gzip or xz compression:</p>
d1271 2
a1272 1
<p style="margin-left:17%;"><b>tar -czf</b> <i>file.tar</i>
d1275 3
a1277 2
<p style="margin-left:9%;">For more details, see the
explanation of the <b>archive_read_set_options</b>() and
d1292 2
a1293 2
<p style="margin-left:17%;"><b>tar tbf 32</b>
<i>file.tar</i></p>
d1295 6
a1300 6
<p style="margin-left:9%;">specifies three flags <b>t</b>,
<b>b</b>, and <b>f</b>. The <b>b</b> and <b>f</b> flags both
require arguments, so there must be two additional items on
the command line. The <i>32</i> is the argument to the
<b>b</b> flag, and <i>file.tar</i> is the argument to the
<b>f</b> flag.</p>
d1359 4
a1362 3
<p style="margin-left:9%;">To protect yourself, you should
be wary of any archives that come from untrusted sources.
You should examine the contents of an archive with</p>
d1364 1
a1364 1
<p style="margin-left:17%;"><b>tar -tf</b>
d1367 10
a1376 9
<p style="margin-left:9%;">before extraction. You should
use the <b>-k</b> option to ensure that <b>tar</b> will not
overwrite any existing files or the <b>-U</b> option to
remove any pre-existing files. You should generally not
extract archives while running with super-user privileges.
Note that the <b>-P</b> option to <b>tar</b> disables the
security checks above and allows you to extract an archive
while preserving any absolute pathnames, <i>..</i>
components, or symlinks to other directories.</p>
d1448 2
a1449 2
<p style="margin-left:17%;"><b>tar -czf</b> <i>-
file</i></p>
d1451 2
a1452 1
<p style="margin-left:9%;">and that generated by</p>
d1454 2
a1455 2
<p style="margin-left:17%;"><b>tar -cf</b> <i>- file</i> |
<b>gzip</b></p>
d1485 1
a1485 1
information to be lost. (This is a consequence of the
d1487 1
a1487 1
hardlink information.) Debian April 23, 2024
@


1.12
log
@libarchive: updated to 3.7.5

Libarchive 3.7.5

Security fixes:

fix multiple vulnerabilities identified by SAST
cpio: ignore out-of-range gid/uid/size/ino and harden AFIO parsing
lzop: prevent integer overflow
rar4: protect copy_from_lzss_window_to_unp()
rar4: fix CVE-2024-26256
rar4: fix OOB in delta and audio filter
rar4: fix out of boundary access with large files
rar4: add boundary checks to rgb filter
rar4: fix OOB access with unicode filenames
rar5: clear 'data ready' cache on window buffer reallocs
rpm: calculate huge header sizes correctly
unzip: unify EOF handling
util: fix out of boundary access in mktemp functions
uu: stop processing if lines are too long

Important bugfixes:

7zip: fix issue when skipping first file in 7zip archive that is a multiple of 65536 bytes
ar: fix archive entries having no type
lha: do not allow negative file sizes
lha: fix integer truncation on 32-bit systems
shar: check strdup return value
rar5: don't try to read rediculously long names
xar: fix another infinite loop and expat error handling
many Windows fixes, cleanups and improvements
@
text
@d1 2
a2 2
<!-- Creator     : groff version 1.22.4 -->
<!-- CreationDate: Fri Sep 13 20:31:07 2024 -->
d23 1
a23 1
<p>TAR(1) BSD General Commands Manual TAR(1)</p>
d27 2
a28 2
<p style="margin-left:6%;"><b>tar</b> &mdash; manipulate
tape archives</p>
d32 1
a32 1
<p style="margin-left:12%;"><b>tar</b>
d39 1
a39 1
<p style="margin-left:12%;"><b>tar</b> {<b>-c</b>}
d50 1
a50 1
<p style="margin-left:6%;"><b>tar</b> creates and
d56 1
a56 1
<p style="margin-left:6%; margin-top: 1em">The first
d61 1
a61 1
<p style="margin-left:6%; margin-top: 1em">The other
d67 1
a67 1
<p style="margin-left:17%; margin-top: 1em">Create a new
d73 1
a73 1
<p style="margin-left:17%; margin-top: 1em">Like <b>-c</b>,
d81 1
a81 1
<p style="margin-left:17%; margin-top: 1em">List archive
d87 1
a87 1
<p style="margin-left:17%; margin-top: 1em">Like <b>-r</b>,
d96 1
a96 1
<p style="margin-left:17%; margin-top: 1em">Extract to disk
d102 1
a102 1
<p style="margin-left:6%; margin-top: 1em">In <b>-c</b>,
d108 1
a108 1
<p style="margin-left:6%; margin-top: 1em">In extract or
d113 1
a113 1
documented in tcsh(1).</p>
d117 1
a117 1
<p style="margin-left:6%;">Unless specifically stated
d123 1
a123 1
<p style="margin-left:17%;">(c and r modes only) The
d127 1
a127 1
<p style="margin-left:24%;"><b>tar -c -f</b> <i>-
d130 1
a130 1
<p style="margin-left:17%;">writes a new archive to
d134 1
a134 1
<p style="margin-left:24%;"><b>tar -c -f</b> <i>- newfile
d137 1
a137 1
<p style="margin-left:17%;">creates a new archive with only
d140 1
a140 1
<p style="margin-left:24%;"><b>tar -czf</b> <i>-</i>
d143 1
a143 1
<p style="margin-left:17%;">reads an archive from standard
d152 1
a152 1
<p style="margin-left:17%;">(c mode only) Use the archive
d156 1
a156 1
<p style="margin-left:24%;"><b>tar -a -cf</b>
d159 1
a159 1
<p style="margin-left:17%;">creates a new archive with
d162 1
a162 1
<p style="margin-left:24%;"><b>tar -a -cf</b>
d165 1
a165 1
<p style="margin-left:17%;">creates a new archive with
d169 1
a169 1
<p style="margin-left:24%;"><b>tar -a -cf</b>
d172 1
a172 1
<p style="margin-left:17%;">creates a new archive with zip
d175 1
a175 1
<p style="margin-left:24%;"><b>tar -a -jcf</b>
d178 1
a178 1
<p style="margin-left:17%;">ignores the &ldquo;-j&rdquo;
d182 1
a182 1
<p style="margin-left:24%;"><b>tar -a -jcf</b>
d185 1
a185 1
<p style="margin-left:17%;">if it is unknown suffix or no
d191 1
a191 1
<p style="margin-left:17%; margin-top: 1em">(c, r, u, x
d202 2
a203 2
<p style="margin-left:17%;">Ignored for compatibility with
other tar(1) implementations.</p>
d208 1
a208 1
<p style="margin-left:17%;">Specify the block size, in
d218 1
a218 1
<p style="margin-left:17%;">In c and r mode, this changes
d225 1
a225 1
<p style="margin-left:17%;">(x mode only) <b>chroot</b>()
d232 1
a232 1
<p style="margin-left:17%;">(x mode only) Before removing
d240 1
a240 1
<p style="margin-left:17%;">Do not process files or
d247 1
a247 1
<p style="margin-left:17%;">Do not process files or
d249 4
a252 4
&rsquo;Arch&rsquo;, &rsquo;Bazaar&rsquo;, &rsquo;CVS&rsquo;,
&rsquo;Darcs&rsquo;, &rsquo;Mercurial&rsquo;,
&rsquo;RCS&rsquo;, &rsquo;SCCS&rsquo;, &rsquo;SVN&rsquo; and
&rsquo;git&rsquo;.</p>
d256 1
a256 1
<p style="margin-left:17%;">(c, r, u, x modes only) Archive
d265 1
a265 1
<p style="margin-left:17%;">(c, r, u mode only) Use the
d269 3
a271 3
may also be supported; see libarchive-formats(5) for more
information about currently-supported formats. In r and u
modes, when extending an existing archive, the format
d278 1
a278 1
<p style="margin-left:17%;">Read the archive from or write
d287 1
a287 1
<p style="margin-left:17%;">Use the provided group id
d296 1
a296 1
<p style="margin-left:17%;">Use the provided group name. On
d307 1
a307 1
<p style="margin-left:17%;">Use the provided group, if
d314 1
a314 1
<p style="margin-left:17%; margin-top: 1em">(c and r modes
d321 1
a321 1
<p style="margin-left:17%; margin-top: 1em">(c and r modes
d326 1
a326 1
<p style="margin-left:17%; margin-top: 1em">Synonym for
d331 1
a331 1
<p style="margin-left:17%; margin-top: 1em">Show usage.</p>
d335 1
a335 1
<p style="margin-left:17%;">(x mode only) Mac OS X specific
d341 1
a341 1
<p style="margin-left:17%;">An alias of <b>--options
d348 1
a348 1
<p style="margin-left:17%;">Process only files or
d356 1
a356 1
<p style="margin-left:24%;"><b>tar -c -f</b> <i>new.tar</i>
d359 1
a359 1
<p style="margin-left:17%;">creates a new archive
d361 1
a361 1
<i>old.tgz</i> containing the string &rsquo;foo&rsquo;.</p>
d365 5
a369 5
<p style="margin-left:17%;">(c mode only) Compress the
resulting archive with xz(1). In extract or list modes, this
option is ignored. Note that this <b>tar</b> implementation
recognizes XZ compression automatically when reading
archives.</p>
d374 3
a376 3
<p style="margin-left:17%;">(c mode only) Compress the
resulting archive with bzip2(1). In extract or list modes,
this option is ignored. Note that this <b>tar</b>
d383 1
a383 1
<p style="margin-left:17%;">(x mode only) Do not overwrite
d390 1
a390 1
<p style="margin-left:17%;">(x mode only) Do not overwrite
d397 1
a397 1
<p style="margin-left:17%;">(c and r modes only) All
d405 1
a405 1
<p style="margin-left:17%;">(c and r modes only) Issue a
d411 3
a413 3
<p style="margin-left:17%;">(c mode only) Compress the
resulting archive with lrzip(1). In extract or list modes,
this option is ignored. Note that this <b>tar</b>
d419 1
a419 1
<p style="margin-left:17%; margin-top: 1em">(c mode only)
d427 1
a427 1
<p style="margin-left:17%; margin-top: 1em">(c mode only)
d435 1
a435 1
<p style="margin-left:17%; margin-top: 1em">(c mode only)
d445 4
a448 4
<p style="margin-left:17%; margin-top: 1em">(c mode only)
Compress the resulting archive with lzop(1). In extract or
list modes, this option is ignored. Note that this
<b>tar</b> implementation recognizes LZO compression
d454 1
a454 1
<p style="margin-left:17%;">(x mode only) Do not extract
d460 1
a460 1
<p style="margin-left:17%;">(c, r, u and x mode only) Mac
d462 4
a465 4
file attributes using copyfile(3) in AppleDouble format.
This is the reverse of <b>--no-mac-metadata</b>. and the
default behavior in c, r, and u modes or if <b>tar</b> is
run in x mode as root. Currently supported only for pax
d472 1
a472 1
<p style="margin-left:17%;">Do not operate recursively on
d477 1
a477 1
<p style="margin-left:17%;">(c, r, u modes only) Only
d484 1
a484 1
<p style="margin-left:17%;">(c, r, u modes only) Like
d491 1
a491 1
<p style="margin-left:17%;">(c, r, u modes only) Only
d498 1
a498 1
<p style="margin-left:17%;">(c, r, u modes only) Like
d504 1
a504 1
<p style="margin-left:17%;">(c and r modes only) Honor the
d510 1
a510 1
<p style="margin-left:17%;">(x mode only) Mac OS X specific
d518 1
a518 1
<p style="margin-left:17%; margin-top: 1em">(use with
d522 1
a522 1
find(1).</p>
d526 1
a526 1
<p style="margin-left:17%;">(c, r, u, x modes only) Do not
d534 1
a534 1
<p style="margin-left:17%;">(c, r, u, x modes only) Do not
d541 1
a541 1
<p style="margin-left:17%;">(x mode only) Mac OS X
d543 4
a546 3
attributes using copyfile(3) in AppleDouble format. This is
the reverse of <b>--mac-metadata</b>. and the default
behavior if <b>tar</b> is run as non-root in x mode.</p>
d550 1
a550 1
<p style="margin-left:17%;">(c, r, u modes only) Do not
d556 4
a559 3
<p style="margin-left:17%;">(x mode only) Do not create
temporary files and use rename(2) to replace the original
ones. This is the reverse of <b>--safe-writes</b>.</p>
d563 1
a563 1
<p style="margin-left:17%;">(x mode only) Do not extract
d571 1
a571 1
<p style="margin-left:17%;">(x mode only) Do not extract
d579 1
a579 1
<p style="margin-left:17%;">(c, r, u, x modes only) Do not
d586 1
a586 1
<p style="margin-left:17%;">This is equivalent to
d596 1
a596 1
<p style="margin-left:17%;">(x, t modes only) In extract
d603 1
a603 1
<p style="margin-left:17%; margin-top: 1em">(x mode) Use
d613 1
a613 1
<p style="margin-left:17%; margin-top: 1em">(c, r, u mode)
d618 1
a618 1
<p style="margin-left:17%;">(c, r, u modes only) Only
d625 1
a625 1
<p style="margin-left:17%;">(c, r, u modes only) Like
d632 1
a632 1
<p style="margin-left:17%;">(c, r, u modes only) Only
d639 1
a639 1
<p style="margin-left:17%;">(c, r, u modes only) Like
d645 1
a645 1
<p style="margin-left:17%;">(c, r, and u modes) Do not
d651 1
a651 1
<p style="margin-left:17%;">Select optional behaviors for
d660 1
a660 1
<p style="margin-left:27%;">The key will be set to the
d666 1
a666 1
<p style="margin-left:27%; margin-top: 1em">The key will be
d672 1
a672 1
<p style="margin-left:27%; margin-top: 1em">The key will be
d678 1
a678 1
<p style="margin-left:27%;">As above, but the corresponding
d682 1
a682 1
<p style="margin-left:17%; margin-top: 1em">The complete
d684 3
a686 2
modes is in archive_write_set_options(3) and for extract and
list modes in archive_read_set_options(3).</p>
d688 1
a688 1
<p style="margin-left:17%; margin-top: 1em">Examples of
d693 1
a693 1
<p style="margin-left:27%;">Support Joliet extensions. This
d699 1
a699 1
<p style="margin-left:27%;">Support Rock Ridge extensions.
d705 1
a705 1
<p style="margin-left:27%;">A decimal integer from 1 to 9
d710 1
a710 1
<p style="margin-left:27%;">Store timestamp. This is
d716 1
a716 1
<p style="margin-left:27%;">Use <i>type</i> as compression
d722 1
a722 1
<p style="margin-left:27%;">A decimal integer from 1 to 9
d727 1
a727 1
<p style="margin-left:27%;">A decimal integer from 1 to 9
d732 1
a732 1
<p style="margin-left:27%;">Enable stream checksum. This is
d737 1
a737 1
<p style="margin-left:27%;">Enable block checksum (Disabled
d742 1
a742 1
<p style="margin-left:27%;">A decimal integer from 4 to 7
d748 1
a748 1
<p style="margin-left:27%;">Use the previous block of the
d754 1
a754 1
<p style="margin-left:27%;">A decimal integer specifying
d760 1
a760 1
<p style="margin-left:27%;">Specify the number of worker
d766 1
a766 1
<p style="margin-left:27%;">Start a new compression frame
d771 1
a771 1
<p style="margin-left:27%;">In combination with
d774 3
a776 3
at least <i>N</i> bytes. The number may be followed by k /
kB, M / MB, or G / GB to indicate kilobytes, megabytes or
gigabytes respectively.</p>
d781 1
a781 1
<p style="margin-left:27%;">In combination with
d784 3
a786 3
least <i>N</i> bytes. The number may be followed by k / kB,
M / MB, or G / GB to indicate kilobytes, megabytes or
gigabytes respectively.</p>
d791 1
a791 1
<p style="margin-left:27%;">Start a new compression frame
d794 3
a796 3
followed by k / kB, M / MB, or G / GB to indicate kilobytes,
megabytes or gigabytes respectively. Values less than 1,024
will be rejected.</p>
d800 1
a800 1
<p style="margin-left:27%;">Start a new compression frame
d803 3
a805 3
k / kB, M / MB, or G / GB to indicate kilobytes, megabytes
or gigabytes respectively. Values less than 1,024 will be
rejected.</p>
d809 1
a809 1
<p style="margin-left:27%;">A decimal integer from 1 to 9
d814 1
a814 1
<p style="margin-left:27%;">A decimal integer from 0 to 9
d819 1
a819 1
<p style="margin-left:27%;">Specify the number of worker
d821 2
a822 2
xz(1) use as many threads as there are CPU cores on the
system.</p>
d826 1
a826 1
<p style="margin-left:27%;">The mtree writer module allows
d839 1
a839 1
<p style="margin-left:27%;">Enables all of the above
d845 1
a845 1
<p style="margin-left:27%;">Enable generation of
d850 1
a850 1
<p style="margin-left:27%;">Produce human-readable output
d856 1
a856 1
<p style="margin-left:27%;">Use <i>type</i> as compression
d862 1
a862 1
<p style="margin-left:27%;">Enable encryption using
d867 1
a867 1
<p style="margin-left:27%;">Use <i>type</i> as encryption
d874 1
a874 1
<p style="margin-left:27%;">Ignore zeroed blocks in the
d881 1
a881 1
<p style="margin-left:17%;">If a provided option is not
d887 1
a887 1
<p style="margin-left:17%;">Preserve pathnames. By default,
d898 1
a898 1
<p style="margin-left:17%;">(x mode only) Preserve file
d911 1
a911 1
<p style="margin-left:17%;">The <i>passphrase</i> is used
d919 1
a919 1
<p style="margin-left:17%;">(c, r, u mode only) Synonym for
d925 1
a925 1
<p style="margin-left:17%;">(x and t mode only) Extract or
d936 1
a936 1
<p style="margin-left:17%;">(c, r, u modes only) Read
d942 1
a942 1
<p style="margin-left:17%; margin-top: 1em">(x mode only)
d950 1
a950 1
<p style="margin-left:17%;">Modify file or archive member
d956 20
a975 20
is not matched, the pattern is skipped. Within <i>new</i>, ~
is substituted with the match, \1 to \9 with the content of
the corresponding captured group. The optional trailing g
specifies that matching should continue after the matched
part and stop on the first unmatched pattern. The optional
trailing s specifies that the pattern applies to the value
of symbolic links. The optional trailing p specifies that
after a successful substitution the original path name and
the new path name should be printed to standard error. The
optional trailing b specifies that the substitution should
be matched from the beginning of the string rather than from
right after the position at which the previous matching
substitution ended. Optional trailing H, R, or S characters
suppress substitutions for hardlink targets, regular
filenames, or symlink targets, respectively. Optional
trailing h, r, or s characters enable substitutions for
hardlink targets, regular filenames, or symlink targets,
respectively. The default is <i>hrs</i> which applies
substitutions to all names. In particular, it is never
necessary to specify h, r, or s.</p>
d979 1
a979 1
<p style="margin-left:17%;">(x mode only) Extract files
d988 4
a991 4
temporary file to its final name atomically using rename(2).
This guarantees that an application accessing the file, will
either see the old contents or the new contents at all
times.</p>
d995 1
a995 1
<p style="margin-left:17%;">(x mode only) Extract owner and
d1002 1
a1002 1
<p style="margin-left:17%;">Remove the specified number of
d1011 1
a1011 1
<p style="margin-left:17%;">In x or t mode, <b>tar</b> will
d1020 2
a1021 2
generating lists of files using find(1), you probably want
to use <b>-n</b> as well.</p>
d1025 1
a1025 1
<p style="margin-left:17%;">(c, r, u modes only) After
d1031 1
a1031 1
<p style="margin-left:17%;">(x mode only) Unlink files
d1041 1
a1041 1
<p style="margin-left:17%;">Use the provided user id number
d1048 1
a1048 1
<p style="margin-left:17%;">Use the provided user name. On
d1059 1
a1059 1
<p style="margin-left:17%;">Pipe the input (in x or t mode)
d1066 1
a1066 1
<p style="margin-left:17%;">Use the provided user, if
d1073 1
a1073 1
<p style="margin-left:17%;">Produce verbose output. In
d1077 2
a1078 2
ls(1). An additional <b>-v</b> option will also provide
ls-like details in create and extract mode.</p>
d1082 1
a1082 1
<p style="margin-left:17%;">Print version of <b>tar</b> and
d1088 1
a1088 1
<p style="margin-left:17%;">Ask for confirmation for every
d1094 1
a1094 1
<p style="margin-left:17%;">Read a list of exclusion
d1100 1
a1100 1
<p style="margin-left:17%;">(c, r, u, x modes only) Archive
d1107 4
a1110 4
<p style="margin-left:17%; margin-top: 1em">(c mode only)
Compress the resulting archive with bzip2(1). In extract or
list modes, this option is ignored. Note that this
<b>tar</b> implementation recognizes bzip2 compression
d1116 5
a1120 5
<p style="margin-left:17%;">(c mode only) Compress the
resulting archive with compress(1). In extract or list
modes, this option is ignored. Note that this <b>tar</b>
implementation recognizes compress compression automatically
when reading archives.</p>
d1125 3
a1127 3
<p style="margin-left:17%;">(c mode only) Compress the
resulting archive with gzip(1). In extract or list modes,
this option is ignored. Note that this <b>tar</b>
d1133 1
a1133 1
<p style="margin-left:6%;">The following environment
d1138 1
a1138 1
<p style="margin-left:17%;">The default options for format
d1144 1
a1144 1
<p style="margin-left:17%;">The default options for format
d1150 2
a1151 2
<p style="margin-left:17%; margin-top: 1em">The locale to
use. See environ(7) for more information.</p>
d1155 1
a1155 1
<p style="margin-left:17%; margin-top: 1em">The default
d1162 2
a1163 2
<p style="margin-left:17%; margin-top: 1em">The timezone to
use when displaying dates. See environ(7) for more
d1168 1
a1168 1
<p style="margin-left:6%;">The <b>tar</b> utility
d1174 1
a1174 1
<p style="margin-left:6%;">The following creates a new
d1178 1
a1178 1
<p style="margin-left:14%;"><b>tar -czf</b> <i>file.tar.gz
d1181 1
a1181 1
<p style="margin-left:6%; margin-top: 1em">To view a
d1184 1
a1184 1
<p style="margin-left:14%;"><b>tar -tvf</b>
d1187 1
a1187 1
<p style="margin-left:6%; margin-top: 1em">To extract all
d1190 1
a1190 1
<p style="margin-left:14%;"><b>tar -x</b></p>
d1192 1
a1192 1
<p style="margin-left:6%; margin-top: 1em">To examine the
d1195 1
a1195 1
<p style="margin-left:14%;"><b>tar -tf</b>
d1198 1
a1198 1
<p style="margin-left:6%; margin-top: 1em">To move file
d1201 1
a1201 1
<p style="margin-left:14%;"><b>tar -cf</b> <i>-</i>
d1205 1
a1205 1
<p style="margin-left:6%;">or more traditionally</p>
d1207 1
a1207 1
<p style="margin-left:14%;">cd srcdir ; <b>tar -cf</b> <i>-
d1210 1
a1210 1
<p style="margin-left:6%; margin-top: 1em">In create mode,
d1217 1
a1217 1
<p style="margin-left:14%;"><b>tar -c -f</b> <i>new.tar
d1221 1
a1221 1
<p style="margin-left:6%;">will create a new archive
d1229 4
a1232 4
<p style="margin-left:6%; margin-top: 1em">An input file in
mtree(5) format can be used to create an output archive with
arbitrary ownership, permissions, or names that differ from
existing data on disk:</p>
d1234 1
a1234 1
<p style="margin-left:14%; margin-top: 1em">$ cat
d1241 1
a1241 1
<p style="margin-left:6%; margin-top: 1em">The
d1248 1
a1248 1
<p style="margin-left:6%; margin-top: 1em">The
d1254 1
a1254 1
<p style="margin-left:14%;"><b>tar -cf</b> <i>file.tar</i>
d1259 1
a1259 1
<p style="margin-left:6%;">or you can set the compression
d1262 1
a1262 1
<p style="margin-left:14%;"><b>tar -czf</b> <i>file.tar</i>
d1265 1
a1265 1
<p style="margin-left:6%;">For more details, see the
d1268 2
a1269 1
described in archive_read(3) and archive_write(3).</p>
d1273 1
a1273 1
<p style="margin-left:6%;">The bundled-arguments format is
d1281 1
a1281 1
<p style="margin-left:14%;"><b>tar tbf 32</b>
d1284 1
a1284 1
<p style="margin-left:6%;">specifies three flags <b>t</b>,
d1291 1
a1291 1
<p style="margin-left:6%; margin-top: 1em">The mode options
d1295 1
a1295 1
<p style="margin-left:6%; margin-top: 1em">For maximum
d1302 1
a1302 1
<p style="margin-left:6%; margin-top: 1em">Additional long
d1308 1
a1308 1
<p style="margin-left:6%;">Certain security issues are
d1322 1
a1322 1
<p style="margin-left:17%;">Archive entries can have
d1329 1
a1329 1
<p style="margin-left:17%;">Archive entries can have
d1336 1
a1336 1
<p style="margin-left:17%;">Archive entries can exploit
d1348 1
a1348 1
<p style="margin-left:6%;">To protect yourself, you should
d1352 1
a1352 1
<p style="margin-left:14%;"><b>tar -tf</b>
d1355 1
a1355 1
<p style="margin-left:6%;">before extraction. You should
d1367 5
a1371 3
<p style="margin-left:6%;">bzip2(1), compress(1), cpio(1),
gzip(1), mt(1), pax(1), shar(1), xz(1), libarchive(3),
libarchive-formats(5), tar(5)</p>
d1375 1
a1375 1
<p style="margin-left:6%;">There is no current POSIX
d1384 1
a1384 1
<p style="margin-left:6%; margin-top: 1em">The ustar and
d1390 1
a1390 1
<p style="margin-left:6%;">A <b>tar</b> command appeared in
d1399 2
a1400 2
<p style="margin-left:6%; margin-top: 1em">This is a
complete re-implementation based on the libarchive(3)
d1406 1
a1406 1
<p style="margin-left:6%;">This program follows ISO/IEC
d1412 1
a1412 1
<p style="margin-left:6%; margin-top: 1em">The <b>-C</b>
d1416 1
a1416 1
<p style="margin-left:6%; margin-top: 1em">All archive
d1425 4
a1428 4
padded. Many compressors, including gzip(1) and bzip2(1),
complain about the null padding when decompressing an
archive created by <b>tar</b>, although they still extract
it correctly.</p>
d1430 1
a1430 1
<p style="margin-left:6%; margin-top: 1em">The compression
d1435 1
a1435 1
<p style="margin-left:14%;"><b>tar -czf</b> <i>-
d1438 1
a1438 1
<p style="margin-left:6%;">and that generated by</p>
d1440 1
a1440 1
<p style="margin-left:14%;"><b>tar -cf</b> <i>- file</i> |
d1443 1
a1443 1
<p style="margin-left:6%; margin-top: 1em">The default
d1447 1
a1447 1
<p style="margin-left:6%; margin-top: 1em">The <b>r</b> and
d1453 1
a1453 1
<p style="margin-left:6%; margin-top: 1em">To archive a
d1457 1
a1457 1
<p style="margin-left:6%; margin-top: 1em">In create mode,
d1461 1
a1461 1
<p style="margin-left:6%; margin-top: 1em">There needs to
d1465 1
a1465 1
<p style="margin-left:6%; margin-top: 1em">There is not yet
d1468 1
a1468 1
<p style="margin-left:6%; margin-top: 1em">Converting
d1473 2
a1474 4
hardlink information.)</p>

<p style="margin-left:6%; margin-top: 1em">BSD
April&nbsp;23, 2024 BSD</p>
@


1.11
log
@libarchive: updated to 3.7.4

Libarchive 3.7.4 is a bugfix and security release

Security fixes:

rar: Fix OOB in rar e8 filter (CVE-2024-26256)
zip: Fix out of boundary access

Important bugfixes:

7zip: Limit amount of properties
bsdtar: Fix error handling around strtol() usages
passphrase: Improve newline handling on Windows
passphrase: Never allow empty passwords
rar: Fix "File CRC Error" when extracting specific rar4 archives
xar: Avoid infinite link loop
zip: Update AppleDouble support for directories
zstd: Implement core detection
@
text
@d2 1
a2 1
<!-- CreationDate: Fri Apr 26 09:23:48 2024 -->
@


1.10
log
@libarchive: updated to 3.7.3

Libarchive 3.7.3 is a feature, security and bugfix release.

New features:

PCRE2 support
add trailing letter b to bsdtar(1) substitute pattern
add support for long options "--group" and "--owner" to tar(1)

Security fixes:

Fix possible vulnerability in tar error reporting introduced in f27c173

Important bugfixes:

ISO9660: preserve the natural order of links
rar5: fix decoding unicode filenames on Windows
rar5: fix infinite loop if during rar5 decompression the last block produced no data
xz filter: fix incorrect eof at the end of an lzip member
zip: fix end-of-data marker processing when decompressing zip archives
multiple bsdunzip(1) fixes
filetime truncation fix on Windows
@
text
@d2 1
a2 1
<!-- CreationDate: Sun Apr  7 22:36:28 2024 -->
d749 1
a749 1
<p><b>zstd:compression-level</b></p>
d755 1
a755 1
<p><b>zstd:threads</b></p>
d758 2
a759 3
threads to use. Setting threads to a special value 0 makes
zstd(1) use as many threads as there are CPU cores on the
system.</p>
d1470 1
a1470 1
March&nbsp;1, 2024 BSD</p>
@


1.9
log
@libarchive: updated to 3.7.2

Libarchive 3.7.2 is a security, bugfix and feature release.

Security fixes:

Multiple vulnerabilities have been fixed in the PAX writer (1b4e0d0)
Important bugfixes:

bsdunzip(1) now correctly handles arguments following an -x after the zipfile
New features:

bsdunzip(1) now supports the "--version" flag
7-zip reader now translates Windows permissions into UNIX permissions
uudecode filter in raw mode now supports file name and file mode
zstd filter now supports the "long" write option


Libarchive 3.7.1 is a security, feature and bugfix release.

Security fixes:

SEGV and stack buffer overflow in verbose mode of cpio
Feature updates:

bsdunzip updated to match latest upstream code
Important bugfixes:

miscellaneous functional bugfixes
build fixes on multiple platforms


Libarchive 3.7.0 is a feature and bugfix release.

New features:

bsdunzip: new tool ported from FreeBSD
drop-in replacement for Info-ZIP unzip, not yet ported for Windows
7zip reader: support for Zstandard compression
7zip reader: support for ARM64 filter
zstd filter: support for multi-frame zstd archives
Other notable bugfixes and improvements:

pax: fix year 2038 problem on platforms with 64-bit time_t
Windows: Universal Windows Platform (UWP) fixes and improvements
Windows: bcrypt usage fixes and improvements
Windows: time function usage fixes and improvements
@
text
@d2 1
a2 1
<!-- CreationDate: Mon Sep 11 22:06:22 2023 -->
d304 8
d465 3
a467 1
run in x mode as root.</p>
d767 11
a777 1
<p><b>zstd:min-frame-size</b>=<i>N</i></p>
d781 4
a784 2
frame unless the current frame is at least <i>N</i>
bytes.</p>
d786 2
a787 1
<p><b>zstd:max-frame-size</b>=<i>N</i></p>
d790 14
a803 1
as soon as the current frame exceeds <i>N</i> bytes.</p>
d950 1
a950 1
format <i>/old/new/</i>[ghHprRsS] where <i>old</i> is a
d962 12
a973 9
the new path name should be printed to standard error.
Optional trailing H, R, or S characters suppress
substitutions for hardlink targets, regular filenames, or
symlink targets, respectively. Optional trailing h, r, or s
characters enable substitutions for hardlink targets,
regular filenames, or symlink targets, respectively. The
default is <i>hrs</i> which applies substitutions to all
names. In particular, it is never necessary to specify h, r,
or s.</p>
d1061 8
d1471 1
a1471 1
December&nbsp;1, 2022 BSD</p>
@


1.8
log
@libarchive: Update to 3.4.3

Libarchive 3.4.3 is a feature and bugfix release.

New features:

    support for pzstd compressed files (#1357)
    support for RHT.security.selinux tar extended attribute (#1348)

Important bugfixes:

    various zstd fixes and improvements (#1342 #1352 #1359)
    child process handling fixes (#1372)

Libarchive 3.4.2 is a feature and security release.

New features:

    support for atomic file extraction (bsdtar -x --safe-writes) (#1289)
    support for mbed TLS (PolarSSL) (#1301)

Important bugfixes:

    security fixes in RAR5 reader (#1280 #1326)
    compression buffer fix in XAR writer (#1317)
    fix uname and gname longer than 32 characters in PAX writer (#1319)
    fix segfault when archiving hard links in ISO9660 and XAR writers (#1325)
    fix support for extracting 7z archive entries with Delta filter (#987)

Libarchive 3.4.1 is a feature and security release.

New features:

    Unicode filename support for reading lha/lzh archives
    New pax write option "xattrhdr"

Important bugfixes:

    security fixes in wide string processing (#1276 #1298)
    security fixes in RAR5 reader (#1212 #1217 #1296)
    security fixes and optimizations to write filter logic (#351)
    security fix related to use of readlink(2) (1dae5a5)
    sparse file handling fixes (#1218 #1260)

Thanks to all contributors and bug reporters.
Special thanks to Christos Zoulas (@@zoulasc) from NetBSD for the atomic file extraction feature.
@
text
@d1 2
a2 2
<!-- Creator     : groff version 1.22.3 -->
<!-- CreationDate: Wed May 20 01:10:09 2020 -->
d35 3
a37 3
<p>args &rang;] [&lang; <i><br>
file</i> &rang;&nbsp;|&nbsp;&lang; <i><br>
pattern</i> &rang;&nbsp;...]</p>
d57 3
a59 4
synopsis form shows a &rsquo;&rsquo;bundled&rsquo;&rsquo;
option word. This usage is provided for compatibility with
historical implementations. See COMPATIBILITY below for
details.</p>
d178 3
a180 3
<p style="margin-left:17%;">ignores the
&rsquo;&rsquo;-j&rsquo;&rsquo; option, and creates a new
archive with restricted pax format and gzip compression,</p>
d267 7
a273 9
include &rsquo;&rsquo;cpio&rsquo;&rsquo;,
&rsquo;&rsquo;pax&rsquo;&rsquo;,
&rsquo;&rsquo;shar&rsquo;&rsquo;, and
&rsquo;&rsquo;ustar&rsquo;&rsquo;. Other formats may also be
supported; see libarchive-formats(5) for more information
about currently-supported formats. In r and u modes, when
extending an existing archive, the format specified here
must be compatible with the format of the existing archive
on disk.</p>
d537 6
d745 24
d779 7
d796 2
a797 2
&rsquo;&rsquo;device, flags, gid, gname, link, mode, nlink,
size, time, type, uid, uname&rsquo;&rsquo;.</p>
d896 6
d973 6
a978 7
<i>filename</i>. The special name
&rsquo;&rsquo;-C&rsquo;&rsquo; on a line by itself will
cause the current directory to be changed to the directory
specified on the following line. Names are terminated by
newlines unless <b>--null</b> is specified. Note that
<b>--null</b> also disables the special handling of lines
containing &rsquo;&rsquo;-C&rsquo;&rsquo;. Note: If you are
d1089 1
a1089 1
<p style="margin-left:21%;">The default options for format
d1095 1
a1095 1
<p style="margin-left:21%;">The default options for format
d1101 1
a1101 1
<p style="margin-left:21%; margin-top: 1em">The locale to
d1106 1
a1106 1
<p style="margin-left:21%; margin-top: 1em">The default
d1113 1
a1113 1
<p style="margin-left:21%; margin-top: 1em">The timezone to
d1195 3
a1197 4
&rsquo;&rsquo;12 Mar 2005 7:14:29pm&rsquo;&rsquo;,
&rsquo;&rsquo;2005-03-12 19:14&rsquo;&rsquo;,
&rsquo;&rsquo;5 minutes ago&rsquo;&rsquo;, and
&rsquo;&rsquo;19:14 PST May 1&rsquo;&rsquo;.</p>
d1325 6
a1330 7
9945-1:1996 (&rsquo;&rsquo;POSIX.1&rsquo;&rsquo;) but was
dropped from IEEE Std 1003.1-2001
(&rsquo;&rsquo;POSIX.1&rsquo;&rsquo;). The options supported
by this implementation were developed by surveying a number
of existing tar implementations as well as the old POSIX
specification for tar and the current POSIX specification
for pax.</p>
d1334 1
a1334 2
1003.1-2001 (&rsquo;&rsquo;POSIX.1&rsquo;&rsquo;) for the
pax command.</p>
d1355 3
a1357 3
9945-1:1996 (&rsquo;&rsquo;POSIX.1&rsquo;&rsquo;) for the
definition of the <b>-l</b> option. Note that GNU tar prior
to version 1.15 treated <b>-l</b> as a synonym for the
d1424 1
a1424 1
January&nbsp;31, 2020 BSD</p>
@


1.7
log
@Update for libarchive-3.4.0:
- improvements for Android APK and JAR archives
- better support for non-recursive list and extract
- tar --exclude-vcs support
- fixes for file attributes and flags handling
- zipx support
- rar 5.0 reader
@
text
@d1 2
a2 2
<!-- Creator     : groff version 1.22.4 -->
<!-- CreationDate: Wed Jun 12 21:10:19 2019 -->
d35 3
a37 3
<p>args &rang; ] [&lang; <i><br>
file</i> &rang; &nbsp;|&nbsp;&lang; <i><br>
pattern</i> &rang; &nbsp;...]</p>
d57 4
a60 3
synopsis form shows a &ldquo;bundled&rdquo; option word.
This usage is provided for compatibility with historical
implementations. See COMPATIBILITY below for details.</p>
d179 3
a181 3
<p style="margin-left:17%;">ignores the &ldquo;-j&rdquo;
option, and creates a new archive with restricted pax format
and gzip compression,</p>
d250 4
a253 3
&rsquo;CVS&rsquo;, &rsquo;RCS&rsquo;, &rsquo;SCCS&rsquo;,
&rsquo;SVN&rsquo;, &rsquo;Arch&rsquo;, &rsquo;Bazaar&rsquo;,
&rsquo;Mercurial&rsquo; and &rsquo;Darcs&rsquo;.</p>
d268 9
a276 7
include &ldquo;cpio&rdquo;, &ldquo;pax&rdquo;,
&ldquo;shar&rdquo;, and &ldquo;ustar&rdquo;. Other formats
may also be supported; see libarchive-formats(5) for more
information about currently-supported formats. In r and u
modes, when extending an existing archive, the format
specified here must be compatible with the format of the
existing archive on disk.</p>
d540 6
d667 7
a673 2
<p style="margin-left:17%;">The currently supported modules
and keys are:</p>
d738 3
a740 2
<p style="margin-left:27%;">A decimal integer from 1 to 22
specifying the zstd compression level.</p>
d762 2
a763 2
&ldquo;device, flags, gid, gname, link, mode, nlink, size,
time, type, uid, uname&rdquo;.</p>
d896 16
d933 7
a939 6
<i>filename</i>. The special name &ldquo;-C&rdquo; on a line
by itself will cause the current directory to be changed to
the directory specified on the following line. Names are
terminated by newlines unless <b>--null</b> is specified.
Note that <b>--null</b> also disables the special handling
of lines containing &ldquo;-C&rdquo;. Note: If you are
d1114 1
a1114 1
<b>-C</b> <i>srcdir&nbsp;.</i> | <b>tar -xpf</b> <i>-</i>
d1119 2
a1120 3
<p style="margin-left:14%;">cd srcdir ; <b>tar -cf</b>
<i>-&nbsp;.</i> | (<i>cd destdir ;</i> <b>tar -xpf</b>
<i>-</i>)</p>
d1156 4
a1159 3
&ldquo;12 Mar 2005 7:14:29pm&rdquo;, &ldquo;2005-03-12
19:14&rdquo;, &ldquo;5 minutes ago&rdquo;, and &ldquo;19:14
PST May 1&rdquo;.</p>
d1287 7
a1293 6
9945-1:1996 (&ldquo;POSIX.1&rdquo;) but was dropped from
IEEE Std 1003.1-2001 (&ldquo;POSIX.1&rdquo;). The options
supported by this implementation were developed by surveying
a number of existing tar implementations as well as the old
POSIX specification for tar and the current POSIX
specification for pax.</p>
d1297 2
a1298 1
1003.1-2001 (&ldquo;POSIX.1&rdquo;) for the pax command.</p>
d1319 3
a1321 3
9945-1:1996 (&ldquo;POSIX.1&rdquo;) for the definition of
the <b>-l</b> option. Note that GNU tar prior to version
1.15 treated <b>-l</b> as a synonym for the
d1387 2
a1388 2
<p style="margin-left:6%; margin-top: 1em">BSD June&nbsp;3,
2019 BSD</p>
@


1.6
log
@libarchive: updated to 3.3.3

libarchive 3.3.3:
Avoid super-linear slowdown on malformed mtree files
Many fixes for building with Visual Studio
NO_OVERWRITE doesn't change existing directory attributes
New support for Zstandard read and write filters
@
text
@d1 2
a2 2
<!-- Creator     : groff version 1.22.3 -->
<!-- CreationDate: Mon Sep  3 22:55:11 2018 -->
d57 3
a59 4
synopsis form shows a &rsquo;&rsquo;bundled&rsquo;&rsquo;
option word. This usage is provided for compatibility with
historical implementations. See COMPATIBILITY below for
details.</p>
d178 3
a180 3
<p style="margin-left:17%;">ignores the
&rsquo;&rsquo;-j&rsquo;&rsquo; option, and creates a new
archive with restricted pax format and gzip compression,</p>
d234 2
a235 1
file flags that might prevent removal.</p>
d245 8
d256 4
a259 3
or extract file flags. This is the reverse of
<b>--no-fflags</b> and the default behavior in c, r, and u
modes or if <b>tar</b> is run in x mode as root.</p>
d266 7
a272 9
include &rsquo;&rsquo;cpio&rsquo;&rsquo;,
&rsquo;&rsquo;pax&rsquo;&rsquo;,
&rsquo;&rsquo;shar&rsquo;&rsquo;, and
&rsquo;&rsquo;ustar&rsquo;&rsquo;. Other formats may also be
supported; see libarchive-formats(5) for more information
about currently-supported formats. In r and u modes, when
extending an existing archive, the format specified here
must be compatible with the format of the existing archive
on disk.</p>
d453 4
a456 4
attributes using copyfile(3) in AppleDouble format. This is
the reverse of <b>--no-mac-metadata</b>. and the default
behavior in c, r, and u modes or if <b>tar</b> is run in x
mode as root.</p>
d461 2
a462 2
<p style="margin-left:17%;">(c, r, u modes only) Do not
recursively archive the contents of directories.</p>
d524 3
a526 3
archive or extract file flags. This is the reverse of
<b>--fflags</b> and the default behavior if <b>tar</b> is
run as non-root in x mode.</p>
d531 1
a531 1
specific. Do not archive or extract ACLs and extended
a535 3
<p style="margin-top: 1em"><b>-n</b>, <b>--norecurse</b>,
<b>--no-recursion</b></p>

d547 4
a550 4
full permissions (SGID, SUID, sticky bit, ACLs, extended
attributes or extended file flags). This is the reverse of
<b>-p</b> and the default behavior if <b>tar</b> is run as
non-root.</p>
d555 3
a557 3
archive or extract extended attributes. This is the reverse
of <b>--xattrs</b> and the default behavior if <b>tar</b> is
run as non-root in x mode.</p>
d746 2
a747 2
&rsquo;&rsquo;device, flags, gid, gname, link, mode, nlink,
size, time, type, uid, uname&rsquo;&rsquo;.</p>
d812 3
a814 3
including owner, file modes, ACLs, extended attributes and
extended file flags, if available, for each item extracted
from the archive. This is te reverse of
d816 1
a816 1
is being run by root and can be partially overridden by also
d901 6
a906 7
<i>filename</i>. The special name
&rsquo;&rsquo;-C&rsquo;&rsquo; on a line by itself will
cause the current directory to be changed to the directory
specified on the following line. Names are terminated by
newlines unless <b>--null</b> is specified. Note that
<b>--null</b> also disables the special handling of lines
containing &rsquo;&rsquo;-C&rsquo;&rsquo;. Note: If you are
d980 1
a980 1
or extract extended attributes. This is the reverse of
d1124 3
a1126 4
&rsquo;&rsquo;12 Mar 2005 7:14:29pm&rsquo;&rsquo;,
&rsquo;&rsquo;2005-03-12 19:14&rsquo;&rsquo;,
&rsquo;&rsquo;5 minutes ago&rsquo;&rsquo;, and
&rsquo;&rsquo;19:14 PST May 1&rsquo;&rsquo;.</p>
d1254 6
a1259 7
9945-1:1996 (&rsquo;&rsquo;POSIX.1&rsquo;&rsquo;) but was
dropped from IEEE Std 1003.1-2001
(&rsquo;&rsquo;POSIX.1&rsquo;&rsquo;). The options supported
by this implementation were developed by surveying a number
of existing tar implementations as well as the old POSIX
specification for tar and the current POSIX specification
for pax.</p>
d1263 1
a1263 2
1003.1-2001 (&rsquo;&rsquo;POSIX.1&rsquo;&rsquo;) for the
pax command.</p>
d1284 3
a1286 3
9945-1:1996 (&rsquo;&rsquo;POSIX.1&rsquo;&rsquo;) for the
definition of the <b>-l</b> option. Note that GNU tar prior
to version 1.15 treated <b>-l</b> as a synonym for the
d1352 2
a1353 2
<p style="margin-left:6%; margin-top: 1em">BSD
October&nbsp;1, 2017 BSD</p>
@


1.5
log
@Merge for libarchive-3.3.2.
@
text
@d2 1
a2 1
<!-- CreationDate: Mon Jul 10 02:32:58 2017 -->
d351 3
a353 3
option is ignored. Note that, unlike other <b>tar</b>
implementations, this implementation recognizes XZ
compression automatically when reading archives.</p>
d360 3
a362 3
this option is ignored. Note that, unlike other <b>tar</b>
implementations, this implementation recognizes bzip2
compression automatically when reading archives.</p>
d397 3
a399 1
this option is ignored.</p>
d405 11
a415 2
writing it. In input mode, this option is ignored; lz4
compression is recognized automatically on input.</p>
d421 3
a423 3
algorithm. Use of this option is discouraged and new
archives should be created with <b>--xz</b> instead. Note
that, unlike other <b>tar</b> implementations, this
d431 3
a433 1
list modes, this option is ignored.</p>
d717 5
d985 3
a987 3
list modes, this option is ignored. Note that, unlike other
<b>tar</b> implementations, this implementation recognizes
bzip2 compression automatically when reading archives.</p>
d994 3
a996 4
modes, this option is ignored. Note that, unlike other
<b>tar</b> implementations, this implementation recognizes
compress compression automatically when reading
archives.</p>
d1003 3
a1005 3
this option is ignored. Note that, unlike other <b>tar</b>
implementations, this implementation recognizes gzip
compression automatically when reading archives.</p>
d1353 1
a1353 1
February&nbsp;25, 2017 BSD</p>
@


1.4
log
@Merge libarchive-3.3.1.
@
text
@d2 1
a2 1
<!-- CreationDate: Sat Feb 25 11:22:08 2017 -->
d39 1
a39 1
<p style="margin-left:12%;"><b>tar</b> {<b>&minus;c</b>}
d42 2
a43 2
tar</b> {<b>&minus;r&nbsp;</b>|&nbsp;<b>&minus;u</b>}
<b>&minus;f</b> <i>archive-file</i> [<i>options</i>]
d45 2
a46 2
tar</b> {<b>&minus;t&nbsp;</b>|&nbsp;<b>&minus;x</b>}
[<i>options</i>] [<i>patterns</i>]</p>
d57 1
a57 1
synopsis form shows a &lsquo;&lsquo;bundled&rsquo;&rsquo;
d66 1
a66 1
<p><b>&minus;c</b></p>
d70 1
a70 1
is <b>&minus;&minus;create</b>.</p>
d72 1
a72 1
<p><b>&minus;r</b></p>
d74 5
a78 6
<p style="margin-left:17%; margin-top: 1em">Like
<b>&minus;c</b>, but new entries are appended to the
archive. Note that this only works on uncompressed archives
stored in regular files. The <b>&minus;f</b> option is
required. The long option form is
<b>&minus;&minus;append</b>.</p>
d80 1
a80 1
<p><b>&minus;t</b></p>
d84 1
a84 1
<b>&minus;&minus;list</b>.</p>
d86 1
a86 1
<p><b>&minus;u</b></p>
d88 6
a93 7
<p style="margin-left:17%; margin-top: 1em">Like
<b>&minus;r</b>, but new entries are added only if they have
a modification date newer than the corresponding entry in
the archive. Note that this only works on uncompressed
archives stored in regular files. The <b>&minus;f</b> option
is required. The long form is
<b>&minus;&minus;update</b>.</p>
d95 1
a95 1
<p><b>&minus;x</b></p>
d101 1
a101 1
long option form is <b>&minus;&minus;extract</b>.</p>
d103 5
a107 5
<p style="margin-left:6%; margin-top: 1em">In
<b>&minus;c</b>, <b>&minus;r</b>, or <b>&minus;u</b> mode,
each specified file or directory is added to the archive in
the order specified on the command line. By default, the
contents of each directory are also archived.</p>
d128 2
a129 2
<p style="margin-left:24%;"><b>tar &minus;c &minus;f</b>
<i>- newfile</i> <b>@@</b><i>original.tar</i></p>
d135 2
a136 2
<p style="margin-left:24%;"><b>tar &minus;c &minus;f</b>
<i>- newfile original.tar</i></p>
d141 2
a142 2
<p style="margin-left:24%;"><b>tar &minus;czf</b> <i>-</i>
<b>&minus;&minus;format pax @@</b><i>-</i></p>
d150 2
a151 2
<p style="margin-top: 1em"><b>&minus;a</b>,
<b>&minus;&minus;auto-compress</b></p>
d157 1
a157 1
<p style="margin-left:24%;"><b>tar &minus;a &minus;cf</b>
d163 1
a163 1
<p style="margin-left:24%;"><b>tar &minus;a &minus;cf</b>
d170 1
a170 1
<p style="margin-left:24%;"><b>tar &minus;a &minus;cf</b>
d176 1
a176 1
<p style="margin-left:24%;"><b>tar &minus;a &minus;jcf</b>
d180 1
a180 1
&lsquo;&lsquo;-j&rsquo;&rsquo; option, and creates a new
d183 1
a183 1
<p style="margin-left:24%;"><b>tar &minus;a &minus;jcf</b>
d190 1
a190 1
<p style="margin-top: 1em"><b>&minus;&minus;acls</b></p>
d194 5
a198 6
is the reverse of <b>&minus;&minus;no-acls</b> and the
default behavior in c, r, and u modes (except Mac OS X) or
if <b>tar</b> is run in x mode as root. On Mac OS X this
option translates extended ACLs to NFSv4 ACLs. To store
extended ACLs the <b>&minus;&minus;mac-metadata</b> option
is preferred.</p>
d200 2
a201 2
<p style="margin-top: 1em"><b>&minus;B</b>,
<b>&minus;&minus;read-full-blocks</b></p>
d206 2
a207 3
<p style="margin-top: 1em"><b>&minus;b</b>
<i>blocksize</i>, <b>&minus;&minus;block-size</b>
<i>blocksize</i></p>
d215 3
a217 3
<p style="margin-top: 1em"><b>&minus;C</b>
<i>directory</i>, <b>&minus;&minus;cd</b> <i>directory</i>,
<b>&minus;&minus;directory</b> <i>directory</i></p>
d224 1
a224 1
<p style="margin-top: 1em"><b>&minus;&minus;chroot</b></p>
d227 2
a228 2
to the current directory after processing any
<b>&minus;C</b> options and before extracting any files.</p>
d231 1
a231 1
<p style="margin-top: 1em"><b>&minus;&minus;clear-nochange-fflags</b></p>
d237 1
a237 1
<p style="margin-top: 1em"><b>&minus;&minus;exclude</b>
d245 1
a245 1
<p style="margin-top: 1em"><b>&minus;&minus;fflags</b></p>
d249 2
a250 3
<b>&minus;&minus;no-fflags</b> and the default behavior in
c, r, and u modes or if <b>tar</b> is run in x mode as
root.</p>
d252 1
a252 1
<p style="margin-top: 1em"><b>&minus;&minus;format</b>
d257 4
a260 4
include &lsquo;&lsquo;cpio&rsquo;&rsquo;,
&lsquo;&lsquo;pax&rsquo;&rsquo;,
&lsquo;&lsquo;shar&rsquo;&rsquo;, and
&lsquo;&lsquo;ustar&rsquo;&rsquo;. Other formats may also be
d267 2
a268 2
<p style="margin-top: 1em"><b>&minus;f</b> <i>file</i>,
<b>&minus;&minus;file</b> <i>file</i></p>
d277 1
a277 2
<p style="margin-top: 1em"><b>&minus;&minus;gid</b>
<i>id</i></p>
d283 2
a284 2
<b>&minus;&minus;gname</b> is not also specified, the group
name will be set to match the group id.</p>
d286 1
a286 2
<p style="margin-top: 1em"><b>&minus;&minus;gname</b>
<i>name</i></p>
d291 4
a294 5
group id (from the archive or from the
<b>&minus;&minus;gid</b> option) will be used instead. On
create, this sets the group name that will be stored in the
archive; the name will not be verified against the system
group database.</p>
d296 1
a296 1
<p style="margin-top: 1em"><b>&minus;H</b></p>
d303 1
a303 1
<p style="margin-top: 1em"><b>&minus;h</b></p>
d306 1
a306 1
only) Synonym for <b>&minus;L</b>.</p>
d308 1
a308 1
<p style="margin-top: 1em"><b>&minus;I</b></p>
d311 1
a311 1
<b>&minus;T</b>.</p>
d313 1
a313 1
<p style="margin-top: 1em"><b>&minus;&minus;help</b></p>
d317 1
a317 2

<p style="margin-top: 1em"><b>&minus;&minus;hfsCompression</b></p>
d323 1
d325 3
a327 5
<p style="margin-top: 1em"><b>&minus;&minus;ignore-zeros</b></p>

<p style="margin-left:17%;">An alias of
<b>&minus;&minus;options read_concatenated_archives</b> for
compatibility with GNU tar.</p>
d329 1
a329 1
<p style="margin-top: 1em"><b>&minus;&minus;include</b>
d334 8
a341 9
exclusions specified with <b>&minus;&minus;exclude</b> take
precedence over inclusions. If no inclusions are explicitly
specified, all entries are processed by default. The
<b>&minus;&minus;include</b> option is especially useful
when filtering archives. For example, the command</p>

<p style="margin-left:24%;"><b>tar &minus;c &minus;f</b>
<i>new.tar</i> <b>&minus;&minus;include=&rsquo;*foo*&rsquo;
@@</b><i>old.tgz</i></p>
d345 1
a345 1
<i>old.tgz</i> containing the string &lsquo;foo&rsquo;.</p>
d347 1
a347 2
<p style="margin-top: 1em"><b>&minus;J</b>,
<b>&minus;&minus;xz</b></p>
d355 2
a356 3
<p style="margin-top: 1em"><b>&minus;j</b>,
<b>&minus;&minus;bzip</b>, <b>&minus;&minus;bzip2</b>,
<b>&minus;&minus;bunzip2</b></p>
d364 2
a365 2
<p style="margin-top: 1em"><b>&minus;k</b>,
<b>&minus;&minus;keep-old-files</b></p>
d372 1
a372 2

<p style="margin-top: 1em"><b>&minus;&minus;keep-newer-files</b></p>
d378 2
a379 2
<p style="margin-top: 1em"><b>&minus;L</b>,
<b>&minus;&minus;dereference</b></p>
d386 2
a387 2
<p style="margin-top: 1em"><b>&minus;l</b>,
<b>&minus;&minus;check-links</b></p>
d393 1
a393 1
<p style="margin-top: 1em"><b>&minus;&minus;lrzip</b></p>
d399 1
a399 1
<p style="margin-top: 1em"><b>&minus;&minus;lz4</b></p>
d406 1
a406 1
<p style="margin-top: 1em"><b>&minus;&minus;lzma</b></p>
d411 4
a414 4
archives should be created with <b>&minus;&minus;xz</b>
instead. Note that, unlike other <b>tar</b> implementations,
this implementation recognizes LZMA compression
automatically when reading archives.</p>
d416 1
a416 1
<p style="margin-top: 1em"><b>&minus;&minus;lzop</b></p>
d422 2
a423 2
<p style="margin-top: 1em"><b>&minus;m</b>,
<b>&minus;&minus;modification-time</b></p>
d429 1
a429 2

<p style="margin-top: 1em"><b>&minus;&minus;mac-metadata</b></p>
d434 6
a439 7
the reverse of <b>&minus;&minus;no-mac-metadata</b>. and the
default behavior in c, r, and u modes or if <b>tar</b> is
run in x mode as root.</p>

<p style="margin-top: 1em"><b>&minus;n</b>,
<b>&minus;&minus;norecurse</b>,
<b>&minus;&minus;no-recursion</b></p>
d444 1
a444 2
<p style="margin-top: 1em"><b>&minus;&minus;newer</b>
<i>date</i></p>
d450 1
a450 2

<p style="margin-top: 1em"><b>&minus;&minus;newer-mtime</b>
d454 2
a455 2
<b>&minus;&minus;newer</b>, except it compares mtime entries
instead of ctime entries.</p>
d457 1
a457 1
<p style="margin-top: 1em"><b>&minus;&minus;newer-than</b>
d464 1
a464 2

<p style="margin-top: 1em"><b>&minus;&minus;newer-mtime-than</b>
d468 2
a469 2
<b>&minus;&minus;newer-than</b>, except it compares mtime
entries instead of ctime entries.</p>
d471 1
a471 1
<p style="margin-top: 1em"><b>&minus;&minus;nodump</b></p>
d477 1
a477 1
<p style="margin-top: 1em"><b>&minus;&minus;nopreserveHFSCompression</b></p>
d479 5
a483 5
<p style="margin-left:17%;">(x mode only) Mac OS X
specific(v10.6 or later). Do not compress extracted regular
files which were compressed with HFS+ compression before
archived. By default, compress the regular files again with
HFS+ compression.</p>
d485 1
a485 1
<p style="margin-top: 1em"><b>&minus;&minus;null</b></p>
d488 4
a491 5
<b>&minus;I</b> or <b>&minus;T</b>) Filenames or patterns
are separated by null characters, not by newlines. This is
often used to read filenames output by the
<b>&minus;print0</b> option to find(1).</p>

d493 1
a493 1
<p style="margin-top: 1em"><b>&minus;&minus;no-acls</b></p>
d497 3
a499 3
reverse of <b>&minus;&minus;acls</b> and the default
behavior if <b>tar</b> is run as non-root in x mode (on Mac
OS X also in c, r and u modes).</p>
d501 1
a501 2

<p style="margin-top: 1em"><b>&minus;&minus;no-fflags</b></p>
d505 2
a506 3
<b>&minus;&minus;fflags</b> and the default behavior if
<b>tar</b> is run as non-root in x mode.</p>

d508 1
a508 1
<p style="margin-top: 1em"><b>&minus;&minus;no-mac-metadata</b></p>
d513 2
a514 3
the reverse of <b>&minus;&minus;mac-metadata</b>. and the
default behavior if <b>tar</b> is run as non-root in x
mode.</p>
d516 2
a517 3
<p style="margin-top: 1em"><b>&minus;n</b>,
<b>&minus;&minus;norecurse</b>,
<b>&minus;&minus;no-recursion</b></p>
d519 1
a519 2

<p style="margin-top: 1em"><b>&minus;&minus;no-same-owner</b></p>
d523 2
a524 2
<b>&minus;&minus;same-owner</b> and the default behavior if
<b>tar</b> is run as non-root.</p>
d527 1
a527 1
<p style="margin-top: 1em"><b>&minus;&minus;no-same-permissions</b></p>
d532 2
a533 7
<b>&minus;p</b> and the default behavior if <b>tar</b> is
run as non-root and can be overridden by also specifying
<b>&minus;&minus;acls</b>, <b>&minus;&minus;fflags</b>,
<b>&minus;&minus;mac-metadata, &minus;&minus;same-owner</b>,
<b>&minus;&minus;same-permissions</b> and
<b>&minus;&minus;xattrs</b>.</p>

d535 1
a535 1
<p style="margin-top: 1em"><b>&minus;&minus;no-xattrs</b></p>
d539 2
a540 2
of <b>&minus;&minus;xattrs</b> and the default behavior if
<b>tar</b> is run as non-root in x mode.</p>
d542 1
a542 2

<p style="margin-top: 1em"><b>&minus;&minus;numeric-owner</b></p>
d545 5
a549 6
<b>&minus;&minus;uname</b> &quot;&quot;
<b>&minus;&minus;gname</b> &quot;&quot;. On extract, it
causes user and group names in the archive to be ignored in
favor of the numeric user and group ids. On create, it
causes user and group names to not be stored in the
archive.</p>
d551 2
a552 2
<p style="margin-top: 1em"><b>&minus;O</b>,
<b>&minus;&minus;to-stdout</b></p>
d559 1
a559 1
<p style="margin-top: 1em"><b>&minus;o</b></p>
d564 4
a567 5
significance unless <b>&minus;p</b> is specified, and the
program is being run by the root user. In this case, the
file modes and flags from the archive will be restored, but
ACLs or owner information in the archive will be
discarded.</p>
d569 1
a569 1
<p style="margin-top: 1em"><b>&minus;o</b></p>
d572 1
a572 1
A synonym for <b>&minus;&minus;format</b> <i>ustar</i></p>
d574 1
a574 2
<p style="margin-top: 1em"><b>&minus;&minus;older</b>
<i>date</i></p>
d580 1
a580 2

<p style="margin-top: 1em"><b>&minus;&minus;older-mtime</b>
d584 2
a585 2
<b>&minus;&minus;older</b>, except it compares mtime entries
instead of ctime entries.</p>
d587 1
a587 1
<p style="margin-top: 1em"><b>&minus;&minus;older-than</b>
d594 1
a594 2

<p style="margin-top: 1em"><b>&minus;&minus;older-mtime-than</b>
d598 2
a599 2
<b>&minus;&minus;older-than</b>, except it compares mtime
entries instead of ctime entries.</p>
d601 1
a601 2

<p style="margin-top: 1em"><b>&minus;&minus;one-file-system</b></p>
d606 1
a606 1
<p style="margin-top: 1em"><b>&minus;&minus;options</b>
d724 1
a724 1
&lsquo;&lsquo;device, flags, gid, gname, link, mode, nlink,
d768 2
a769 2
This option is comparable to the <b>&minus;i</b>,
<b>&minus;&minus;ignore-zeros</b> option of GNU tar.</p>
d774 2
a775 2
<p style="margin-top: 1em"><b>&minus;P</b>,
<b>&minus;&minus;absolute-paths</b></p>
d785 2
a786 3
<p style="margin-top: 1em"><b>&minus;p</b>,
<b>&minus;&minus;insecure</b>,
<b>&minus;&minus;preserve-permissions</b></p>
d790 1
a790 1
including owner, file modes, ACLs, extended atributes and
d792 5
a796 8
from the archive. This is the default, if <b>tar</b> is
being run by root and can be overridden by also specifying
<b>&minus;&minus;no-acls</b>,
<b>&minus;&minus;no-fflags</b>,
<b>&minus;&minus;no-mac-metadata,
&minus;&minus;no-same-owner</b>,
<b>&minus;&minus;no-same-permissions</b> and
<b>&minus;&minus;no-xattrs</b>.</p>
d798 1
a798 1
<p style="margin-top: 1em"><b>&minus;&minus;passphrase</b>
d807 1
a807 1
<p style="margin-top: 1em"><b>&minus;&minus;posix</b></p>
d810 1
a810 1
<b>&minus;&minus;format</b> <i>pax</i></p>
d812 2
a813 2
<p style="margin-top: 1em"><b>&minus;q</b>,
<b>&minus;&minus;fast-read</b></p>
d824 1
a824 1
<p style="margin-top: 1em"><b>&minus;S</b></p>
d832 1
a832 2
<p style="margin-top: 1em"><b>&minus;s</b>
<i>pattern</i></p>
d858 1
a858 2

<p style="margin-top: 1em"><b>&minus;&minus;same-owner</b></p>
d861 2
a862 4
group IDs. This is the reverse of
<b>&minus;&minus;no-same-owner</b> and the default behavior
if <b>tar</b> is run as root.</p>

d864 1
a864 1
<p style="margin-top: 1em"><b>&minus;&minus;strip-components</b>
d873 2
a874 2
<p style="margin-top: 1em"><b>&minus;T</b> <i>filename</i>,
<b>&minus;&minus;files-from</b> <i>filename</i></p>
d880 1
a880 1
&lsquo;&lsquo;-C&rsquo;&rsquo; on a line by itself will
d883 5
a887 5
newlines unless <b>&minus;&minus;null</b> is specified. Note
that <b>&minus;&minus;null</b> also disables the special
handling of lines containing &lsquo;&lsquo;-C&rsquo;&rsquo;.
Note: If you are generating lists of files using find(1),
you probably want to use <b>&minus;n</b> as well.</p>
d889 1
a889 1
<p style="margin-top: 1em"><b>&minus;&minus;totals</b></p>
d894 2
a895 3
<p style="margin-top: 1em"><b>&minus;U</b>,
<b>&minus;&minus;unlink</b>,
<b>&minus;&minus;unlink-first</b></p>
d905 1
a905 2
<p style="margin-top: 1em"><b>&minus;&minus;uid</b>
<i>id</i></p>
d909 2
a910 2
<b>&minus;&minus;uname</b> is not also specified, the user
name will be set to match the user id.</p>
d912 1
a912 2
<p style="margin-top: 1em"><b>&minus;&minus;uname</b>
<i>name</i></p>
d918 3
a920 4
<b>&minus;&minus;uid</b> option) will be used instead. On
create, this sets the user name that will be stored in the
archive; the name is not verified against the system user
database.</p>
d922 1
a922 2

<p style="margin-top: 1em"><b>&minus;&minus;use-compress-program</b>
d929 1
a929 2
<p style="margin-top: 1em"><b>&minus;v</b>,
<b>&minus;&minus;verbose</b></p>
d935 2
a936 3
ls(1). An additional <b>&minus;v</b> option will also
provide ls-like details in create and extract mode.</p>

d938 1
a938 1
<p style="margin-top: 1em"><b>&minus;&minus;version</b></p>
d943 2
a944 3
<p style="margin-top: 1em"><b>&minus;w</b>,
<b>&minus;&minus;confirmation</b>,
<b>&minus;&minus;interactive</b></p>
d949 2
a950 2
<p style="margin-top: 1em"><b>&minus;X</b> <i>filename</i>,
<b>&minus;&minus;exclude-from</b> <i>filename</i></p>
d953 2
a954 3
patterns from the specified file. See
<b>&minus;&minus;exclude</b> for more information about the
handling of exclusions.</p>
d956 1
a956 1
<p style="margin-top: 1em"><b>&minus;&minus;xattrs</b></p>
d960 2
a961 3
<b>&minus;&minus;no-xattrs</b> and the default behavior in
c, r, and u modes or if <b>tar</b> is run in x mode as
root.</p>
d963 1
a963 1
<p style="margin-top: 1em"><b>&minus;y</b></p>
d971 2
a972 3
<p style="margin-top: 1em"><b>&minus;Z</b>,
<b>&minus;&minus;compress</b>,
<b>&minus;&minus;uncompress</b></p>
d981 2
a982 2
<p style="margin-top: 1em"><b>&minus;z</b>,
<b>&minus;&minus;gunzip</b>, <b>&minus;&minus;gzip</b></p>
d998 2
a999 2
readers and compression readers. The
<b>&minus;&minus;options</b> option overrides this.</p>
d1004 2
a1005 2
writers and compression writers. The
<b>&minus;&minus;options</b> option overrides this.</p>
d1015 3
a1017 3
device. The <b>&minus;f</b> option overrides this. Please
see the description of the <b>&minus;f</b> option above for
more details.</p>
d1037 2
a1038 2
<p style="margin-left:14%;"><b>tar &minus;czf</b>
<i>file.tar.gz source.c source.h</i></p>
d1043 1
a1043 1
<p style="margin-left:14%;"><b>tar &minus;tvf</b>
d1049 1
a1049 1
<p style="margin-left:14%;"><b>tar &minus;x</b></p>
d1054 1
a1054 1
<p style="margin-left:14%;"><b>tar &minus;tf</b>
d1060 3
a1062 3
<p style="margin-left:14%;"><b>tar &minus;cf</b> <i>-</i>
<b>&minus;C</b> <i>srcdir&nbsp;.</i> | <b>tar &minus;xpf</b>
<i>-</i> <b>&minus;C</b> <i>destdir</i></p>
d1066 3
a1068 3
<p style="margin-left:14%;">cd srcdir ; <b>tar
&minus;cf</b> <i>-&nbsp;.</i> | (<i>cd destdir ;</i> <b>tar
&minus;xpf</b> <i>-</i>)</p>
d1077 2
a1078 2
<p style="margin-left:14%;"><b>tar &minus;c &minus;f</b>
<i>new.tar foo1</i> <b>@@</b><i>old.tgz</i> <b>-C</b><i>/tmp
d1102 6
a1107 7
<b>&minus;&minus;newer</b> and
<b>&minus;&minus;newer-mtime</b> switches accept a variety
of common date and time specifications, including
&lsquo;&lsquo;12 Mar 2005 7:14:29pm&rsquo;&rsquo;,
&lsquo;&lsquo;2005-03-12 19:14&rsquo;&rsquo;,
&lsquo;&lsquo;5 minutes ago&rsquo;&rsquo;, and
&lsquo;&lsquo;19:14 PST May 1&rsquo;&rsquo;.</p>
d1110 8
a1117 8
<b>&minus;&minus;options</b> argument can be used to control
various details of archive generation or reading. For
example, you can generate mtree output which only contains
<b>type</b>, <b>time</b>, and <b>uid</b> keywords:</p>

<p style="margin-left:14%;"><b>tar &minus;cf</b>
<i>file.tar</i> <b>&minus;&minus;format=mtree
&minus;&minus;options=&rsquo;!all,type,time,uid&rsquo;</b>
d1123 2
a1124 3
<p style="margin-left:14%;"><b>tar &minus;czf</b>
<i>file.tar</i>
<b>&minus;&minus;options=&rsquo;compression-level=9&rsquo;</b>.</p>
d1203 4
a1206 4
<b>&minus;U</b> is specified, any intermediate symlink will
also be unconditionally removed. If neither <b>&minus;U</b>
nor <b>&minus;P</b> is specified, <b>tar</b> will refuse to
extract the entry.</p>
d1212 1
a1212 1
<p style="margin-left:14%;"><b>tar &minus;tf</b>
d1216 8
a1223 9
use the <b>&minus;k</b> option to ensure that <b>tar</b>
will not overwrite any existing files or the <b>&minus;U</b>
option to remove any pre-existing files. You should
generally not extract archives while running with super-user
privileges. Note that the <b>&minus;P</b> option to
<b>tar</b> disables the security checks above and allows you
to extract an archive while preserving any absolute
pathnames, <i>..</i> components, or symlinks to other
directories.</p>
d1235 1
a1235 1
9945-1:1996 (&lsquo;&lsquo;POSIX.1&rsquo;&rsquo;) but was
d1237 1
a1237 1
(&lsquo;&lsquo;POSIX.1&rsquo;&rsquo;). The options supported
d1245 1
a1245 1
1003.1-2001 (&lsquo;&lsquo;POSIX.1&rsquo;&rsquo;) for the
d1267 4
a1270 4
9945-1:1996 (&lsquo;&lsquo;POSIX.1&rsquo;&rsquo;) for the
definition of the <b>&minus;l</b> option. Note that GNU tar
prior to version 1.15 treated <b>&minus;l</b> as a synonym
for the <b>&minus;&minus;one-file-system</b> option.</p>
d1272 2
a1273 2
<p style="margin-left:6%; margin-top: 1em">The
<b>&minus;C</b> <i>dir</i> option may differ from historic
d1295 1
a1295 1
<p style="margin-left:14%;"><b>tar &minus;czf</b> <i>-
d1300 2
a1301 2
<p style="margin-left:14%;"><b>tar &minus;cf</b> <i>-
file</i> | <b>gzip</b></p>
d1319 1
a1319 1
stripped unless the <b>&minus;P</b> option is specified.</p>
d1336 1
a1336 1
February&nbsp;24, 2017 BSD</p>
@


1.3
log
@Update for libarchive 3.2.1.
@
text
@d2 1
a2 1
<!-- CreationDate: Sun Jun 19 19:54:10 2016 -->
d57 1
a57 1
synopsis form shows a &rsquo;&rsquo;bundled&rsquo;&rsquo;
d126 1
a126 1
<p style="margin-left:17%;">(c and r mode only) The
d182 1
a182 1
&rsquo;&rsquo;-j&rsquo;&rsquo; option, and creates a new
d192 11
a240 6

<p style="margin-top: 1em"><b>&minus;&minus;disable-copyfile</b></p>

<p style="margin-left:17%;">Mac OS X specific. Disable the
use of copyfile(3).</p>

d249 8
d262 4
a265 4
include &rsquo;&rsquo;cpio&rsquo;&rsquo;,
&rsquo;&rsquo;pax&rsquo;&rsquo;,
&rsquo;&rsquo;shar&rsquo;&rsquo;, and
&rsquo;&rsquo;ustar&rsquo;&rsquo;. Other formats may also be
d306 1
a306 1
<p style="margin-left:17%; margin-top: 1em">(c and r mode
d313 1
a313 1
<p style="margin-left:17%; margin-top: 1em">(c and r mode
d328 3
a330 3
<p style="margin-left:17%;">(x mode only) Mac OS X
specific(v10.6 or later). Compress extracted regular files
with HFS+ compression.</p>
d356 1
a356 1
<i>old.tgz</i> containing the string &rsquo;foo&rsquo;.</p>
d395 1
a395 1
<p style="margin-left:17%;">(c and r mode only) All
d443 10
d513 31
d558 13
a570 1
run as non-root.</p>
d761 1
a761 1
&rsquo;&rsquo;device, flags, gid, gname, link, mode, nlink,
d828 10
a837 6
including owner, file modes, file flags and ACLs, if
available, for each item extracted from the archive. This is
the default, if <b>tar</b> is being run by root and can be
overridden by also specifying
<b>&minus;&minus;no-same-owner</b> and
<b>&minus;&minus;no-same-permissions</b>.</p>
d925 1
a925 1
&rsquo;&rsquo;-C&rsquo;&rsquo; on a line by itself will
d930 1
a930 1
handling of lines containing &rsquo;&rsquo;-C&rsquo;&rsquo;.
d936 1
a936 1
<p style="margin-left:17%;">(c, r, u mode only) After
d1010 8
d1161 4
a1164 4
&rsquo;&rsquo;12 Mar 2005 7:14:29pm&rsquo;&rsquo;,
&rsquo;&rsquo;2005-03-12 19:14&rsquo;&rsquo;,
&rsquo;&rsquo;5 minutes ago&rsquo;&rsquo;, and
&rsquo;&rsquo;19:14 PST May 1&rsquo;&rsquo;.</p>
d1294 1
a1294 1
9945-1:1996 (&rsquo;&rsquo;POSIX.1&rsquo;&rsquo;) but was
d1296 1
a1296 1
(&rsquo;&rsquo;POSIX.1&rsquo;&rsquo;). The options supported
d1304 1
a1304 1
1003.1-2001 (&rsquo;&rsquo;POSIX.1&rsquo;&rsquo;) for the
d1326 1
a1326 1
9945-1:1996 (&rsquo;&rsquo;POSIX.1&rsquo;&rsquo;) for the
d1395 1
a1395 1
September&nbsp;16, 2014 BSD</p>
@


1.2
log
@Changes 3.1.2:
This is a maintenance update to fix issues with the new RAR seeking
feature. This new release also contains fixes for build failures when
building libarchive using Visual Studio 2012 and MinGW.
@
text
@d1 2
a2 2
<!-- Creator     : groff version 1.21 -->
<!-- CreationDate: Sat Feb  9 12:24:09 2013 -->
d224 7
d319 7
d400 7
d648 27
d721 21
d769 9
d916 2
a917 2
ls(1). Additional <b>&minus;v</b> options will provide
additional detail.</p>
d1307 1
a1307 2
any support for multi-volume archives or for archiving
sparse files.</p>
d1317 1
a1317 1
November&nbsp;1, 2012 BSD</p>
@


1.1
log
@Initial revision
@
text
@d1 2
a2 2
<!-- Creator     : groff version 1.19.2 -->
<!-- CreationDate: Thu Feb  4 20:36:40 2010 -->
d11 4
a14 3
       p     { margin-top: 0; margin-bottom: 0; }
       pre   { margin-top: 0; margin-bottom: 0; }
       table { margin-top: 0; margin-bottom: 0; }
d23 1
a23 2
<p valign="top">BSDTAR(1) FreeBSD General Commands Manual
BSDTAR(1)</p>
d25 1
a25 1
<p style="margin-top: 1em" valign="top"><b>NAME</b></p>
d27 1
a27 1
<p style="margin-left:8%;"><b>tar</b> &mdash; manipulate
d30 1
d32 1
a32 3
<p style="margin-top: 1em" valign="top"><b>SYNOPSIS</b></p>

<p style="margin-left:14%;"><b>tar</b>
d35 3
a37 3
<p valign="top">args &rang;] [&lang; <i><br>
file</i> &rang;&nbsp;|&nbsp;&lang; <i><br>
pattern</i> &rang;&nbsp;...]</p>
d39 1
a39 1
<p style="margin-left:14%;"><b>tar</b> {<b>&minus;c</b>}
d48 1
d50 1
a50 3
<p style="margin-top: 1em" valign="top"><b>DESCRIPTION</b></p>

<p style="margin-left:8%;"><b>tar</b> creates and
d52 3
a54 3
extract from tar, pax, cpio, zip, jar, ar, and ISO 9660
cdrom images and can create tar, pax, cpio, ar, and shar
archives.</p>
d56 2
a57 2
<p style="margin-left:8%; margin-top: 1em">The first
synopsis form shows a &lsquo;&lsquo;bundled&rsquo;&rsquo;
d62 1
a62 1
<p style="margin-left:8%; margin-top: 1em">The other
d66 1
a66 1
<p valign="top"><b>&minus;c</b></p>
d68 3
a70 2
<p style="margin-left:20%; margin-top: 1em">Create a new
archive containing the specified items.</p>
d72 1
a72 1
<p valign="top"><b>&minus;r</b></p>
d74 1
a74 1
<p style="margin-left:20%; margin-top: 1em">Like
d78 2
a79 1
required.</p>
d81 1
a81 1
<p valign="top"><b>&minus;t</b></p>
d83 3
a85 2
<p style="margin-left:20%; margin-top: 1em">List archive
contents to stdout.</p>
d87 1
a87 1
<p valign="top"><b>&minus;u</b></p>
d89 1
a89 1
<p style="margin-left:20%; margin-top: 1em">Like
d94 2
a95 1
is required.</p>
d97 1
a97 1
<p valign="top"><b>&minus;x</b></p>
d99 1
a99 1
<p style="margin-left:20%; margin-top: 1em">Extract to disk
d102 2
a103 1
later copies overwriting (replacing) earlier copies.</p>
d105 1
a105 1
<p style="margin-left:8%; margin-top: 1em">In
d111 1
a111 1
<p style="margin-left:8%; margin-top: 1em">In extract or
d118 1
a118 1
<p style="margin-top: 1em" valign="top"><b>OPTIONS</b></p>
d120 1
a120 1
<p style="margin-left:8%;">Unless specifically stated
d124 1
d126 1
a126 3
<p style="margin-top: 1em" valign="top"><b>@@</b><i>archive</i></p>

<p style="margin-left:20%;">(c and r mode only) The
d130 1
a130 1
<p style="margin-left:29%;"><b>tar &minus;c &minus;f</b>
d133 1
a133 1
<p style="margin-left:20%;">writes a new archive to
d137 1
a137 1
<p style="margin-left:29%;"><b>tar &minus;c &minus;f</b>
d140 1
a140 1
<p style="margin-left:20%;">creates a new archive with only
d143 2
a144 2
<p style="margin-left:29%;"><b>tar &minus;czf</b> <i>-</i>
<b>&minus;-format pax @@</b><i>-</i></p>
d146 1
a146 1
<p style="margin-left:20%;">reads an archive from standard
d152 48
a199 1
<p style="margin-top: 1em" valign="top"><b>&minus;b</b>
d202 1
a202 1
<p style="margin-left:20%;">Specify the block size, in
d208 3
a210 2
<p style="margin-top: 1em" valign="top"><b>&minus;C</b>
<i>directory</i></p>
d212 1
a212 1
<p style="margin-left:20%;">In c and r mode, this changes
d217 1
d219 3
a221 5
<p style="margin-top: 1em" valign="top"><b>&minus;-check-links</b></p>

<p style="margin-left:20%;">(c and r modes only) Issue a
warning message unless all links to each file are
archived.</p>
d224 1
a224 1
<p style="margin-top: 1em" valign="top"><b>&minus;-chroot</b></p>
d226 2
a227 3
<p style="margin-left:20%;">(x mode only) <b>chroot</b>()
to the current directory after processing any
<b>&minus;C</b> options and before extracting any files.</p>
d229 1
a229 2

<p style="margin-top: 1em" valign="top"><b>&minus;-exclude</b>
d232 1
a232 1
<p style="margin-left:20%;">Do not process files or
d237 1
a237 2

<p style="margin-top: 1em" valign="top"><b>&minus;-format</b>
d240 1
a240 1
<p style="margin-left:20%;">(c, r, u mode only) Use the
d242 4
a245 4
include &lsquo;&lsquo;cpio&rsquo;&rsquo;,
&lsquo;&lsquo;pax&rsquo;&rsquo;,
&lsquo;&lsquo;shar&rsquo;&rsquo;, and
&lsquo;&lsquo;ustar&rsquo;&rsquo;. Other formats may also be
d252 2
a253 2
<p style="margin-top: 1em" valign="top"><b>&minus;f</b>
<i>file</i></p>
d255 1
a255 1
<p style="margin-left:20%;">Read the archive from or write
d257 26
a282 3
<i>-</i> for standard input or standard output. If not
specified, the default tape device will be used. (On
FreeBSD, the default tape device is <i>/dev/sa0</i>.)</p>
d284 1
d286 1
a286 3
<p style="margin-top: 1em" valign="top"><b>&minus;H</b></p>

<p style="margin-left:20%; margin-top: 1em">(c and r mode
d291 4
d296 1
a296 1
<p style="margin-top: 1em" valign="top"><b>&minus;h</b></p>
d298 4
a301 2
<p style="margin-left:20%; margin-top: 1em">(c and r mode
only) Synonym for <b>&minus;L</b>.</p>
d303 1
a304 1
<p style="margin-top: 1em" valign="top"><b>&minus;I</b></p>
d306 1
a306 2
<p style="margin-left:20%; margin-top: 1em">Synonym for
<b>&minus;T</b>.</p>
d308 3
d312 1
a312 1
<p style="margin-top: 1em" valign="top"><b>&minus;-include</b>
d315 1
a315 1
<p style="margin-left:20%;">Process only files or
d317 1
a317 1
exclusions specified with <b>&minus;-exclude</b> take
d320 2
a321 2
<b>&minus;-include</b> option is especially useful when
filtering archives. For example, the command</p>
d323 2
a324 2
<p style="margin-left:29%;"><b>tar &minus;c &minus;f</b>
<i>new.tar</i> <b>&minus;-include=&rsquo;*foo*&rsquo;
d327 1
a327 1
<p style="margin-left:20%;">creates a new archive
d329 1
a329 1
<i>old.tgz</i> containing the string &lsquo;foo&rsquo;.</p>
d331 2
d334 5
a338 1
<p style="margin-top: 1em" valign="top"><b>&minus;j</b></p>
d340 3
a342 5
<p style="margin-left:20%; margin-top: 1em">(c mode only)
Compress the resulting archive with bzip2(1). In extract or
list modes, this option is ignored. Note that, unlike other
<b>tar</b> implementations, this implementation recognizes
bzip2 compression automatically when reading archives.</p>
d344 5
d350 2
a351 1
<p style="margin-top: 1em" valign="top"><b>&minus;k</b></p>
d353 4
a356 4
<p style="margin-left:20%; margin-top: 1em">(x mode only)
Do not overwrite existing files. In particular, if a file
appears more than once in an archive, later copies will not
overwrite earlier copies.</p>
d359 1
a359 1
<p style="margin-top: 1em" valign="top"><b>&minus;-keep-newer-files</b></p>
d361 1
a361 1
<p style="margin-left:20%;">(x mode only) Do not overwrite
d365 2
d368 4
a371 1
<p style="margin-top: 1em" valign="top"><b>&minus;L</b></p>
d373 6
a378 4
<p style="margin-left:20%; margin-top: 1em">(c and r mode
only) All symbolic links will be followed. Normally,
symbolic links are archived as such. With this option, the
target of the link will be archived instead.</p>
d380 1
d382 3
a384 1
<p style="margin-top: 1em" valign="top"><b>&minus;l</b></p>
d386 1
a386 2
<p style="margin-left:20%; margin-top: 1em">This is a
synonym for the <b>&minus;-check-links</b> option.</p>
d388 7
d396 1
a396 1
<p style="margin-top: 1em" valign="top"><b>&minus;m</b></p>
d398 3
a400 4
<p style="margin-left:20%; margin-top: 1em">(x mode only)
Do not extract modification time. By default, the
modification time is set to the time stored in the
archive.</p>
d402 2
d405 3
a407 1
<p style="margin-top: 1em" valign="top"><b>&minus;n</b></p>
d409 3
a411 3
<p style="margin-left:20%; margin-top: 1em">(c, r, u modes
only) Do not recursively archive the contents of
directories.</p>
d413 2
d416 1
a416 1
<p style="margin-top: 1em" valign="top"><b>&minus;-newer</b>
d419 1
a419 1
<p style="margin-left:20%;">(c, r, u modes only) Only
d424 1
a424 1
<p style="margin-top: 1em" valign="top"><b>&minus;-newer-mtime</b>
d427 2
a428 2
<p style="margin-left:20%;">(c, r, u modes only) Like
<b>&minus;-newer</b>, except it compares mtime entries
d431 1
a431 2

<p style="margin-top: 1em" valign="top"><b>&minus;-newer-than</b>
d434 1
a434 1
<p style="margin-left:20%;">(c, r, u modes only) Only
d439 1
a439 1
<p style="margin-top: 1em" valign="top"><b>&minus;-newer-mtime-than</b>
d442 11
a452 3
<p style="margin-left:20%;">(c, r, u modes only) Like
<b>&minus;-newer-than</b>, except it compares mtime entries
instead of ctime entries.</p>
d454 5
d460 1
a460 1
<p style="margin-top: 1em" valign="top"><b>&minus;-nodump</b></p>
d462 5
a466 2
<p style="margin-left:20%;">(c and r modes only) Honor the
nodump file flag by skipping this file.</p>
d469 1
a469 1
<p style="margin-top: 1em" valign="top"><b>&minus;-null</b></p>
d471 4
a474 5
<p style="margin-left:20%; margin-top: 1em">(use with
<b>&minus;I</b>, <b>&minus;T</b>, or <b>&minus;X</b>)
Filenames or patterns are separated by null characters, not
by newlines. This is often used to read filenames output by
the <b>&minus;print0</b> option to find(1).</p>
d477 1
a477 1
<p style="margin-top: 1em" valign="top"><b>&minus;-numeric-owner</b></p>
d479 5
a483 3
<p style="margin-left:20%;">(x mode only) Ignore symbolic
user and group names when restoring archives to disk, only
numeric uid and gid values will be obeyed.</p>
d486 1
a486 1
<p style="margin-top: 1em" valign="top"><b>&minus;O</b></p>
d488 7
a494 5
<p style="margin-left:20%; margin-top: 1em">(x, t modes
only) In extract (-x) mode, files will be written to
standard out rather than being extracted to disk. In list
(-t) mode, the file listing will be written to stderr rather
than the usual stdout.</p>
d496 2
d499 4
a502 1
<p style="margin-top: 1em" valign="top"><b>&minus;o</b></p>
d504 3
a506 1
<p style="margin-left:20%; margin-top: 1em">(x mode) Use
d515 1
d517 2
a518 1
<p style="margin-top: 1em" valign="top"><b>&minus;o</b></p>
d520 2
a521 2
<p style="margin-left:20%; margin-top: 1em">(c, r, u mode)
A synonym for <b>&minus;-format</b> <i>ustar</i></p>
d523 3
a526 1
<p style="margin-top: 1em" valign="top"><b>&minus;-one-file-system</b></p>
d528 26
a553 1
<p style="margin-left:20%;">(c, r, and u modes) Do not
d556 1
a556 2

<p style="margin-top: 1em" valign="top"><b>&minus;-options</b>
d559 1
a559 1
<p style="margin-left:20%;">Select optional behaviors for
d566 1
a566 1
<p valign="top"><i>key=value</i></p>
d568 1
a568 1
<p style="margin-left:32%;">The key will be set to the
d572 1
a572 1
<p valign="top"><i>key</i></p>
d574 1
a574 1
<p style="margin-left:32%; margin-top: 1em">The key will be
d578 1
a578 1
<p valign="top"><i>!key</i></p>
d580 1
a580 1
<p style="margin-left:32%; margin-top: 1em">The key will be
d583 1
a583 1
<p valign="top"><i>module:key=value</i>, <i>module:key</i>,
d586 1
a586 1
<p style="margin-left:32%;">As above, but the corresponding
d590 1
a590 1
<p style="margin-left:20%;">The currently supported modules
d593 1
a593 1
<p valign="top"><b>iso9660:joliet</b></p>
d595 1
a595 1
<p style="margin-left:32%;">Support Joliet extensions. This
d599 1
a599 1
<p valign="top"><b>iso9660:rockridge</b></p>
d601 1
a601 1
<p style="margin-left:32%;">Support Rock Ridge extensions.
d605 1
a605 1
<p valign="top"><b>gzip:compression-level</b></p>
d607 1
a607 1
<p style="margin-left:32%;">A decimal integer from 0 to 9
d610 18
a627 1
<p valign="top"><b>xz:compression-level</b></p>
d629 6
a634 1
<p style="margin-left:32%;">A decimal integer from 0 to 9
d637 1
a637 1
<p valign="top"><b>mtree:</b><i>keyword</i></p>
d639 1
a639 1
<p style="margin-left:32%;">The mtree writer module allows
d647 1
a647 1
&lsquo;&lsquo;device, flags, gid, gname, link, mode, nlink,
d650 1
a650 1
<p valign="top"><b>mtree:all</b></p>
d652 1
a652 1
<p style="margin-left:32%;">Enables all of the above
d656 1
a656 1
<p valign="top"><b>mtree:use-set</b></p>
d658 1
a658 1
<p style="margin-left:32%;">Enable generation of
d661 1
a661 1
<p valign="top"><b>mtree:indent</b></p>
d663 1
a663 1
<p style="margin-left:32%;">Produce human-readable output
d667 1
a667 1
<p valign="top"><b>zip:compression</b>=<i>type</i></p>
d669 1
a669 1
<p style="margin-left:32%;">Use <i>type</i> as compression
d673 1
a673 1
<p style="margin-left:20%;">If a provided option is not
d676 2
d679 22
a700 1
<p style="margin-top: 1em" valign="top"><b>&minus;P</b></p>
d702 2
a703 21
<p style="margin-left:20%; margin-top: 1em">Preserve
pathnames. By default, absolute pathnames (those that begin
with a / character) have the leading slash removed both when
creating archives and extracting from them. Also, <b>tar</b>
will refuse to extract archive entries whose pathnames
contain <i>..</i> or whose target directory would be altered
by a symlink. This option suppresses these behaviors.</p>


<p style="margin-top: 1em" valign="top"><b>&minus;p</b></p>

<p style="margin-left:20%; margin-top: 1em">(x mode only)
Preserve file permissions. Attempt to restore the full
permissions, including owner, file modes, file flags and
ACLs, if available, for each item extracted from the
archive. By default, newly-created files are owned by the
user running <b>tar</b>, the file mode is restored for
newly-created regular files, and all other types of entries
receive default permissions. If <b>tar</b> is being run by
root, the default is to restore the owner unless the
<b>&minus;o</b> option is also specified.</p>
d705 2
a706 2
<p style="margin-top: 1em" valign="top"><b>&minus;q</b>
(<b>&minus;-fast-read</b>)</p>
d708 1
a708 1
<p style="margin-left:20%;">(x and t mode only) Extract or
d717 1
d719 1
a719 3
<p style="margin-top: 1em" valign="top"><b>&minus;S</b></p>

<p style="margin-left:20%; margin-top: 1em">(x mode only)
d722 1
a722 1
otherwise. This works similiar to the conv=sparse option of
d725 2
d728 31
a758 2
<p style="margin-top: 1em" valign="top"><b>&minus;-strip-components</b>
<i>count</i></p>
a759 5
<p style="margin-left:20%;">(x mode only) Remove the
specified number of leading path elements. Pathnames with
fewer elements will be silently skipped. Note that the
pathname is edited after checking inclusion/exclusion
patterns but before security checks.</p>
d761 2
a762 2
<p style="margin-top: 1em" valign="top"><b>&minus;s</b>
<i>pattern</i></p>
d764 5
a768 16
<p style="margin-left:20%;">Modify file or archive member
names according to <i>pattern</i>. The pattern has the
format <i>/old/new/</i>[gps] where <i>old</i> is a basic
regular expression, <i>new</i> is the replacement string of
the matched part, and the optional trailing letters modify
how the replacement is handled. If <i>old</i> is not
matched, the pattern is skipped. Within <i>new</i>, ~ is
substituted with the match, 1 to 9 with the content of the
corresponding captured group. The optional trailing g
specifies that matching should continue after the matched
part and stopped on the first unmatched pattern. The
optional trailing s specifies that the pattern applies to
the value of symbolic links. The optional trailing p
specifies that after a successful substitution the original
path name and the new path name should be printed to
standard error.</p>
d770 2
a771 2
<p style="margin-top: 1em" valign="top"><b>&minus;T</b>
<i>filename</i></p>
d773 1
a773 1
<p style="margin-left:20%;">In x or t mode, <b>tar</b> will
d777 1
a777 1
&lsquo;&lsquo;-C&rsquo;&rsquo; on a line by itself will
d780 42
a821 6
newlines unless <b>&minus;-null</b> is specified. Note that
<b>&minus;-null</b> also disables the special handling of
lines containing &lsquo;&lsquo;-C&rsquo;&rsquo;.</p>


<p style="margin-top: 1em" valign="top"><b>&minus;U</b></p>
a822 6
<p style="margin-left:20%; margin-top: 1em">(x mode only)
Unlink files before creating them. Without this option,
<b>tar</b> overwrites existing files, which preserves
existing hardlinks. With this option, existing hardlinks
will be broken, as will any symlink that would affect the
location of an extracted file.</p>
d824 1
a824 2

<p style="margin-top: 1em" valign="top"><b>&minus;-use-compress-program</b>
d827 1
a827 1
<p style="margin-left:20%;">Pipe the input (in x or t mode)
d831 2
d834 5
a838 7
<p style="margin-top: 1em" valign="top"><b>&minus;v</b></p>

<p style="margin-left:20%; margin-top: 1em">Produce verbose
output. In create and extract modes, <b>tar</b> will list
each file name as it is read from or written to the archive.
In list mode, <b>tar</b> will produce output similar to that
of ls(1). Additional <b>&minus;v</b> options will provide
d842 1
a842 1
<p style="margin-top: 1em" valign="top"><b>&minus;-version</b></p>
d844 1
a844 1
<p style="margin-left:20%;">Print version of <b>tar</b> and
d847 3
d851 2
a852 1
<p style="margin-top: 1em" valign="top"><b>&minus;w</b></p>
d854 2
a855 5
<p style="margin-left:20%; margin-top: 1em">Ask for
confirmation for every action.</p>

<p style="margin-top: 1em" valign="top"><b>&minus;X</b>
<i>filename</i></p>
d857 4
a860 3
<p style="margin-left:20%;">Read a list of exclusion
patterns from the specified file. See <b>&minus;-exclude</b>
for more information about the handling of exclusions.</p>
d862 1
d864 1
a864 3
<p style="margin-top: 1em" valign="top"><b>&minus;y</b></p>

<p style="margin-left:20%; margin-top: 1em">(c mode only)
d870 10
d881 2
a882 1
<p style="margin-top: 1em" valign="top"><b>&minus;z</b></p>
d884 5
a888 5
<p style="margin-left:20%; margin-top: 1em">(c mode only)
Compress the resulting archive with gzip(1). In extract or
list modes, this option is ignored. Note that, unlike other
<b>tar</b> implementations, this implementation recognizes
gzip compression automatically when reading archives.</p>
d890 1
d892 2
a893 1
<p style="margin-top: 1em" valign="top"><b>&minus;Z</b></p>
d895 1
a895 6
<p style="margin-left:20%; margin-top: 1em">(c mode only)
Compress the resulting archive with compress(1). In extract
or list modes, this option is ignored. Note that, unlike
other <b>tar</b> implementations, this implementation
recognizes compress compression automatically when reading
archives.</p>
d897 3
d901 1
a901 1
<p style="margin-top: 1em" valign="top"><b>ENVIRONMENT</b></p>
d903 3
a905 2
<p style="margin-left:8%;">The following environment
variables affect the execution of <b>tar</b>:</p>
d907 1
a907 1
<p style="margin-top: 1em" valign="top">LANG</p>
d909 1
a909 1
<p style="margin-left:25%; margin-top: 1em">The locale to
d912 1
a912 1
<p style="margin-top: 1em" valign="top">TAPE</p>
d914 4
a917 2
<p style="margin-left:25%; margin-top: 1em">The default
tape device. The <b>&minus;f</b> option overrides this.</p>
d919 1
a919 1
<p style="margin-top: 1em" valign="top">TZ</p>
d921 1
a921 1
<p style="margin-left:25%; margin-top: 1em">The timezone to
d925 1
a925 9
<p style="margin-top: 1em" valign="top"><b>FILES</b> <br>
/dev/sa0</p>

<p style="margin-left:25%; margin-top: 1em">The default
tape device, if not overridden by the TAPE environment
variable or the <b>&minus;f</b> option.</p>

<p style="margin-top: 1em" valign="top"><b>EXIT
STATUS</b></p>
d927 1
a927 1
<p style="margin-left:8%;">The <b>tar</b> utility
d931 1
d933 1
a933 3
<p style="margin-top: 1em" valign="top"><b>EXAMPLES</b></p>

<p style="margin-left:8%;">The following creates a new
d937 1
a937 1
<p style="margin-left:17%;"><b>tar &minus;czf</b>
d940 1
a940 1
<p style="margin-left:8%; margin-top: 1em">To view a
d943 1
a943 1
<p style="margin-left:17%;"><b>tar &minus;tvf</b>
d946 1
a946 1
<p style="margin-left:8%; margin-top: 1em">To extract all
d949 1
a949 1
<p style="margin-left:17%;"><b>tar &minus;x</b></p>
d951 1
a951 1
<p style="margin-left:8%; margin-top: 1em">To examine the
d954 1
a954 1
<p style="margin-left:17%;"><b>tar &minus;tf</b>
d957 1
a957 1
<p style="margin-left:8%; margin-top: 1em">To move file
d960 1
a960 1
<p style="margin-left:17%;"><b>tar &minus;cf</b> <i>-</i>
d964 1
a964 1
<p style="margin-left:8%;">or more traditionally</p>
d966 1
a966 1
<p style="margin-left:17%;">cd srcdir ; <b>tar
d970 1
a970 1
<p style="margin-left:8%; margin-top: 1em">In create mode,
d977 1
a977 1
<p style="margin-left:17%;"><b>tar &minus;c &minus;f</b>
d981 1
a981 1
<p style="margin-left:8%;">will create a new archive
d989 1
a989 1
<p style="margin-left:8%; margin-top: 1em">An input file in
d994 1
a994 1
<p style="margin-left:17%; margin-top: 1em">$ cat
d1001 8
a1008 7
<p style="margin-left:8%; margin-top: 1em">The
<b>&minus;-newer</b> and <b>&minus;-newer-mtime</b> switches
accept a variety of common date and time specifications,
including &lsquo;&lsquo;12 Mar 2005 7:14:29pm&rsquo;&rsquo;,
&lsquo;&lsquo;2005-03-12 19:14&rsquo;&rsquo;,
&lsquo;&lsquo;5 minutes ago&rsquo;&rsquo;, and
&lsquo;&lsquo;19:14 PST May 1&rsquo;&rsquo;.</p>
d1010 2
a1011 2
<p style="margin-left:8%; margin-top: 1em">The
<b>&minus;-options</b> argument can be used to control
d1016 3
a1018 3
<p style="margin-left:17%;"><b>tar &minus;cf</b>
<i>file.tar</i> <b>&minus;-format=mtree
&minus;-options=&rsquo;!all,type,time,uid&rsquo;</b>
d1021 1
a1021 1
<p style="margin-left:8%;">or you can set the compression
d1024 1
a1024 1
<p style="margin-left:17%;"><b>tar &minus;czf</b>
d1026 1
a1026 1
<b>&minus;-options=&rsquo;compression-level=9&rsquo;</b>.</p>
d1028 1
a1028 1
<p style="margin-left:8%;">For more details, see the
d1033 1
d1035 1
a1035 3
<p style="margin-top: 1em" valign="top"><b>COMPATIBILITY</b></p>

<p style="margin-left:8%;">The bundled-arguments format is
d1043 1
a1043 1
<p style="margin-left:17%;"><b>tar tbf 32</b>
d1046 1
a1046 1
<p style="margin-left:8%;">specifies three flags <b>t</b>,
d1053 1
a1053 1
<p style="margin-left:8%; margin-top: 1em">The mode options
d1057 1
a1057 1
<p style="margin-left:8%; margin-top: 1em">For maximum
d1064 1
a1064 1
<p style="margin-left:8%; margin-top: 1em">Additional long
d1068 1
d1070 1
a1070 3
<p style="margin-top: 1em" valign="top"><b>SECURITY</b></p>

<p style="margin-left:8%;">Certain security issues are
d1082 1
a1082 1
<p style="margin-top: 1em" valign="top"><b>&bull;</b></p>
d1084 1
a1084 1
<p style="margin-left:20%;">Archive entries can have
d1089 1
a1089 1
<p style="margin-top: 1em" valign="top"><b>&bull;</b></p>
d1091 1
a1091 1
<p style="margin-left:20%;">Archive entries can have
d1096 1
a1096 1
<p style="margin-top: 1em" valign="top"><b>&bull;</b></p>
d1098 1
a1098 1
<p style="margin-left:20%;">Archive entries can exploit
d1110 1
a1110 1
<p style="margin-left:8%;">To protect yourself, you should
d1114 1
a1114 1
<p style="margin-left:17%;"><b>tar &minus;tf</b>
d1117 1
a1117 1
<p style="margin-left:8%;">before extraction. You should
d1128 1
a1128 1
<p style="margin-top: 1em" valign="top"><b>SEE ALSO</b></p>
d1130 2
a1131 2
<p style="margin-left:8%;">bzip2(1), compress(1), cpio(1),
gzip(1), mt(1), pax(1), shar(1), libarchive(3),
d1134 1
d1136 1
a1136 3
<p style="margin-top: 1em" valign="top"><b>STANDARDS</b></p>

<p style="margin-left:8%;">There is no current POSIX
d1138 1
a1138 1
9945-1:1996 (&lsquo;&lsquo;POSIX.1&rsquo;&rsquo;) but was
d1140 3
a1142 3
(&lsquo;&lsquo;POSIX.1&rsquo;&rsquo;). The options used by
this implementation were developed by surveying a number of
existing tar implementations as well as the old POSIX
d1146 1
a1146 1
<p style="margin-left:8%; margin-top: 1em">The ustar and
d1148 1
a1148 1
1003.1-2001 (&lsquo;&lsquo;POSIX.1&rsquo;&rsquo;) for the
d1151 1
a1151 1
<p style="margin-top: 1em" valign="top"><b>HISTORY</b></p>
d1153 1
a1153 1
<p style="margin-left:8%;">A <b>tar</b> command appeared in
d1162 1
a1162 1
<p style="margin-left:8%; margin-top: 1em">This is a
d1164 2
a1165 1
library.</p>
d1167 1
a1167 1
<p style="margin-top: 1em" valign="top"><b>BUGS</b></p>
d1169 2
a1170 2
<p style="margin-left:8%;">This program follows ISO/IEC
9945-1:1996 (&lsquo;&lsquo;POSIX.1&rsquo;&rsquo;) for the
d1173 1
a1173 1
for the <b>&minus;-one-file-system</b> option.</p>
d1175 1
a1175 1
<p style="margin-left:8%; margin-top: 1em">The
d1179 1
a1179 1
<p style="margin-left:8%; margin-top: 1em">All archive
d1193 1
a1193 1
<p style="margin-left:8%; margin-top: 1em">The compression
d1198 1
a1198 1
<p style="margin-left:17%;"><b>tar &minus;czf</b> <i>-
d1201 1
a1201 1
<p style="margin-left:8%;">and that generated by</p>
d1203 1
a1203 1
<p style="margin-left:17%;"><b>tar &minus;cf</b> <i>-
d1206 1
a1206 1
<p style="margin-left:8%; margin-top: 1em">The default
d1210 1
a1210 1
<p style="margin-left:8%; margin-top: 1em">The <b>r</b> and
d1216 1
a1216 1
<p style="margin-left:8%; margin-top: 1em">To archive a
d1220 1
a1220 1
<p style="margin-left:8%; margin-top: 1em">In create mode,
d1224 1
a1224 1
<p style="margin-left:8%; margin-top: 1em">There needs to
d1228 1
a1228 1
<p style="margin-left:8%; margin-top: 1em">There is not yet
d1232 1
a1232 1
<p style="margin-left:8%; margin-top: 1em">Converting
d1239 2
a1240 7
<p style="margin-left:8%; margin-top: 1em">There are
alternative long options for many of the short options that
are deliberately not documented.</p>


<p style="margin-left:8%; margin-top: 1em">FreeBSD&nbsp;8.0
Oct&nbsp;12, 2009 FreeBSD&nbsp;8.0</p>
@


1.1.1.1
log
@Import libarchive 2.8.0:
- Infrastructure:
  - Allow command line tools as fallback for missing compression
    libraries. If compiled without gzip for example, gunzip will
    be used automatically.
  - Improved support for a number of platforms like high-resolution
    timestamps and Extended Attributes on various Unix systems
  - New convience interface for creating archives based on disk content,
    complement of the archive_write_disk interface.
- Frontends:
  - bsdcpio ready for public consumption
  - hand-written date parser replaces the yacc code
- Filter system:
  - Simplified read filter chains
  - Option support for filters
  - LZMA, XZ, uudecode handled
- Format support:
  - Write support for mtree files based on file system or archive
    content
  - Basic read support for Joliet
  - Write support for zip files
  - Write support for shar archives, both text-only and binary-safe
@
text
@@


1.1.1.2
log
@libarchive-2.8.2:
- Fix NULL deference for short self-extracting zip archives
- Don't dereference symlinks on Linux when reading ACLs
- Better detection of SHA2 support for old OpenSSL versions
- Fix parsing of input files for bsdtar -T
- Do not leak setup_xattr into the global namespace
- Fix build when an older libarchive is already installed
- Use O_BINARY opening files in bsdtar
- Include missing archive_crc32.h
- Correctly include iconv.h required by libxml2
@
text
@d1 1014
a1014 1839
%!PS-Adobe-3.0
%%Creator: groff version 1.19.2
%%CreationDate: Sun Mar 14 02:49:18 2010
%%DocumentNeededResources: font Times-Roman
%%DocumentSuppliedResources: procset grops 1.19 2
%%Pages: 167
%%PageOrder: Ascend
%%DocumentMedia: Default 612 792 0 () ()
%%Orientation: Portrait
%%EndComments
%%BeginDefaults
%%PageMedia: Default
%%EndDefaults
%%BeginProlog
%%BeginResource: procset grops 1.19 2
%!PS-Adobe-3.0 Resource-ProcSet
/setpacking where{
pop
currentpacking
true setpacking
}if
/grops 120 dict dup begin
/SC 32 def
/A/show load def
/B{0 SC 3 -1 roll widthshow}bind def
/C{0 exch ashow}bind def
/D{0 exch 0 SC 5 2 roll awidthshow}bind def
/E{0 rmoveto show}bind def
/F{0 rmoveto 0 SC 3 -1 roll widthshow}bind def
/G{0 rmoveto 0 exch ashow}bind def
/H{0 rmoveto 0 exch 0 SC 5 2 roll awidthshow}bind def
/I{0 exch rmoveto show}bind def
/J{0 exch rmoveto 0 SC 3 -1 roll widthshow}bind def
/K{0 exch rmoveto 0 exch ashow}bind def
/L{0 exch rmoveto 0 exch 0 SC 5 2 roll awidthshow}bind def
/M{rmoveto show}bind def
/N{rmoveto 0 SC 3 -1 roll widthshow}bind def
/O{rmoveto 0 exch ashow}bind def
/P{rmoveto 0 exch 0 SC 5 2 roll awidthshow}bind def
/Q{moveto show}bind def
/R{moveto 0 SC 3 -1 roll widthshow}bind def
/S{moveto 0 exch ashow}bind def
/T{moveto 0 exch 0 SC 5 2 roll awidthshow}bind def
/SF{
findfont exch
[exch dup 0 exch 0 exch neg 0 0]makefont
dup setfont
[exch/setfont cvx]cvx bind def
}bind def
/MF{
findfont
[5 2 roll
0 3 1 roll
neg 0 0]makefont
dup setfont
[exch/setfont cvx]cvx bind def
}bind def
/level0 0 def
/RES 0 def
/PL 0 def
/LS 0 def
/MANUAL{
statusdict begin/manualfeed true store end
}bind def
/PLG{
gsave newpath clippath pathbbox grestore
exch pop add exch pop
}bind def
/BP{
/level0 save def
1 setlinecap
1 setlinejoin
72 RES div dup scale
LS{
90 rotate
}{
0 PL translate
}ifelse
1 -1 scale
}bind def
/EP{
level0 restore
showpage
}def
/DA{
newpath arcn stroke
}bind def
/SN{
transform
.25 sub exch .25 sub exch
round .25 add exch round .25 add exch
itransform
}bind def
/DL{
SN
moveto
SN
lineto stroke
}bind def
/DC{
newpath 0 360 arc closepath
}bind def
/TM matrix def
/DE{
TM currentmatrix pop
translate scale newpath 0 0 .5 0 360 arc closepath
TM setmatrix
}bind def
/RC/rcurveto load def
/RL/rlineto load def
/ST/stroke load def
/MT/moveto load def
/CL/closepath load def
/Fr{
setrgbcolor fill
}bind def
/setcmykcolor where{
pop
/Fk{
setcmykcolor fill
}bind def
}if
/Fg{
setgray fill
}bind def
/FL/fill load def
/LW/setlinewidth load def
/Cr/setrgbcolor load def
/setcmykcolor where{
pop
/Ck/setcmykcolor load def
}if
/Cg/setgray load def
/RE{
findfont
dup maxlength 1 index/FontName known not{1 add}if dict begin
{
1 index/FID ne{def}{pop pop}ifelse
}forall
/Encoding exch def
dup/FontName exch def
currentdict end definefont pop
}bind def
/DEFS 0 def
/EBEGIN{
moveto
DEFS begin
}bind def
/EEND/end load def
/CNT 0 def
/level1 0 def
/PBEGIN{
/level1 save def
translate
div 3 1 roll div exch scale
neg exch neg exch translate
0 setgray
0 setlinecap
1 setlinewidth
0 setlinejoin
10 setmiterlimit
[]0 setdash
/setstrokeadjust where{
pop
false setstrokeadjust
}if
/setoverprint where{
pop
false setoverprint
}if
newpath
/CNT countdictstack def
userdict begin
/showpage{}def
/setpagedevice{}def
}bind def
/PEND{
countdictstack CNT sub{end}repeat
level1 restore
}bind def
end def
/setpacking where{
pop
setpacking
}if
%%EndResource
%%EndProlog
%%BeginSetup
%%BeginFeature: *PageSize Default
<< /PageSize [ 612 792 ] /ImagingBBox null >> setpagedevice
%%EndFeature
%%IncludeResource: font Times-Roman
grops begin/DEFS 1 dict def DEFS begin/u{.001 mul}bind def end/RES 72
def/PL 792 def/LS false def/ENC0[/asciicircum/asciitilde/Scaron/Zcaron
/scaron/zcaron/Ydieresis/trademark/quotesingle/Euro/.notdef/.notdef
/.notdef/.notdef/.notdef/.notdef/.notdef/.notdef/.notdef/.notdef/.notdef
/.notdef/.notdef/.notdef/.notdef/.notdef/.notdef/.notdef/.notdef/.notdef
/.notdef/.notdef/space/exclam/quotedbl/numbersign/dollar/percent
/ampersand/quoteright/parenleft/parenright/asterisk/plus/comma/hyphen
/period/slash/zero/one/two/three/four/five/six/seven/eight/nine/colon
/semicolon/less/equal/greater/question/at/A/B/C/D/E/F/G/H/I/J/K/L/M/N/O
/P/Q/R/S/T/U/V/W/X/Y/Z/bracketleft/backslash/bracketright/circumflex
/underscore/quoteleft/a/b/c/d/e/f/g/h/i/j/k/l/m/n/o/p/q/r/s/t/u/v/w/x/y
/z/braceleft/bar/braceright/tilde/.notdef/quotesinglbase/guillemotleft
/guillemotright/bullet/florin/fraction/perthousand/dagger/daggerdbl
/endash/emdash/ff/fi/fl/ffi/ffl/dotlessi/dotlessj/grave/hungarumlaut
/dotaccent/breve/caron/ring/ogonek/quotedblleft/quotedblright/oe/lslash
/quotedblbase/OE/Lslash/.notdef/exclamdown/cent/sterling/currency/yen
/brokenbar/section/dieresis/copyright/ordfeminine/guilsinglleft
/logicalnot/minus/registered/macron/degree/plusminus/twosuperior
/threesuperior/acute/mu/paragraph/periodcentered/cedilla/onesuperior
/ordmasculine/guilsinglright/onequarter/onehalf/threequarters
/questiondown/Agrave/Aacute/Acircumflex/Atilde/Adieresis/Aring/AE
/Ccedilla/Egrave/Eacute/Ecircumflex/Edieresis/Igrave/Iacute/Icircumflex
/Idieresis/Eth/Ntilde/Ograve/Oacute/Ocircumflex/Otilde/Odieresis
/multiply/Oslash/Ugrave/Uacute/Ucircumflex/Udieresis/Yacute/Thorn
/germandbls/agrave/aacute/acircumflex/atilde/adieresis/aring/ae/ccedilla
/egrave/eacute/ecircumflex/edieresis/igrave/iacute/icircumflex/idieresis
/eth/ntilde/ograve/oacute/ocircumflex/otilde/odieresis/divide/oslash
/ugrave/uacute/ucircumflex/udieresis/yacute/thorn/ydieresis]def
/Times-Roman@@0 ENC0/Times-Roman RE
%%EndSetup
%%Page: 1 1
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(<html>)0 12 Q(<head>)0 24 Q(<title>)36 36 Q
(Oct 12, 2009 BSDT)74.5 48 Q(AR 1)-.93 E(</title>)36 72 Q 0 Cg EP
%%Page: 2 2
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(<style type="te)36 12 Q(xt/css">)-.15 E(<!--)36
24 Q(body { mar)72 36 Q(gin-left:4%; })-.18 E(H1, H2, H3, H4, H5 {)72 48
Q(color: maroon; padding: 4pt; mar)108 60 Q(gin-left: -4%;)-.18 E
(border: solid; border)108 72 Q(-width: thin; width: 100%;)-.2 E 0 Cg EP
%%Page: 3 3
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(background: r)108 12 Q(gb\(204,204,255\))-.18 E
(})72 24 Q(-->)36 36 Q(</style>)36 48 Q(</head>)0 60 Q
(<body bgcolor="#FFFFFF" te)0 72 Q(xt="#000000">)-.15 E 0 Cg EP
%%Page: 4 4
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(<h3 id="N)36 12 Q(AME">)-.35 E -.35(NA)36 24 S
(ME).35 E(</h3>)36 36 Q(<b>tar</b>)0 48 Q 2.5(-m)0 60 S
(anipulate tape archi)-2.5 E -.15(ve)-.25 G(s).15 E(<h3 id="SYNOPSIS">)
36 72 Q 0 Cg EP
%%Page: 5 5
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(SYNOPSIS)36 12 Q(</h3>)36 24 Q(<b>tar</b>)0 36 Q
([<i></i><i>b)0 48 Q(undled-\215ags </i><i>ar)-.2 E
(gs&lt;.blm Pp</i><i> &gt;</i>])-.18 E([<i></i><i>\214le&lt;.blm Pp</i>\
<i> | </i><i></i><i>pattern&lt;.blm Pp</i><i> ...</i><i> &gt;</i><i> &g\
t;</i>])0 60 Q(<b>tar</b>)0 72 Q 0 Cg EP
%%Page: 6 6
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF({<b>\255</b><b>c</b>})0 12 Q
([<i></i><i>options</i>])0 24 Q
([<i></i><i>\214les</i><i> |</i><i></i><i> directories</i>])0 36 Q
(<b>tar</b>)0 48 Q({<b>\255</b><b>r</b><b> |</b><b> \255</b><b>u</b>})0
60 Q(<b>\255</b><b>f</b><i></i><i> archi)0 72 Q -.15(ve)-.25 G
(-\214le</i>).15 E 0 Cg EP
%%Page: 7 7
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF([<i></i><i>options</i>])0 12 Q
([<i></i><i>\214les</i><i> |</i><i></i><i> directories</i>])0 24 Q
(<b>tar</b>)0 36 Q({<b>\255</b><b>t</b><b> |</b><b> \255</b><b>x</b>})0
48 Q([<i></i><i>options</i>])0 60 Q([<i></i><i>patterns</i>])0 72 Q 0 Cg
EP
%%Page: 8 8
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(<h3 id="DESCRIPTION">)36 12 Q(DESCRIPTION)36 24
Q(</h3>)36 36 Q(<b>tar</b>)0 48 Q
(creates and manipulates streaming archi)0 60 Q .3 -.15(ve \214)-.25 H
(les.).15 E(This implementation can e)0 72 Q(xtract from tar)-.15 E 2.5
(,p)-.4 G(ax, cpio, zip, jar)-2.5 E 2.5(,a)-.4 G -.4(r,)-2.5 G 0 Cg EP
%%Page: 9 9
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(and ISO 9660 cdrom images and can create tar)0
12 Q 2.5(,p)-.4 G(ax, cpio, ar)-2.5 E(,)-.4 E(and shar archi)0 24 Q -.15
(ve)-.25 G(s.).15 E(<p>)36 36 Q(The \214rst synopsis form sho)0 48 Q
(ws a)-.25 E -.74(``)0 60 S -.2(bu).74 G(ndled').2 E(')-.74 E(option w)0
72 Q(ord.)-.1 E 0 Cg EP
%%Page: 10 10
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(This usage is pro)0 12 Q
(vided for compatibility with historical implementations.)-.15 E
(See COMP)0 24 Q -1.11(AT)-.92 G(IBILITY belo)1.11 E 2.5(wf)-.25 G
(or details.)-2.5 E(<p>)36 36 Q(The other synopsis forms sho)0 48 Q 2.5
(wt)-.25 G(he preferred usage.)-2.5 E(The \214rst option to)0 60 Q
(<b>tar</b>)0 72 Q 0 Cg EP
%%Page: 11 11
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(is a mode indicator from the follo)0 12 Q
(wing list:)-.25 E(<dl compact>)0 24 Q(<dt><b>\255</b><b>c</b><dd>)0 36
Q(Create a ne)0 48 Q 2.5(wa)-.25 G(rchi)-2.5 E .3 -.15(ve c)-.25 H
(ontaining the speci\214ed items.).15 E(<dt><b>\255</b><b>r</b><dd>)0 60
Q(Lik)0 72 Q(e)-.1 E 0 Cg EP
%%Page: 12 12
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(<b>\255</b><b>c</b>,)0 12 Q -.2(bu)0 24 S 2.5
(tn).2 G .5 -.25(ew e)-2.5 H(ntries are appended to the archi).25 E -.15
(ve)-.25 G(.).15 E(Note that this only w)0 36 Q
(orks on uncompressed archi)-.1 E -.15(ve)-.25 G 2.5(ss).15 G
(tored in re)-2.5 E(gular \214les.)-.15 E(The)0 48 Q
(<b>\255</b><b>f</b>)0 60 Q(option is required.)0 72 Q 0 Cg EP
%%Page: 13 13
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(<dt><b>\255</b><b>t</b><dd>)0 12 Q(List archi)0
24 Q .3 -.15(ve c)-.25 H(ontents to stdout.).15 E
(<dt><b>\255</b><b>u</b><dd>)0 36 Q(Lik)0 48 Q(e)-.1 E
(<b>\255</b><b>r</b>,)0 60 Q -.2(bu)0 72 S 2.5(tn).2 G .5 -.25(ew e)-2.5
H(ntries are added only if the).25 E 2.5(yh)-.15 G -2.25 -.2(av e)-2.5 H
2.5(am)2.7 G(odi\214cation date)-2.5 E 0 Cg EP
%%Page: 14 14
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(ne)0 12 Q
(wer than the corresponding entry in the archi)-.25 E -.15(ve)-.25 G(.)
.15 E(Note that this only w)0 24 Q(orks on uncompressed archi)-.1 E -.15
(ve)-.25 G 2.5(ss).15 G(tored in re)-2.5 E(gular \214les.)-.15 E(The)0
36 Q(<b>\255</b><b>f</b>)0 48 Q(option is required.)0 60 Q
(<dt><b>\255</b><b>x</b><dd>)0 72 Q 0 Cg EP
%%Page: 15 15
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(Extract to disk from the archi)0 12 Q -.15(ve)
-.25 G(.).15 E
(If a \214le with the same name appears more than once in the archi)0 24
Q -.15(ve)-.25 G(,).15 E(each cop)0 36 Q 2.5(yw)-.1 G(ill be e)-2.5 E
(xtracted, with later copies o)-.15 E -.15(ve)-.15 G
(rwriting \(replacing\)).15 E(earlier copies.)0 48 Q(</dl>)0 60 Q(<p>)36
72 Q 0 Cg EP
%%Page: 16 16
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(In)0 12 Q(<b>\255</b><b>c</b>,)0 24 Q
(<b>\255</b><b>r</b>,)0 36 Q(or)0 48 Q(<b>\255</b><b>u</b>)0 60 Q
(mode, each speci\214ed \214le or directory is added to the)0 72 Q 0 Cg
EP
%%Page: 17 17
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(archi)0 12 Q .3 -.15(ve i)-.25 H 2.5(nt).15 G
(he order speci\214ed on the command line.)-2.5 E(By def)0 24 Q
(ault, the contents of each directory are also archi)-.1 E -.15(ve)-.25
G(d.).15 E(<p>)36 36 Q(In e)0 48 Q
(xtract or list mode, the entire command line)-.15 E
(is read and parsed before the archi)0 60 Q .3 -.15(ve i)-.25 H 2.5(so)
.15 G(pened.)-2.5 E
(The pathnames or patterns on the command line indicate)0 72 Q 0 Cg EP
%%Page: 18 18
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(which items in the archi)0 12 Q .3 -.15(ve s)
-.25 H(hould be processed.).15 E -.15(Pa)0 24 S
(tterns are shell-style globbing patterns as).15 E(documented in)0 36 Q
(<a href="../html1/tcsh.html">tcsh\(1\)</a>.)0 48 Q(<h3 id="OPTIONS">)36
60 Q(OPTIONS)36 72 Q 0 Cg EP
%%Page: 19 19
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(</h3>)36 12 Q
(Unless speci\214cally stated otherwise, options are applicable in)0 24
Q(all operating modes.)0 36 Q(<dl compact>)0 48 Q
(<p><dt><b></b><b>@@</b><code></code><code>archi)0 60 Q -.15(ve)-.25 G
(</code><dd>).15 E(\(c and r mode only\))0 72 Q 0 Cg EP
%%Page: 20 20
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(The speci\214ed archi)0 12 Q .3 -.15(ve i)-.25 H
2.5(so).15 G(pened and the entries)-2.5 E
(in it will be appended to the current archi)0 24 Q -.15(ve)-.25 G(.).15
E(As a simple e)0 36 Q(xample,)-.15 E(<br>)0 48 Q
(&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;)0 60 Q(<code></code><b>Fl</b><b>c\
</b><b> \255</b><b>f</b><code></code><code> -</code><code></code><code>\
 ne)0 72 Q
(w\214le</code><b></b><b> @@</b><code></code><code>original.tar</code>)
-.25 E 0 Cg EP
%%Page: 21 21
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(<br>)0 12 Q(writes a ne)0 24 Q 2.5(wa)-.25 G
(rchi)-2.5 E .3 -.15(ve t)-.25 H 2.5(os).15 G
(tandard output containing a \214le)-2.5 E(<code></code><code>ne)0 36 Q
(w\214le</code>)-.25 E(and all of the entries from)0 48 Q
(<code></code><code>original.tar</code>.)0 60 Q(In contrast,)0 72 Q 0 Cg
EP
%%Page: 22 22
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(<br>)0 12 Q
(&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;)0 24 Q(<code></code><b>Fl</b><b>c\
</b><b> \255</b><b>f</b><code></code><code> -</code><code></code><code>\
 ne)0 36 Q(w\214le</code><code></code><code> original.tar</code>)-.25 E
(<br>)0 48 Q(creates a ne)0 60 Q 2.5(wa)-.25 G(rchi)-2.5 E .3 -.15(ve w)
-.25 H(ith only tw).15 E 2.5(oe)-.1 G(ntries.)-2.5 E(Similarly)0 72 Q(,)
-.65 E 0 Cg EP
%%Page: 23 23
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(<br>)0 12 Q
(&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;)0 24 Q(<code></code><b>Fl</b><b>c\
zf</b><code></code><code> -</code><b> \255</b><b>-format</b><b></b><b> \
pax</b><b></b><b> @@</b><code></code><code>-</code>)0 36 Q(<br>)0 48 Q
(reads an archi)0 60 Q .3 -.15(ve f)-.25 H
(rom standard input \(whose format will be determined).15 E
(automatically\) and con)0 72 Q -.15(ve)-.4 G
(rts it into a gzip-compressed).15 E 0 Cg EP
%%Page: 24 24
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(pax-format archi)0 12 Q .3 -.15(ve o)-.25 H 2.5
(ns).15 G(tdout.)-2.5 E(In this w)0 24 Q(ay)-.1 E(,)-.65 E(<b>tar</b>)0
36 Q(can be used to con)0 48 Q -.15(ve)-.4 G(rt archi).15 E -.15(ve)-.25
G 2.5(sf).15 G(rom one format to another)-2.5 E(.)-.55 E
(<p><dt><b>\255</b><b>b</b><i></i><i> blocksize</i><dd>)0 60 Q
(Specify the block size, in 512-byte records, for tape dri)0 72 Q .3
-.15(ve I)-.25 H(/O.).15 E 0 Cg EP
%%Page: 25 25
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(As a rule, this ar)0 12 Q
(gument is only needed when reading from or writing)-.18 E(to tape dri)0
24 Q -.15(ve)-.25 G(s, and usually not e).15 E -.15(ve)-.25 G 2.5(nt).15
G(hen as the def)-2.5 E(ault block size of)-.1 E
(20 records \(10240 bytes\) is v)0 36 Q(ery common.)-.15 E
(<p><dt><b>\255</b><b>C</b><i></i><i> directory</i><dd>)0 48 Q
(In c and r mode, this changes the directory before adding)0 60 Q
(the follo)0 72 Q(wing \214les.)-.25 E 0 Cg EP
%%Page: 26 26
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF
(In x mode, change directories after opening the archi)0 12 Q -.15(ve)
-.25 G -.2(bu)0 24 S 2.5(tb).2 G(efore e)-2.5 E
(xtracting entries from the archi)-.15 E -.15(ve)-.25 G(.).15 E
(<p><dt><b>\255</b><b>-check-links</b><dd>)0 36 Q
(\(c and r modes only\))0 48 Q(Issue a w)0 60 Q
(arning message unless all links to each \214le are archi)-.1 E -.15(ve)
-.25 G(d.).15 E(<p><dt><b>\255</b><b>-chroot</b><dd>)0 72 Q 0 Cg EP
%%Page: 27 27
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(\(x mode only\))0 12 Q
(<b>chroot</b>\(<code></code>\))0 24 Q
(to the current directory after processing an)0 36 Q(y)-.15 E
(<b>\255</b><b>C</b>)0 48 Q(options and before e)0 60 Q(xtracting an)
-.15 E 2.5<798c>-.15 G(les.)-2.5 E(<p><dt><b>\255</b><b>-e)0 72 Q
(xclude</b><i></i><i> pattern</i><dd>)-.15 E 0 Cg EP
%%Page: 28 28
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF
(Do not process \214les or directories that match the)0 12 Q
(speci\214ed pattern.)0 24 Q(Note that e)0 36 Q(xclusions tak)-.15 E 2.5
(ep)-.1 G(recedence o)-2.5 E -.15(ve)-.15 G 2.5(rp).15 G
(atterns or \214lenames)-2.5 E(speci\214ed on the command line.)0 48 Q
(<p><dt><b>\255</b><b>-format</b><i></i><i> format</i><dd>)0 60 Q
(\(c, r)0 72 Q 2.5(,um)-.4 G(ode only\))-2.5 E 0 Cg EP
%%Page: 29 29
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF
(Use the speci\214ed format for the created archi)0 12 Q -.15(ve)-.25 G
(.).15 E(Supported formats include)0 24 Q -.74(``)0 36 S(cpio').74 E(',)
-.74 E -.74(``)0 48 S(pax').74 E(',)-.74 E -.74(``)0 60 S(shar').74 E
(',)-.74 E(and)0 72 Q 0 Cg EP
%%Page: 30 30
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF -.74(``)0 12 S(ustar').74 E('.)-.74 E
(Other formats may also be supported; see)0 24 Q
(<a href="../html5/libarchi)0 36 Q -.15(ve)-.25 G
(-formats.html">libarchi).15 E -.15(ve)-.25 G(-formats\(5\)</a>).15 E
(for more information about currently-supported formats.)0 48 Q
(In r and u modes, when e)0 60 Q(xtending an e)-.15 E(xisting archi)-.15
E -.15(ve)-.25 G 2.5(,t).15 G(he format speci\214ed)-2.5 E
(here must be compatible with the format of the e)0 72 Q(xisting archi)
-.15 E .3 -.15(ve o)-.25 H 2.5(nd).15 G(isk.)-2.5 E 0 Cg EP
%%Page: 31 31
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF
(<p><dt><b>\255</b><b>f</b><i></i><i> \214le</i><dd>)0 12 Q
(Read the archi)0 24 Q .3 -.15(ve f)-.25 H(rom or write the archi).15 E
.3 -.15(ve t)-.25 H 2.5(ot).15 G(he speci\214ed \214le.)-2.5 E
(The \214lename can be)0 36 Q(<code></code><code>-</code>)0 48 Q
(for standard input or standard output.)0 60 Q
(If not speci\214ed, the def)0 72 Q(ault tape de)-.1 E
(vice will be used.)-.25 E 0 Cg EP
%%Page: 32 32
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(\(On)0 12 Q(FreeBSD,)0 24 Q(the def)0 36 Q
(ault tape de)-.1 E(vice is)-.25 E(<code></code><code>/de)0 48 Q
(v/sa0</code>.\))-.25 E(<p><dt><b>\255</b><b>H</b><dd>)0 60 Q
(\(c and r mode only\))0 72 Q 0 Cg EP
%%Page: 33 33
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF
(Symbolic links named on the command line will be follo)0 12 Q(wed; the)
-.25 E(tar)0 24 Q(get of the link will be archi)-.18 E -.15(ve)-.25 G
(d, not the link itself.).15 E(<p><dt><b>\255</b><b>h</b><dd>)0 36 Q
(\(c and r mode only\))0 48 Q(Synon)0 60 Q(ym for)-.15 E
(<b>\255</b><b>L</b>.)0 72 Q 0 Cg EP
%%Page: 34 34
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(<p><dt><b>\255</b><b>I</b><dd>)0 12 Q(Synon)0 24
Q(ym for)-.15 E(<b>\255</b><b>T</b>.)0 36 Q
(<p><dt><b>\255</b><b>-include</b><i></i><i> pattern</i><dd>)0 48 Q(Pro\
cess only \214les or directories that match the speci\214ed pattern.)0
60 Q(Note that e)0 72 Q(xclusions speci\214ed with)-.15 E 0 Cg EP
%%Page: 35 35
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(<b>\255</b><b>-e)0 12 Q(xclude</b>)-.15 E(tak)0
24 Q 2.5(ep)-.1 G(recedence o)-2.5 E -.15(ve)-.15 G 2.5(ri).15 G
(nclusions.)-2.5 E(If no inclusions are e)0 36 Q
(xplicitly speci\214ed, all entries are processed by)-.15 E(def)0 48 Q
(ault.)-.1 E(The)0 60 Q(<b>\255</b><b>-include</b>)0 72 Q 0 Cg EP
%%Page: 36 36
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF
(option is especially useful when \214ltering archi)0 12 Q -.15(ve)-.25
G(s.).15 E -.15(Fo)0 24 S 2.5(re).15 G(xample, the command)-2.65 E(<br>)
0 36 Q(&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;)0 48 Q(<code></code><b>Fl</\
b><b>c</b><b> \255</b><b>f</b><code></code><code> ne)0 60 Q -.65(w.)-.25
G(tar</code><b> \255</b><b>-include='*foo*'</b><b></b><b> @@</b><code></\
code><code>old.tgz</code>).65 E(<br>)0 72 Q 0 Cg EP
%%Page: 37 37
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(creates a ne)0 12 Q 2.5(wa)-.25 G(rchi)-2.5 E
-.15(ve)-.25 G(<code></code><code>ne)0 24 Q -.65(w.)-.25 G(tar</code>)
.65 E(containing only the entries from)0 36 Q
(<code></code><code>old.tgz</code>)0 48 Q(containing the string)0 60 Q
(`foo'.)0 72 Q 0 Cg EP
%%Page: 38 38
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(<p><dt><b>\255</b><b>j</b><dd>)0 12 Q
(\(c mode only\))0 24 Q(Compress the resulting archi)0 36 Q .3 -.15
(ve w)-.25 H(ith).15 E(<a href="../html1/bzip2.html">bzip2\(1\)</a>.)0
48 Q(In e)0 60 Q(xtract or list modes, this option is ignored.)-.15 E
(Note that, unlik)0 72 Q 2.5(eo)-.1 G(ther)-2.5 E 0 Cg EP
%%Page: 39 39
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(<b>tar</b>)0 12 Q
(implementations, this implementation recognizes bzip2 compression)0 24
Q(automatically when reading archi)0 36 Q -.15(ve)-.25 G(s.).15 E
(<p><dt><b>\255</b><b>k</b><dd>)0 48 Q(\(x mode only\))0 60 Q(Do not o)0
72 Q -.15(ve)-.15 G(rwrite e).15 E(xisting \214les.)-.15 E 0 Cg EP
%%Page: 40 40
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(In particular)0 12 Q 2.5(,i)-.4 G 2.5(fa\214)
-2.5 G(le appears more than once in an archi)-2.5 E -.15(ve)-.25 G(,).15
E(later copies will not o)0 24 Q -.15(ve)-.15 G(rwrite earlier copies.)
.15 E(<p><dt><b>\255</b><b>-k)0 36 Q(eep-ne)-.1 E(wer)-.25 E
(-\214les</b><dd>)-.2 E(\(x mode only\))0 48 Q(Do not o)0 60 Q -.15(ve)
-.15 G(rwrite e).15 E(xisting \214les that are ne)-.15 E(wer than the)
-.25 E -.15(ve)0 72 S(rsions appearing in the archi).15 E .3 -.15(ve b)
-.25 H(eing e).15 E(xtracted.)-.15 E 0 Cg EP
%%Page: 41 41
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(<p><dt><b>\255</b><b>L</b><dd>)0 12 Q
(\(c and r mode only\))0 24 Q(All symbolic links will be follo)0 36 Q
(wed.)-.25 E(Normally)0 48 Q 2.5(,s)-.65 G(ymbolic links are archi)-2.5
E -.15(ve)-.25 G 2.5(da).15 G 2.5(ss)-2.5 G(uch.)-2.5 E -.4(Wi)0 60 S
(th this option, the tar).4 E(get of the link will be archi)-.18 E -.15
(ve)-.25 G 2.5(di).15 G(nstead.)-2.5 E(<p><dt><b>\255</b><b>l</b><dd>)0
72 Q 0 Cg EP
%%Page: 42 42
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(This is a synon)0 12 Q(ym for the)-.15 E
(<b>\255</b><b>-check-links</b>)0 24 Q(option.)0 36 Q
(<p><dt><b>\255</b><b>m</b><dd>)0 48 Q(\(x mode only\))0 60 Q(Do not e)0
72 Q(xtract modi\214cation time.)-.15 E 0 Cg EP
%%Page: 43 43
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(By def)0 12 Q
(ault, the modi\214cation time is set to the time stored in the archi)
-.1 E -.15(ve)-.25 G(.).15 E(<p><dt><b>\255</b><b>n</b><dd>)0 24 Q
(\(c, r)0 36 Q 2.5(,um)-.4 G(odes only\))-2.5 E(Do not recursi)0 48 Q
-.15(ve)-.25 G(ly archi).15 E .3 -.15(ve t)-.25 H
(he contents of directories.).15 E(<p><dt><b>\255</b><b>-ne)0 60 Q
(wer</b><i></i><i> date</i><dd>)-.25 E(\(c, r)0 72 Q 2.5(,um)-.4 G
(odes only\))-2.5 E 0 Cg EP
%%Page: 44 44
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(Only include \214les and directories ne)0 12 Q
(wer than the speci\214ed date.)-.25 E(This compares ctime entries.)0 24
Q(<p><dt><b>\255</b><b>-ne)0 36 Q(wer)-.25 E
(-mtime</b><i></i><i> date</i><dd>)-.2 E(\(c, r)0 48 Q 2.5(,um)-.4 G
(odes only\))-2.5 E(Lik)0 60 Q(e)-.1 E(<b>\255</b><b>-ne)0 72 Q
(wer</b>,)-.25 E 0 Cg EP
%%Page: 45 45
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF -.15(ex)0 12 S
(cept it compares mtime entries instead of ctime entries.).15 E
(<p><dt><b>\255</b><b>-ne)0 24 Q(wer)-.25 E
(-than</b><code></code><code> \214le</code><dd>)-.2 E(\(c, r)0 36 Q 2.5
(,um)-.4 G(odes only\))-2.5 E(Only include \214les and directories ne)0
48 Q(wer than the speci\214ed \214le.)-.25 E
(This compares ctime entries.)0 60 Q(<p><dt><b>\255</b><b>-ne)0 72 Q
(wer)-.25 E(-mtime-than</b><code></code><code> \214le</code><dd>)-.2 E 0
Cg EP
%%Page: 46 46
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(\(c, r)0 12 Q 2.5(,um)-.4 G(odes only\))-2.5 E
(Lik)0 24 Q(e)-.1 E(<b>\255</b><b>-ne)0 36 Q(wer)-.25 E(-than</b>,)-.2 E
-.15(ex)0 48 S(cept it compares mtime entries instead of ctime entries.)
.15 E(<p><dt><b>\255</b><b>-nodump</b><dd>)0 60 Q
(\(c and r modes only\))0 72 Q 0 Cg EP
%%Page: 47 47
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF
(Honor the nodump \214le \215ag by skipping this \214le.)0 12 Q
(<p><dt><b>\255</b><b>-null</b><dd>)0 24 Q(\(use with)0 36 Q
(<b>\255</b><b>I</b>,)0 48 Q(<b>\255</b><b>T</b>,)0 60 Q(or)0 72 Q 0 Cg
EP
%%Page: 48 48
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(<b>\255</b><b>X</b>\))0 12 Q
(Filenames or patterns are separated by null characters,)0 24 Q
(not by ne)0 36 Q(wlines.)-.25 E
(This is often used to read \214lenames output by the)0 48 Q
(<b>\255</b><b>print0</b>)0 60 Q(option to)0 72 Q 0 Cg EP
%%Page: 49 49
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(<a href="../html1/\214nd.html">\214nd\(1\)</a>.)
0 12 Q(<p><dt><b>\255</b><b>-numeric-o)0 24 Q(wner</b><dd>)-.25 E
(\(x mode only\))0 36 Q
(Ignore symbolic user and group names when restoring archi)0 48 Q -.15
(ve)-.25 G 2.5(st).15 G 2.5(od)-2.5 G(isk,)-2.5 E
(only numeric uid and gid v)0 60 Q(alues will be obe)-.25 E(yed.)-.15 E
(<p><dt><b>\255</b><b>O</b><dd>)0 72 Q 0 Cg EP
%%Page: 50 50
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(\(x, t modes only\))0 12 Q(In e)0 24 Q(xtract \
\(-x\) mode, \214les will be written to standard out rather than)-.15 E
(being e)0 36 Q(xtracted to disk.)-.15 E(In list \(-t\) mode, the \214l\
e listing will be written to stderr rather than)0 48 Q
(the usual stdout.)0 60 Q(<p><dt><b>\255</b><b>o</b><dd>)0 72 Q 0 Cg EP
%%Page: 51 51
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(\(x mode\))0 12 Q
(Use the user and group of the user running the program rather)0 24 Q
(than those speci\214ed in the archi)0 36 Q -.15(ve)-.25 G(.).15 E
(Note that this has no signi\214cance unless)0 48 Q(<b>\255</b><b>p</b>)
0 60 Q(is speci\214ed, and the program is being run by the root user)0
72 Q(.)-.55 E 0 Cg EP
%%Page: 52 52
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(In this case, the \214le modes and \215ags from)
0 12 Q(the archi)0 24 Q .3 -.15(ve w)-.25 H(ill be restored, b).15 E
(ut A)-.2 E(CLs or o)-.4 E(wner information in)-.25 E(the archi)0 36 Q
.3 -.15(ve w)-.25 H(ill be discarded.).15 E
(<p><dt><b>\255</b><b>o</b><dd>)0 48 Q(\(c, r)0 60 Q 2.5(,um)-.4 G
(ode\))-2.5 E 2.5(As)0 72 S(ynon)-2.5 E(ym for)-.15 E 0 Cg EP
%%Page: 53 53
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(<b>\255</b><b>-format</b><i></i><i> ustar</i>)0
12 Q(<p><dt><b>\255</b><b>-one-\214le-system</b><dd>)0 24 Q(\(c, r)0 36
Q 2.5(,a)-.4 G(nd u modes\))-2.5 E(Do not cross mount points.)0 48 Q
(<p><dt><b>\255</b><b>-options</b><i></i><i> options</i><dd>)0 60 Q
(Select optional beha)0 72 Q(viors for particular modules.)-.2 E 0 Cg EP
%%Page: 54 54
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(The ar)0 12 Q(gument is a te)-.18 E
(xt string containing comma-separated)-.15 E -.1(ke)0 24 S(yw)-.05 E
(ords and v)-.1 E(alues.)-.25 E
(These are passed to the modules that handle particular)0 36 Q
(formats to control ho)0 48 Q 2.5(wt)-.25 G(hose formats will beha)-2.5
E -.15(ve)-.2 G(.).15 E(Each option has one of the follo)0 60 Q
(wing forms:)-.25 E(<dl compact>)0 72 Q 0 Cg EP
%%Page: 55 55
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(<dt><i></i><i>k)0 12 Q -.15(ey)-.1 G(=v).15 E
(alue</i><dd>)-.25 E(The k)0 24 Q .3 -.15(ey w)-.1 H
(ill be set to the speci\214ed v).15 E(alue in e)-.25 E -.15(ve)-.25 G
(ry module that supports it.).15 E(Modules that do not support this k)0
36 Q .3 -.15(ey w)-.1 H(ill ignore it.).15 E(<dt><i></i><i>k)0 48 Q -.15
(ey)-.1 G(</i><dd>).15 E(The k)0 60 Q .3 -.15(ey w)-.1 H
(ill be enabled in e).15 E -.15(ve)-.25 G(ry module that supports it.)
.15 E(This is equi)0 72 Q -.25(va)-.25 G(lent to).25 E 0 Cg EP
%%Page: 56 56
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(<i></i><i>k)0 12 Q -.15(ey)-.1 G
(</i><b></b><b>=1</b>.).15 E(<dt><i></i><i>!k)0 24 Q -.15(ey)-.1 G
(</i><dd>).15 E(The k)0 36 Q .3 -.15(ey w)-.1 H(ill be disabled in e).15
E -.15(ve)-.25 G(ry module that supports it.).15 E
(<dt><i></i><i>module:k)0 48 Q -.15(ey)-.1 G(=v).15 E
(alue</i><i></i>,<i> module:k)-.25 E -.15(ey)-.1 G
(</i><i></i>,<i> module:!k).15 E -.15(ey)-.1 G(</i><dd>).15 E(As abo)0
60 Q -.15(ve)-.15 G 2.5(,b).15 G(ut the corresponding k)-2.7 E .3 -.15
(ey a)-.1 H(nd v).15 E(alue will be pro)-.25 E(vided)-.15 E
(only to modules whose name matches)0 72 Q 0 Cg EP
%%Page: 57 57
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(<i></i><i>module</i>.)0 12 Q(</dl>)0 24 Q
(The currently supported modules and k)0 36 Q -.15(ey)-.1 G 2.5(sa).15 G
(re:)-2.5 E(<dl compact>)0 48 Q(<dt><b></b><b>iso9660:joliet</b><dd>)0
60 Q(Support Joliet e)0 72 Q(xtensions.)-.15 E 0 Cg EP
%%Page: 58 58
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(This is enabled by def)0 12 Q(ault, use)-.1 E
(<b></b><b>!joliet</b>)0 24 Q(or)0 36 Q(<b></b><b>iso9660:!joliet</b>)0
48 Q(to disable.)0 60 Q(<dt><b></b><b>iso9660:rockridge</b><dd>)0 72 Q 0
Cg EP
%%Page: 59 59
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(Support Rock Ridge e)0 12 Q(xtensions.)-.15 E
(This is enabled by def)0 24 Q(ault, use)-.1 E(<b></b><b>!rockridge</b>)
0 36 Q(or)0 48 Q(<b></b><b>iso9660:!rockridge</b>)0 60 Q(to disable.)0
72 Q 0 Cg EP
%%Page: 60 60
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(<dt><b></b><b>gzip:compression-le)0 12 Q -.15
(ve)-.25 G(l</b><dd>).15 E 2.5(Ad)0 24 S(ecimal inte)-2.5 E
(ger from 0 to 9 specifying the gzip compression le)-.15 E -.15(ve)-.25
G(l.).15 E(<dt><b></b><b>xz:compression-le)0 36 Q -.15(ve)-.25 G
(l</b><dd>).15 E 2.5(Ad)0 48 S(ecimal inte)-2.5 E
(ger from 0 to 9 specifying the xz compression le)-.15 E -.15(ve)-.25 G
(l.).15 E(<dt><b></b><b>mtree:</b><i></i><i>k)0 60 Q -.15(ey)-.1 G -.1
(wo).15 G(rd</i><dd>).1 E(The mtree writer module allo)0 72 Q
(ws you to specify which mtree k)-.25 E -.15(ey)-.1 G -.1(wo).15 G(rds)
.1 E 0 Cg EP
%%Page: 61 61
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(will be included in the output.)0 12 Q
(Supported k)0 24 Q -.15(ey)-.1 G -.1(wo).15 G(rds include:).1 E
(<b></b><b>cksum</b><b></b>,<b> de)0 36 Q(vice</b><b></b>,<b> \215ags</\
b><b></b>,<b> gid</b><b></b>,<b> gname</b><b></b>,<b> indent</b>,)-.25 E
(<b></b><b>link</b><b></b>,<b> md5</b><b></b>,<b> mode</b><b></b>,<b> n\
link</b><b></b>,<b> rmd160</b><b></b>,<b> sha1</b><b></b>,<b> sha256</b\
>,)0 48 Q(<b></b><b>sha384</b><b></b>,<b> sha512</b><b></b>,<b> size</b\
><b></b>,<b> time</b><b></b>,<b> uid</b><b></b>,<b> uname</b>.)0 60 Q
(The def)0 72 Q(ault is equi)-.1 E -.25(va)-.25 G(lent to:).25 E 0 Cg EP
%%Page: 62 62
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF -.74(``)0 12 S(de).74 E(vice, \215ags, gid, gna\
me, link, mode, nlink, size, time, type, uid, uname')-.25 E('.)-.74 E
(<dt><b></b><b>mtree:all</b><dd>)0 24 Q(Enables all of the abo)0 36 Q .3
-.15(ve k)-.15 H -.15(ey).05 G -.1(wo).15 G(rds.).1 E -1.1(Yo)0 48 S 2.5
(uc)1.1 G(an also use)-2.5 E(<b></b><b>mtree:!all</b>)0 60 Q
(to disable all k)0 72 Q -.15(ey)-.1 G -.1(wo).15 G(rds.).1 E 0 Cg EP
%%Page: 63 63
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(<dt><b></b><b>mtree:use-set</b><dd>)0 12 Q
(Enable generation of)0 24 Q(<b></b><b>/set</b>)0 36 Q
(lines in the output.)0 48 Q(<dt><b></b><b>mtree:indent</b><dd>)0 60 Q
(Produce human-readable output by indenting options and splitting lines)
0 72 Q 0 Cg EP
%%Page: 64 64
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(to \214t into 80 columns.)0 12 Q
(<dt><b></b><b>zip:compression</b>=<i></i><i>type</i><dd>)0 24 Q(Use)0
36 Q(<i></i><i>type</i>)0 48 Q(as compression method.)0 60 Q
(Supported v)0 72 Q
(alues are store \(uncompressed\) and de\215ate \(gzip algorithm\).)-.25
E 0 Cg EP
%%Page: 65 65
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(</dl>)0 12 Q(If a pro)0 24 Q
(vided option is not supported by an)-.15 E 2.5(ym)-.15 G(odule, that)
-2.5 E(is a f)0 36 Q(atal error)-.1 E(.)-.55 E
(<p><dt><b>\255</b><b>P</b><dd>)0 48 Q(Preserv)0 60 Q 2.5(ep)-.15 G
(athnames.)-2.5 E(By def)0 72 Q
(ault, absolute pathnames \(those that be)-.1 E(gin with a /)-.15 E 0 Cg
EP
%%Page: 66 66
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(character\) ha)0 12 Q .3 -.15(ve t)-.2 H
(he leading slash remo).15 E -.15(ve)-.15 G 2.5(db).15 G
(oth when creating archi)-2.5 E -.15(ve)-.25 G(s).15 E(and e)0 24 Q
(xtracting from them.)-.15 E(Also,)0 36 Q(<b>tar</b>)0 48 Q
(will refuse to e)0 60 Q(xtract archi)-.15 E .3 -.15(ve e)-.25 H
(ntries whose pathnames contain).15 E(<code></code><code>..</code>)0 72
Q 0 Cg EP
%%Page: 67 67
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(or whose tar)0 12 Q(get directory w)-.18 E
(ould be altered by a symlink.)-.1 E(This option suppresses these beha)0
24 Q(viors.)-.2 E(<p><dt><b>\255</b><b>p</b><dd>)0 36 Q(\(x mode only\))
0 48 Q(Preserv)0 60 Q 2.5<658c>-.15 G(le permissions.)-2.5 E
(Attempt to restore the full permissions, including o)0 72 Q(wner)-.25 E
2.5<2c8c>-.4 G(le modes, \214le)-2.5 E 0 Cg EP
%%Page: 68 68
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(\215ags and A)0 12 Q(CLs, if a)-.4 E -.25(va)-.2
G(ilable, for each item e).25 E(xtracted from the archi)-.15 E -.15(ve)
-.25 G(.).15 E(By def)0 24 Q(ault, ne)-.1 E(wly-created \214les are o)
-.25 E(wned by the user running)-.25 E(<b>,</b>)0 36 Q
(the \214le mode is restored for ne)0 48 Q(wly-created re)-.25 E
(gular \214les, and)-.15 E(all other types of entries recei)0 60 Q .3
-.15(ve d)-.25 H(ef).15 E(ault permissions.)-.1 E(If)0 72 Q 0 Cg EP
%%Page: 69 69
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(<b>tar</b>)0 12 Q(is being run by root, the def)
0 24 Q(ault is to restore the o)-.1 E(wner unless the)-.25 E
(<b>\255</b><b>o</b>)0 36 Q(option is also speci\214ed.)0 48 Q
(<p><dt><b>\255</b><b>q</b><b> \255</b>\(<b>-f)0 60 Q
(ast-read</b><dd>\))-.1 E(\(x and t mode only\))0 72 Q 0 Cg EP
%%Page: 70 70
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(Extract or list only the \214rst archi)0 12 Q .3
-.15(ve e)-.25 H(ntry that matches each pattern).15 E
(or \214lename operand.)0 24 Q(Exit as soon as each speci\214ed pattern\
 or \214lename has been matched.)0 36 Q(By def)0 48 Q(ault, the archi)
-.1 E .3 -.15(ve i)-.25 H 2.5(sa).15 G -.1(lwa)-2.5 G(ys read to the v)
.1 E(ery end, since)-.15 E
(there can be multiple entries with the same name and, by con)0 60 Q
-.15(ve)-.4 G(ntion,).15 E(later entries o)0 72 Q -.15(ve)-.15 G
(rwrite earlier entries.).15 E 0 Cg EP
%%Page: 71 71
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(This option is pro)0 12 Q
(vided as a performance optimization.)-.15 E
(<p><dt><b>\255</b><b>S</b><dd>)0 24 Q(\(x mode only\))0 36 Q
(Extract \214les as sparse \214les.)0 48 Q -.15(Fo)0 60 S 2.5(re).15 G
-.15(ve)-2.75 G(ry block on disk, check \214rst if it contains only NUL\
L bytes and seek).15 E -.15(ove)0 72 S 2.5(ri).15 G 2.5(to)-2.5 G
(therwise.)-2.5 E 0 Cg EP
%%Page: 72 72
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(This w)0 12 Q(orks similiar to the con)-.1 E
(v=sparse option of dd.)-.4 E
(<p><dt><b>\255</b><b>-strip-components</b><i></i><i> count</i><dd>)0 24
Q(\(x mode only\))0 36 Q(Remo)0 48 Q .3 -.15(ve t)-.15 H
(he speci\214ed number of leading path elements.).15 E -.15(Pa)0 60 S
(thnames with fe).15 E(wer elements will be silently skipped.)-.25 E
(Note that the pathname is edited after checking inclusion/e)0 72 Q
(xclusion patterns)-.15 E 0 Cg EP
%%Page: 73 73
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF -.2(bu)0 12 S 2.5(tb).2 G
(efore security checks.)-2.5 E
(<p><dt><b>\255</b><b>s</b><i></i><i> pattern</i><dd>)0 24 Q
(Modify \214le or archi)0 36 Q .3 -.15(ve m)-.25 H
(ember names according to).15 E(<code></code><code>pattern</code>.)0 48
Q(The pattern has the format)0 60 Q(<i></i><i>/old/ne)0 72 Q
(w/</i>[gps])-.25 E 0 Cg EP
%%Page: 74 74
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(where)0 12 Q(<i></i><i>old</i>)0 24 Q
(is a basic re)0 36 Q(gular e)-.15 E(xpression,)-.15 E(<i></i><i>ne)0 48
Q(w</i>)-.25 E(is the replacement string of the matched part,)0 60 Q
(and the optional trailing letters modify)0 72 Q 0 Cg EP
%%Page: 75 75
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(ho)0 12 Q 2.5(wt)-.25 G
(he replacement is handled.)-2.5 E(If)0 24 Q(<i></i><i>old</i>)0 36 Q
(is not matched, the pattern is skipped.)0 48 Q -.4(Wi)0 60 S(thin).4 E
(<i></i><i>ne)0 72 Q(w</i>,)-.25 E 0 Cg EP
%%Page: 76 76
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF 2.5(~i)0 12 S 2.5(ss)-2.5 G
(ubstituted with the match, 1 to 9 with the content of)-2.5 E
(the corresponding captured group.)0 24 Q
(The optional trailing g speci\214es that matching should continue)0 36
Q(after the matched part and stopped on the \214rst unmatched pattern.)0
48 Q
(The optional trailing s speci\214es that the pattern applies to the v)0
60 Q(alue)-.25 E(of symbolic links.)0 72 Q 0 Cg EP
%%Page: 77 77
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(The optional trailing p speci\214es that after \
a successful substitution)0 12 Q(the original path name and the ne)0 24
Q 2.5(wp)-.25 G(ath name should be printed to)-2.5 E(standard error)0 36
Q(.)-.55 E(<p><dt><b>\255</b><b>T</b><i></i><i> \214lename</i><dd>)0 48
Q(In x or t mode,)0 60 Q(<b>tar</b>)0 72 Q 0 Cg EP
%%Page: 78 78
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(will read the list of names to be e)0 12 Q
(xtracted from)-.15 E(<code></code><code>\214lename</code>.)0 24 Q
(In c mode,)0 36 Q(<b>tar</b>)0 48 Q(will read names to be archi)0 60 Q
-.15(ve)-.25 G 2.5(df).15 G(rom)-2.5 E
(<code></code><code>\214lename</code>.)0 72 Q 0 Cg EP
%%Page: 79 79
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(The special name)0 12 Q -.74(``)0 24 S(-C').74 E
(')-.74 E
(on a line by itself will cause the current directory to be changed to)0
36 Q(the directory speci\214ed on the follo)0 48 Q(wing line.)-.25 E
(Names are terminated by ne)0 60 Q(wlines unless)-.25 E
(<b>\255</b><b>-null</b>)0 72 Q 0 Cg EP
%%Page: 80 80
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(is speci\214ed.)0 12 Q(Note that)0 24 Q
(<b>\255</b><b>-null</b>)0 36 Q
(also disables the special handling of lines containing)0 48 Q -.74(``)0
60 S(-C').74 E('.)-.74 E(<p><dt><b>\255</b><b>U</b><dd>)0 72 Q 0 Cg EP
%%Page: 81 81
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(\(x mode only\))0 12 Q
(Unlink \214les before creating them.)0 24 Q -.4(Wi)0 36 S
(thout this option,).4 E(<b>tar</b>)0 48 Q -.15(ove)0 60 S(rwrites e).15
E(xisting \214les, which preserv)-.15 E(es e)-.15 E(xisting hardlinks.)
-.15 E -.4(Wi)0 72 S(th this option, e).4 E
(xisting hardlinks will be brok)-.15 E(en, as will an)-.1 E(y)-.15 E 0
Cg EP
%%Page: 82 82
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(symlink that w)0 12 Q(ould af)-.1 E
(fect the location of an e)-.25 E(xtracted \214le.)-.15 E(<p><dt><b>\
\255</b><b>-use-compress-program</b><i></i><i> program</i><dd>)0 24 Q
(Pipe the input \(in x or t mode\) or the output \(in c mode\) through)0
36 Q(<code></code><code>program</code>)0 48 Q(instead of using the b)0
60 Q(uiltin compression support.)-.2 E(<p><dt><b>\255</b><b>v</b><dd>)0
72 Q 0 Cg EP
%%Page: 83 83
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(Produce v)0 12 Q(erbose output.)-.15 E
(In create and e)0 24 Q(xtract modes,)-.15 E(<b>tar</b>)0 36 Q
(will list each \214le name as it is read from or written to)0 48 Q
(the archi)0 60 Q -.15(ve)-.25 G(.).15 E(In list mode,)0 72 Q 0 Cg EP
%%Page: 84 84
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(<b>tar</b>)0 12 Q
(will produce output similar to that of)0 24 Q
(<a href="../html1/ls.html">ls\(1\)</a>.)0 36 Q(Additional)0 48 Q
(<b>\255</b><b>v</b>)0 60 Q(options will pro)0 72 Q
(vide additional detail.)-.15 E 0 Cg EP
%%Page: 85 85
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(<p><dt><b>\255</b><b>-v)0 12 Q(ersion</b><dd>)
-.15 E(Print v)0 24 Q(ersion of)-.15 E(<b>tar</b>)0 36 Q(and)0 48 Q
(<b>libarchi)0 60 Q -.15(ve)-.25 G(</b>,).15 E(and e)0 72 Q(xit.)-.15 E
0 Cg EP
%%Page: 86 86
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(<p><dt><b>\255</b><b>w</b><dd>)0 12 Q
(Ask for con\214rmation for e)0 24 Q -.15(ve)-.25 G(ry action.).15 E
(<p><dt><b>\255</b><b>X</b><i></i><i> \214lename</i><dd>)0 36 Q
(Read a list of e)0 48 Q(xclusion patterns from the speci\214ed \214le.)
-.15 E(See)0 60 Q(<b>\255</b><b>-e)0 72 Q(xclude</b>)-.15 E 0 Cg EP
%%Page: 87 87
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(for more information about the handling of e)0
12 Q(xclusions.)-.15 E(<p><dt><b>\255</b><b>y</b><dd>)0 24 Q
(\(c mode only\))0 36 Q(Compress the resulting archi)0 48 Q .3 -.15
(ve w)-.25 H(ith).15 E(<a href="../html1/bzip2.html">bzip2\(1\)</a>.)0
60 Q(In e)0 72 Q(xtract or list modes, this option is ignored.)-.15 E 0
Cg EP
%%Page: 88 88
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(Note that, unlik)0 12 Q 2.5(eo)-.1 G(ther)-2.5 E
(<b>tar</b>)0 24 Q
(implementations, this implementation recognizes bzip2 compression)0 36
Q(automatically when reading archi)0 48 Q -.15(ve)-.25 G(s.).15 E
(<p><dt><b>\255</b><b>z</b><dd>)0 60 Q(\(c mode only\))0 72 Q 0 Cg EP
%%Page: 89 89
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(Compress the resulting archi)0 12 Q .3 -.15
(ve w)-.25 H(ith).15 E(<a href="../html1/gzip.html">gzip\(1\)</a>.)0 24
Q(In e)0 36 Q(xtract or list modes, this option is ignored.)-.15 E
(Note that, unlik)0 48 Q 2.5(eo)-.1 G(ther)-2.5 E(<b>tar</b>)0 60 Q
(implementations, this implementation recognizes gzip compression)0 72 Q
0 Cg EP
%%Page: 90 90
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(automatically when reading archi)0 12 Q -.15(ve)
-.25 G(s.).15 E(<p><dt><b>\255</b><b>Z</b><dd>)0 24 Q(\(c mode only\))0
36 Q(Compress the resulting archi)0 48 Q .3 -.15(ve w)-.25 H(ith).15 E
(<a href="../html1/compress.html">compress\(1\)</a>.)0 60 Q(In e)0 72 Q
(xtract or list modes, this option is ignored.)-.15 E 0 Cg EP
%%Page: 91 91
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(Note that, unlik)0 12 Q 2.5(eo)-.1 G(ther)-2.5 E
(<b>tar</b>)0 24 Q
(implementations, this implementation recognizes compress compression)0
36 Q(automatically when reading archi)0 48 Q -.15(ve)-.25 G(s.).15 E
(</dl>)0 60 Q(<h3 id="ENVIR)36 72 Q(ONMENT">)-.4 E 0 Cg EP
%%Page: 92 92
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(ENVIR)36 12 Q(ONMENT)-.4 E(</h3>)36 24 Q
(The follo)0 36 Q(wing en)-.25 E(vironment v)-.4 E(ariables af)-.25 E
(fect the e)-.25 E -.15(xe)-.15 G(cution of).15 E(<b>:</b>)0 48 Q
(<dl compact>)0 60 Q(<p><dt><code></code><code>LANG</code><dd>)0 72 Q 0
Cg EP
%%Page: 93 93
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(The locale to use.)0 12 Q(See)0 24 Q
(<a href="../html7/en)0 36 Q(viron.html">en)-.4 E(viron\(7\)</a>)-.4 E
(for more information.)0 48 Q(<p><dt><code></code><code>T)0 60 Q
(APE</code><dd>)-.93 E(The def)0 72 Q(ault tape de)-.1 E(vice.)-.25 E 0
Cg EP
%%Page: 94 94
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(The)0 12 Q(<b>\255</b><b>f</b>)0 24 Q(option o)0
36 Q -.15(ve)-.15 G(rrides this.).15 E
(<p><dt><code></code><code>TZ</code><dd>)0 48 Q
(The timezone to use when displaying dates.)0 60 Q(See)0 72 Q 0 Cg EP
%%Page: 95 95
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(<a href="../html7/en)0 12 Q(viron.html">en)-.4 E
(viron\(7\)</a>)-.4 E(for more information.)0 24 Q(</dl>)0 36 Q
(<h3 id="FILES">)36 48 Q(FILES)36 60 Q(</h3>)36 72 Q 0 Cg EP
%%Page: 96 96
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(<dl compact>)0 12 Q
(<p><dt><code></code><code>/de)0 24 Q(v/sa0</code><dd>)-.25 E(The def)0
36 Q(ault tape de)-.1 E(vice, if not o)-.25 E -.15(ve)-.15 G
(rridden by the).15 E(<code></code><code>T)0 48 Q(APE</code>)-.93 E(en)0
60 Q(vironment v)-.4 E(ariable or the)-.25 E(<b>\255</b><b>f</b>)0 72 Q
0 Cg EP
%%Page: 97 97
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(option.)0 12 Q(</dl>)0 24 Q(<h3 id="EXIT ST)36
36 Q -1.11(AT)-.93 G(US">)1.11 E(EXIT ST)36 48 Q -1.11(AT)-.93 G(US)1.11
E(</h3>)36 60 Q(<h3 id="EXAMPLES">)36 72 Q 0 Cg EP
%%Page: 98 98
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(EXAMPLES)36 12 Q(</h3>)36 24 Q(The follo)0 36 Q
(wing creates a ne)-.25 E 2.5(wa)-.25 G(rchi)-2.5 E -.15(ve)-.25 G
(called)0 48 Q(<i></i><i>\214le.tar)0 60 Q(.gz</i>)-.55 E
(that contains tw)0 72 Q 2.5<6f8c>-.1 G(les)-2.5 E 0 Cg EP
%%Page: 99 99
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(<i></i><i>source.c</i>)0 12 Q(and)0 24 Q
(<i></i><i>source.h</i>:)0 36 Q(<br>)0 48 Q
(&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;)0 60 Q
(<code></code><b>Fl</b><b>czf</b><code></code><code> \214le.tar)0 72 Q(\
.gz</code><code></code><code> source.c</code><code></code><code> source\
.h</code>)-.55 E 0 Cg EP
%%Page: 100 100
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(<br>)0 12 Q(<p>)36 24 Q 1.6 -.8(To v)0 36 T(ie)
.8 E 2.5(wad)-.25 G(etailed table of contents for this)-2.5 E(archi)0 48
Q -.15(ve)-.25 G(:).15 E(<br>)0 60 Q
(&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;)0 72 Q 0 Cg EP
%%Page: 101 101
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF
(<code></code><b>Fl</b><b>tvf</b><code></code><code> \214le.tar)0 12 Q
(.gz</code>)-.55 E(<br>)0 24 Q(<p>)36 36 Q 1.6 -.8(To e)0 48 T
(xtract all entries from the archi).65 E .3 -.15(ve o)-.25 H(n).15 E
(the def)0 60 Q(ault tape dri)-.1 E -.15(ve)-.25 G(:).15 E(<br>)0 72 Q 0
Cg EP
%%Page: 102 102
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;)0 12 Q
(<code></code><b>Fl</b><b>x</b>)0 24 Q(<br>)0 36 Q(<p>)36 48 Q 1.6 -.8
(To e)0 60 T(xamine the contents of an ISO 9660 cdrom image:).65 E(<br>)
0 72 Q 0 Cg EP
%%Page: 103 103
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;)0 12 Q
(<code></code><b>Fl</b><b>tf</b><code></code><code> image.iso</code>)0
24 Q(<br>)0 36 Q(<p>)36 48 Q 1.6 -.8(To m)0 60 T .3 -.15(ove \214).8 H
(le hierarchies, in).15 E -.2(vo)-.4 G -.1(ke).2 G(<b>tar</b>)0 72 Q 0
Cg EP
%%Page: 104 104
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(as)0 12 Q(<br>)0 24 Q
(&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;)0 36 Q(<code></code><b>Fl</b><b>c\
f</b><code></code><code> -</code><b> \255</b><b>C</b><code></code><code\
> srcdir .</code><code> |</code><b>Fl</b><b> xpf</b><code></code><code>\
 -</code><b> \255</b><b>C</b><code></code><code> destdir</code>)0 48 Q
(<br>)0 60 Q(or more traditionally)0 72 Q 0 Cg EP
%%Page: 105 105
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(<br>)0 12 Q
(&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;)0 24 Q(<code></code><code>cd</cod\
e><code> srcdir</code><code> ;</code><b>Fl</b><b> cf</b><code></code><c\
ode> - .</code><code> |</code>\(<code> cd</code><code> destdir</code><c\
ode> ;</code><b>Fl</b><b> xpf</b><code></code><code> -</code>\))0 36 Q
(<br>)0 48 Q(<p>)36 60 Q
(In create mode, the list of \214les and directories to be archi)0 72 Q
-.15(ve)-.25 G(d).15 E 0 Cg EP
%%Page: 106 106
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF
(can also include directory change instructions of the form)0 12 Q
(<b></b><b>-C</b><code></code><code>foo/baz</code>)0 24 Q(and archi)0 36
Q .3 -.15(ve i)-.25 H(nclusions of the form).15 E
(<b></b><b>@@</b><code></code><code>archi)0 48 Q -.15(ve)-.25 G
(-\214le</code>.).15 E -.15(Fo)0 60 S 2.5(re).15 G
(xample, the command line)-2.65 E(<br>)0 72 Q 0 Cg EP
%%Page: 107 107
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;)0 12 Q(<co\
de></code><b>Fl</b><b>c</b><b> \255</b><b>f</b><code></code><code> ne)0
24 Q -.65(w.)-.25 G(tar</code><code></code><code> foo1</code><b></b><b>\
 @@</b><code></code><code>old.tgz</code><b></b><b> -C</b><code></code><c\
ode>/tmp</code><code></code><code> foo2</code>).65 E(<br>)0 36 Q
(will create a ne)0 48 Q 2.5(wa)-.25 G(rchi)-2.5 E -.15(ve)-.25 G
(<code></code><code>ne)0 60 Q -.65(w.)-.25 G(tar</code>.).65 E
(<b>tar</b>)0 72 Q 0 Cg EP
%%Page: 108 108
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(will read the \214le)0 12 Q
(<code></code><code>foo1</code>)0 24 Q
(from the current directory and add it to the output archi)0 36 Q -.15
(ve)-.25 G(.).15 E(It will then read each entry from)0 48 Q
(<code></code><code>old.tgz</code>)0 60 Q
(and add those entries to the output archi)0 72 Q -.15(ve)-.25 G(.).15 E
0 Cg EP
%%Page: 109 109
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(Finally)0 12 Q 2.5(,i)-.65 G 2.5(tw)-2.5 G
(ill switch to the)-2.5 E(<code></code><code>/tmp</code>)0 24 Q
(directory and add)0 36 Q(<code></code><code>foo2</code>)0 48 Q
(to the output archi)0 60 Q -.15(ve)-.25 G(.).15 E(<p>)36 72 Q 0 Cg EP
%%Page: 110 110
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(An input \214le in)0 12 Q
(<a href="../html5/mtree.html">mtree\(5\)</a>)0 24 Q
(format can be used to create an output archi)0 36 Q .3 -.15(ve w)-.25 H
(ith arbitrary o).15 E(wnership,)-.25 E(permissions, or names that dif)0
48 Q(fer from e)-.25 E(xisting data on disk:)-.15 E(<p>)36 60 Q(<br>)0
72 Q 0 Cg EP
%%Page: 111 111
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;)0 12 Q
(<code></code><code>$</code><code> cat</code><code> input.mtree</code>)0
24 Q(<br>)0 36 Q(&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;)0 48 Q
(<code></code><code>#mtree</code>)0 60 Q(<br>)0 72 Q 0 Cg EP
%%Page: 112 112
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;)0 12 Q(<co\
de></code><code>usr/bin</code><code> uid=0</code><code> gid=0</code><co\
de> mode=0755</code><code> type=dir</code>)0 24 Q(<br>)0 36 Q
(&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;)0 48 Q(<code></code><code>usr/bin\
/ls</code><code> uid=0</code><code> gid=0</code><code> mode=0755</code>\
<code> type=\214le</code><code> content=myls</code>)0 60 Q(<br>)0 72 Q 0
Cg EP
%%Page: 113 113
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;)0 12 Q(<co\
de></code><code>$</code><code> tar</code><code> -cvf</code><code> outpu\
t.tar</code><code> @@input.mtree</code>)0 24 Q(<br>)0 36 Q(<p>)36 48 Q
(The)0 60 Q(<b>\255</b><b>-ne)0 72 Q(wer</b>)-.25 E 0 Cg EP
%%Page: 114 114
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(and)0 12 Q(<b>\255</b><b>-ne)0 24 Q(wer)-.25 E
(-mtime</b>)-.2 E(switches accept a v)0 36 Q
(ariety of common date and time speci\214cations, including)-.25 E -.74
(``)0 48 S(12 Mar 2005 7:14:29pm').74 E(',)-.74 E -.74(``)0 60 S
(2005-03-12 19:14').74 E(',)-.74 E -.74(``)0 72 S 2.5(5m).74 G
(inutes ago')-2.5 E(',)-.74 E 0 Cg EP
%%Page: 115 115
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(and)0 12 Q -.74(``)0 24 S(19:14 PST May 1').74 E
('.)-.74 E(<p>)36 36 Q(The)0 48 Q(<b>\255</b><b>-options</b>)0 60 Q(ar)0
72 Q(gument can be used to control v)-.18 E(arious details of archi)-.25
E .3 -.15(ve g)-.25 H(eneration).15 E 0 Cg EP
%%Page: 116 116
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(or reading.)0 12 Q -.15(Fo)0 24 S 2.5(re).15 G
(xample, you can generate mtree output which only contains)-2.65 E
(<b></b><b>type</b><b></b>,<b> time</b>,)0 36 Q(and)0 48 Q
(<b></b><b>uid</b>)0 60 Q -.1(ke)0 72 S(yw)-.05 E(ords:)-.1 E 0 Cg EP
%%Page: 117 117
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(<br>)0 12 Q
(&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;)0 24 Q(<code></code><b>Fl</b><b>c\
f</b><code></code><code> \214le.tar</code><b> \255</b><b>-format=mtree<\
/b><b> \255</b><b>-options='!all,type,time,uid'</b><code></code><code> \
dir</code>)0 36 Q(<br>)0 48 Q(or you can set the compression le)0 60 Q
-.15(ve)-.25 G 2.5(lu).15 G(sed by gzip or xz compression:)-2.5 E(<br>)0
72 Q 0 Cg EP
%%Page: 118 118
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;)0 12 Q(<co\
de></code><b>Fl</b><b>czf</b><code></code><code> \214le.tar</code><b> \
\255</b><b>-options='compression-le)0 24 Q -.15(ve)-.25 G(l=9'</b>.).15
E(<br>)0 36 Q -.15(Fo)0 48 S 2.5(rm).15 G(ore details, see the e)-2.5 E
(xplanation of the)-.15 E(<b>archi)0 60 Q -.15(ve)-.25 G
(_read_set_options</b>\(<code></code>\)).15 E(and)0 72 Q 0 Cg EP
%%Page: 119 119
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(<b>archi)0 12 Q -.15(ve)-.25 G
(_write_set_options</b>\(<code></code>\)).15 E
(API calls that are described in)0 24 Q(<a href="../html3/archi)0 36 Q
-.15(ve)-.25 G(_read.html">archi).15 E -.15(ve)-.25 G(_read\(3\)</a>).15
E(and)0 48 Q(<a href="../html3/archi)0 60 Q -.15(ve)-.25 G
(_write.html">archi).15 E -.15(ve)-.25 G(_write\(3\)</a>.).15 E
(<h3 id="COMP)36 72 Q -1.11(AT)-.92 G(IBILITY">)1.11 E 0 Cg EP
%%Page: 120 120
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(COMP)36 12 Q -1.11(AT)-.92 G(IBILITY)1.11 E
(</h3>)36 24 Q(The b)0 36 Q(undled-ar)-.2 E
(guments format is supported for compatibility)-.18 E
(with historic implementations.)0 48 Q(It consists of an initial w)0 60
Q(ord \(with no leading - character\) in which)-.1 E
(each character indicates an option.)0 72 Q 0 Cg EP
%%Page: 121 121
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(Ar)0 12 Q(guments follo)-.18 E 2.5(wa)-.25 G 2.5
(ss)-2.5 G(eparate w)-2.5 E(ords.)-.1 E(The order of the ar)0 24 Q
(guments must match the order)-.18 E
(of the corresponding characters in the b)0 36 Q(undled command w)-.2 E
(ord.)-.1 E -.15(Fo)0 48 S 2.5(re).15 G(xample,)-2.65 E(<br>)0 60 Q
(&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;)0 72 Q 0 Cg EP
%%Page: 122 122
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(<code></code><b>Cm</b><b>tbf</b><b> 32</b><code\
></code><code> \214le.tar</code>)0 12 Q(<br>)0 24 Q
(speci\214es three \215ags)0 36 Q(<b></b><b>t</b>,)0 48 Q
(<b></b><b>b</b>,)0 60 Q(and)0 72 Q 0 Cg EP
%%Page: 123 123
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(<b></b><b>f</b>.)0 12 Q(The)0 24 Q
(<b></b><b>b</b>)0 36 Q(and)0 48 Q(<b></b><b>f</b>)0 60 Q
(\215ags both require ar)0 72 Q(guments,)-.18 E 0 Cg EP
%%Page: 124 124
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(so there must be tw)0 12 Q 2.5(oa)-.1 G
(dditional items)-2.5 E(on the command line.)0 24 Q(The)0 36 Q
(<i></i><i>32</i>)0 48 Q(is the ar)0 60 Q(gument to the)-.18 E
(<b></b><b>b</b>)0 72 Q 0 Cg EP
%%Page: 125 125
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(\215ag, and)0 12 Q(<i></i><i>\214le.tar</i>)0 24
Q(is the ar)0 36 Q(gument to the)-.18 E(<b></b><b>f</b>)0 48 Q(\215ag.)0
60 Q(<p>)36 72 Q 0 Cg EP
%%Page: 126 126
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(The mode options c, r)0 12 Q 2.5(,t)-.4 G 2.5
(,u)-2.5 G 2.5(,a)-2.5 G(nd x and the options)-2.5 E(b, f, l, m, o, v)0
24 Q 2.5(,a)-.65 G(nd w comply with SUSv2.)-2.5 E(<p>)36 36 Q -.15(Fo)0
48 S 2.5(rm).15 G(aximum portability)-2.5 E 2.5(,s)-.65 G
(cripts that in)-2.5 E -.2(vo)-.4 G -.1(ke).2 G(<b>tar</b>)0 60 Q
(should use the b)0 72 Q(undled-ar)-.2 E(gument format abo)-.18 E -.15
(ve)-.15 G 2.5(,s).15 G(hould limit)-2.5 E 0 Cg EP
%%Page: 127 127
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(themselv)0 12 Q(es to the)-.15 E
(<b></b><b>c</b>,)0 24 Q(<b></b><b>t</b>,)0 36 Q(and)0 48 Q
(<b></b><b>x</b>)0 60 Q(modes, and the)0 72 Q 0 Cg EP
%%Page: 128 128
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(<b></b><b>b</b>,)0 12 Q(<b></b><b>f</b>,)0 24 Q
(<b></b><b>m</b>,)0 36 Q(<b></b><b>v</b>,)0 48 Q(and)0 60 Q
(<b></b><b>w</b>)0 72 Q 0 Cg EP
%%Page: 129 129
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(options.)0 12 Q(<p>)36 24 Q
(Additional long options are pro)0 36 Q(vided to impro)-.15 E .3 -.15
(ve c)-.15 H(ompatibility with other).15 E(tar implementations.)0 48 Q
(<h3 id="SECURITY">)36 60 Q(SECURITY)36 72 Q 0 Cg EP
%%Page: 130 130
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(</h3>)36 12 Q
(Certain security issues are common to man)0 24 Q 2.5(ya)-.15 G(rchi)
-2.5 E(ving programs, including)-.25 E(<b>.</b>)0 36 Q(In particular)0
48 Q 2.5(,c)-.4 G(arefully-crafted archi)-2.5 E -.15(ve)-.25 G 2.5(sc)
.15 G(an request that)-2.5 E(<b>tar</b>)0 60 Q -.15(ex)0 72 S
(tract \214les to locations outside of the tar).15 E(get directory)-.18
E(.)-.65 E 0 Cg EP
%%Page: 131 131
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF
(This can potentially be used to cause unwitting users to o)0 12 Q -.15
(ve)-.15 G(rwrite).15 E(\214les the)0 24 Q 2.5(yd)-.15 G
(id not intend to o)-2.5 E -.15(ve)-.15 G(rwrite.).15 E(If the archi)0
36 Q .3 -.15(ve i)-.25 H 2.5(sb).15 G(eing e)-2.5 E
(xtracted by the superuser)-.15 E 2.5(,a)-.4 G .3 -.15(ny \214)-2.5 H
(le).15 E(on the system can potentially be o)0 48 Q -.15(ve)-.15 G
(rwritten.).15 E(There are three w)0 60 Q(ays this can happen.)-.1 E
(Although)0 72 Q 0 Cg EP
%%Page: 132 132
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(<b>tar</b>)0 12 Q(has mechanisms to protect ag)0
24 Q(ainst each one,)-.05 E(sa)0 36 Q(vvy users should be a)-.2 E -.1
(wa)-.15 G(re of the implications:).1 E(<ul>)0 48 Q(<p><li>)0 60 Q
(Archi)0 72 Q .3 -.15(ve e)-.25 H(ntries can ha).15 E .3 -.15(ve a)-.2 H
(bsolute pathnames.).15 E 0 Cg EP
%%Page: 133 133
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(By def)0 12 Q(ault,)-.1 E(<b>tar</b>)0 24 Q
(remo)0 36 Q -.15(ve)-.15 G 2.5(st).15 G(he leading)-2.5 E
(<code></code><code>/</code>)0 48 Q
(character from \214lenames before restoring them to guard ag)0 60 Q
(ainst this problem.)-.05 E(<p><li>)0 72 Q 0 Cg EP
%%Page: 134 134
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(Archi)0 12 Q .3 -.15(ve e)-.25 H(ntries can ha)
.15 E .3 -.15(ve p)-.2 H(athnames that include).15 E
(<code></code><code>..</code>)0 24 Q(components.)0 36 Q(By def)0 48 Q
(ault,)-.1 E(<b>tar</b>)0 60 Q(will not e)0 72 Q
(xtract \214les containing)-.15 E 0 Cg EP
%%Page: 135 135
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(<code></code><code>..</code>)0 12 Q
(components in their pathname.)0 24 Q(<p><li>)0 36 Q(Archi)0 48 Q .3
-.15(ve e)-.25 H(ntries can e).15 E(xploit symbolic links to restore)
-.15 E(\214les to other directories.)0 60 Q(An archi)0 72 Q .3 -.15
(ve c)-.25 H(an restore a symbolic link to another directory).15 E(,)
-.65 E 0 Cg EP
%%Page: 136 136
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF
(then use that link to restore a \214le into that directory)0 12 Q(.)
-.65 E 1.6 -.8(To g)0 24 T(uard ag).8 E(ainst this,)-.05 E(<b>tar</b>)0
36 Q(checks each e)0 48 Q(xtracted path for symlinks.)-.15 E
(If the \214nal path element is a symlink, it will be remo)0 60 Q -.15
(ve)-.15 G(d).15 E(and replaced with the archi)0 72 Q .3 -.15(ve e)-.25
H(ntry).15 E(.)-.65 E 0 Cg EP
%%Page: 137 137
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(If)0 12 Q(<b>\255</b><b>U</b>)0 24 Q
(is speci\214ed, an)0 36 Q 2.5(yi)-.15 G
(ntermediate symlink will also be unconditionally remo)-2.5 E -.15(ve)
-.15 G(d.).15 E(If neither)0 48 Q(<b>\255</b><b>U</b>)0 60 Q(nor)0 72 Q
0 Cg EP
%%Page: 138 138
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(<b>\255</b><b>P</b>)0 12 Q(is speci\214ed,)0 24
Q(<b>tar</b>)0 36 Q(will refuse to e)0 48 Q(xtract the entry)-.15 E(.)
-.65 E(</ul>)0 60 Q 1.6 -.8(To p)0 72 T
(rotect yourself, you should be w).8 E(ary of an)-.1 E 2.5(ya)-.15 G
(rchi)-2.5 E -.15(ve)-.25 G 2.5(st).15 G(hat)-2.5 E 0 Cg EP
%%Page: 139 139
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(come from untrusted sources.)0 12 Q -1.1(Yo)0 24
S 2.5(us)1.1 G(hould e)-2.5 E(xamine the contents of an archi)-.15 E .3
-.15(ve w)-.25 H(ith).15 E(<br>)0 36 Q
(&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;)0 48 Q
(<code></code><b>Fl</b><b>tf</b><code></code><code> \214lename</code>)0
60 Q(<br>)0 72 Q 0 Cg EP
%%Page: 140 140
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(before e)0 12 Q(xtraction.)-.15 E -1.1(Yo)0 24 S
2.5(us)1.1 G(hould use the)-2.5 E(<b>\255</b><b>k</b>)0 36 Q
(option to ensure that)0 48 Q(<b>tar</b>)0 60 Q(will not o)0 72 Q -.15
(ve)-.15 G(rwrite an).15 E 2.5(ye)-.15 G(xisting \214les or the)-2.65 E
0 Cg EP
%%Page: 141 141
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(<b>\255</b><b>U</b>)0 12 Q(option to remo)0 24 Q
.3 -.15(ve a)-.15 H .3 -.15(ny p).15 H(re-e).15 E(xisting \214les.)-.15
E -1.1(Yo)0 36 S 2.5(us)1.1 G(hould generally not e)-2.5 E(xtract archi)
-.15 E -.15(ve)-.25 G 2.5(sw).15 G(hile running with super)-2.5 E(-user)
-.2 E(pri)0 48 Q(vile)-.25 E(ges.)-.15 E(Note that the)0 60 Q
(<b>\255</b><b>P</b>)0 72 Q 0 Cg EP
%%Page: 142 142
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(option to)0 12 Q(<b>tar</b>)0 24 Q
(disables the security checks abo)0 36 Q .3 -.15(ve a)-.15 H(nd allo).15
E(ws you to e)-.25 E(xtract)-.15 E(an archi)0 48 Q .3 -.15(ve w)-.25 H
(hile preserving an).15 E 2.5(ya)-.15 G(bsolute pathnames,)-2.5 E
(<code></code><code>..</code>)0 60 Q
(components, or symlinks to other directories.)0 72 Q 0 Cg EP
%%Page: 143 143
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(<h3 id="SEE ALSO">)36 12 Q(SEE ALSO)36 24 Q
(</h3>)36 36 Q(<a href="../html1/bzip2.html">bzip2\(1\)</a>,)0 48 Q
(<a href="../html1/compress.html">compress\(1\)</a>,)0 60 Q
(<a href="../html1/cpio.html">cpio\(1\)</a>,)0 72 Q 0 Cg EP
%%Page: 144 144
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(<a href="../html1/gzip.html">gzip\(1\)</a>,)0 12
Q(<a href="../html1/mt.html">mt\(1\)</a>,)0 24 Q
(<a href="../html1/pax.html">pax\(1\)</a>,)0 36 Q
(<a href="../html1/shar)0 48 Q(.html">shar\(1\)</a>,)-.55 E
(<a href="../html3/libarchi)0 60 Q -.15(ve)-.25 G(.html">libarchi).15 E
-.15(ve)-.25 G(\(3\)</a>,).15 E(<a href="../html5/libarchi)0 72 Q -.15
(ve)-.25 G(-formats.html">libarchi).15 E -.15(ve)-.25 G
(-formats\(5\)</a>,).15 E 0 Cg EP
%%Page: 145 145
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(<a href="../html5/tar)0 12 Q
(.html">tar\(5\)</a>)-.55 E(<h3 id="ST)36 24 Q(AND)-.93 E(ARDS">)-.4 E
(ST)36 36 Q(AND)-.93 E(ARDS)-.4 E(</h3>)36 48 Q
(There is no current POSIX standard for the tar command; it appeared)0
60 Q(in)0 72 Q 0 Cg EP
%%Page: 146 146
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(ISO/IEC 9945-1:1996 \(`)2.5 12 Q
(`<font size="-1">POSIX</font>.1')-.74 E('\))-.74 E -.2(bu)0 24 S 2.5
(tw).2 G(as dropped from)-2.6 E(IEEE Std 1003.1-2001 \(`)2.5 36 Q
(`<font size="-1">POSIX</font>.1')-.74 E('\) .)-.74 E
(The options used by this implementation were de)0 48 Q -.15(ve)-.25 G
(loped by surv).15 E -.15(ey)-.15 G(ing a).15 E(number of e)0 60 Q
(xisting tar implementations as well as the old POSIX speci\214cation)
-.15 E(for tar and the current POSIX speci\214cation for pax.)0 72 Q 0
Cg EP
%%Page: 147 147
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(<p>)36 12 Q
(The ustar and pax interchange \214le formats are de\214ned by)0 24 Q
(IEEE Std 1003.1-2001 \(`)2.5 36 Q(`<font size="-1">POSIX</font>.1')-.74
E('\))-.74 E(for the pax command.)0 48 Q(<h3 id="HIST)36 60 Q(OR)-.18 E
(Y">)-.65 E(HIST)36 72 Q(OR)-.18 E(Y)-.65 E 0 Cg EP
%%Page: 148 148
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(</h3>)36 12 Q(A)0 24 Q(<b>tar</b>)0 36 Q
(command appeared in Se)0 48 Q -.15(ve)-.25 G(nth Edition Unix, which w)
.15 E(as released in January)-.1 E 2.5(,1)-.65 G(979.)-2.5 E(There ha)0
60 Q .3 -.15(ve b)-.2 H(een numerous other implementations,).15 E(man)0
72 Q 2.5(yo)-.15 G 2.5(fw)-2.5 G(hich e)-2.5 E
(xtended the \214le format.)-.15 E 0 Cg EP
%%Page: 149 149
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(John Gilmore')0 12 Q(s)-.55 E(<b>pdtar</b>)0 24
Q(public-domain implementation \(circa No)0 36 Q -.15(ve)-.15 G(mber).15
E 2.5(,1)-.4 G(987\))-2.5 E -.1(wa)0 48 S 2.5(sq).1 G
(uite in\215uential, and formed the basis of GNU tar)-2.5 E(.)-.55 E
(GNU tar w)0 60 Q(as included as the standard system tar)-.1 E(in)0 72 Q
0 Cg EP
%%Page: 150 150
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(FreeBSD)0 12 Q(be)0 24 Q(ginning with)-.15 E
(FreeBSD1.0.)0 36 Q(<p>)36 48 Q
(This is a complete re-implementation based on the)0 60 Q
(<a href="../html3/libarchi)0 72 Q -.15(ve)-.25 G(.html">libarchi).15 E
-.15(ve)-.25 G(\(3\)</a>).15 E 0 Cg EP
%%Page: 151 151
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(library)0 12 Q(.)-.65 E(<h3 id="B)36 24 Q(UGS">)
-.1 E -.1(BU)36 36 S(GS).1 E(</h3>)36 48 Q(This program follo)0 60 Q(ws)
-.25 E(ISO/IEC 9945-1:1996 \(`)2.5 72 Q
(`<font size="-1">POSIX</font>.1')-.74 E('\))-.74 E 0 Cg EP
%%Page: 152 152
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(for the de\214nition of the)0 12 Q
(<b>\255</b><b>l</b>)0 24 Q(option.)0 36 Q(Note that GNU tar prior to v)
0 48 Q(ersion 1.15 treated)-.15 E(<b>\255</b><b>l</b>)0 60 Q(as a synon)
0 72 Q(ym for the)-.15 E 0 Cg EP
%%Page: 153 153
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(<b>\255</b><b>-one-\214le-system</b>)0 12 Q
(option.)0 24 Q(<p>)36 36 Q(The)0 48 Q
(<b>\255</b><b>C</b><code></code><code> dir</code>)0 60 Q
(option may dif)0 72 Q(fer from historic implementations.)-.25 E 0 Cg EP
%%Page: 154 154
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(<p>)36 12 Q(All archi)0 24 Q .3 -.15(ve o)-.25 H
(utput is written in correctly-sized blocks, e).15 E -.15(ve)-.25 G(n)
.15 E(if the output is being compressed.)0 36 Q
(Whether or not the last output block is padded to a full)0 48 Q
(block size v)0 60 Q(aries depending on the format and the)-.25 E
(output de)0 72 Q(vice.)-.25 E 0 Cg EP
%%Page: 155 155
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF -.15(Fo)0 12 S 2.5(rt).15 G
(ar and cpio formats, the last block of output is padded)-2.5 E
(to a full block size if the output is being)0 24 Q
(written to standard output or to a character or block de)0 36 Q
(vice such as)-.25 E 2.5(at)0 48 S(ape dri)-2.5 E -.15(ve)-.25 G(.).15 E
(If the output is being written to a re)0 60 Q
(gular \214le, the last block)-.15 E(will not be padded.)0 72 Q 0 Cg EP
%%Page: 156 156
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(Man)0 12 Q 2.5(yc)-.15 G(ompressors, including)
-2.5 E(<a href="../html1/gzip.html">gzip\(1\)</a>)0 24 Q(and)0 36 Q
(<a href="../html1/bzip2.html">bzip2\(1\)</a>,)0 48 Q
(complain about the null padding when decompressing an archi)0 60 Q .3
-.15(ve c)-.25 H(reated by).15 E(<b>,</b>)0 72 Q 0 Cg EP
%%Page: 157 157
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(although the)0 12 Q 2.5(ys)-.15 G(till e)-2.5 E
(xtract it correctly)-.15 E(.)-.65 E(<p>)36 24 Q
(The compression and decompression is implemented internally)0 36 Q 2.5
(,s)-.65 G(o)-2.5 E(there may be insigni\214cant dif)0 48 Q
(ferences between the compressed output)-.25 E(generated by)0 60 Q(<br>)
0 72 Q 0 Cg EP
%%Page: 158 158
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;)0 12 Q(<co\
de></code><b>Fl</b><b>czf</b><code></code><code> -</code><code> \214le<\
/code>)0 24 Q(<br>)0 36 Q(and that generated by)0 48 Q(<br>)0 60 Q
(&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;)0 72 Q 0 Cg EP
%%Page: 159 159
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(<code></code><b>Fl</b><b>cf</b><code></code><co\
de> -</code><code> \214le</code><code> |</code><b>gzip</b>)0 12 Q(<br>)0
24 Q(<p>)36 36 Q(The def)0 48 Q(ault should be to read and write archi)
-.1 E -.15(ve)-.25 G 2.5(st).15 G 2.5(ot)-2.5 G(he standard I/O paths,)
-2.5 E -.2(bu)0 60 S 2.5(tt).2 G
(radition \(and POSIX\) dictates otherwise.)-2.5 E(<p>)36 72 Q 0 Cg EP
%%Page: 160 160
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(The)0 12 Q(<b></b><b>r</b>)0 24 Q(and)0 36 Q
(<b></b><b>u</b>)0 48 Q(modes require that the archi)0 60 Q .3 -.15
(ve b)-.25 H 2.5(eu).15 G(ncompressed)-2.5 E(and located in a re)0 72 Q
(gular \214le on disk.)-.15 E 0 Cg EP
%%Page: 161 161
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(Other archi)0 12 Q -.15(ve)-.25 G 2.5(sc).15 G
(an be modi\214ed using)-2.5 E(<b></b><b>c</b>)0 24 Q(mode with the)0 36
Q(<code></code><code>@@archi)0 48 Q -.15(ve)-.25 G(-\214le</code>).15 E
-.15(ex)0 60 S(tension.).15 E(<p>)36 72 Q 0 Cg EP
%%Page: 162 162
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF 1.6 -.8(To a)0 12 T(rchi).8 E .3 -.15(ve a \214)
-.25 H(le called).15 E(<code></code><code>@@foo</code>)0 24 Q(or)0 36 Q
(<code></code><code>-foo</code>)0 48 Q(you must specify it as)0 60 Q
(<code></code><code>./@@foo</code>)0 72 Q 0 Cg EP
%%Page: 163 163
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(or)0 12 Q(<code></code><code>./-foo</code>,)0 24
Q(respecti)0 36 Q -.15(ve)-.25 G(ly).15 E(.)-.65 E(<p>)36 48 Q
(In create mode, a leading)0 60 Q(<code></code><code>./</code>)0 72 Q 0
Cg EP
%%Page: 164 164
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(is al)0 12 Q -.1(wa)-.1 G(ys remo).1 E -.15(ve)
-.15 G(d.).15 E 2.5(Al)0 24 S(eading)-2.5 E(<code></code><code>/</code>)
0 36 Q(is stripped unless the)0 48 Q(<b>\255</b><b>P</b>)0 60 Q
(option is speci\214ed.)0 72 Q 0 Cg EP
%%Page: 165 165
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(<p>)36 12 Q
(There needs to be better support for \214le selection on both create)0
24 Q(and e)0 36 Q(xtract.)-.15 E(<p>)36 48 Q(There is not yet an)0 60 Q
2.5(ys)-.15 G(upport for multi-v)-2.5 E(olume archi)-.2 E -.15(ve)-.25 G
2.5(so).15 G 2.5(rf)-2.5 G(or archi)-2.5 E(ving)-.25 E(sparse \214les.)0
72 Q 0 Cg EP
%%Page: 166 166
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(<p>)36 12 Q(Con)0 24 Q -.15(ve)-.4 G
(rting between dissimilar archi).15 E .3 -.15(ve f)-.25 H
(ormats \(such as tar and cpio\) using the).15 E
(<b></b><b>@@</b><code></code><code>-</code>)0 36 Q(con)0 48 Q -.15(ve)
-.4 G(ntion can cause hard link information to be lost.).15 E
(\(This is a consequence of the incompatible w)0 60 Q(ays that dif)-.1 E
(ferent archi)-.25 E -.15(ve)-.25 G
(formats store hardlink information.\))0 72 Q 0 Cg EP
%%Page: 167 167
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(<p>)36 12 Q(There are alternati)0 24 Q .3 -.15
(ve l)-.25 H(ong options for man).15 E 2.5(yo)-.15 G 2.5(ft)-2.5 G
(he short options that)-2.5 E(are deliberately not documented.)0 36 Q
(</body>)0 48 Q(</html>)0 60 Q 0 Cg EP
%%Trailer
end
%%EOF
@


1.1.1.3
log
@libarchive-2.8.3: Build fix for Linux
@
text
@d1 1839
a1839 1014
<!-- Creator     : groff version 1.19.2 -->
<!-- CreationDate: Sun Mar 14 19:50:38 2010 -->
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta name="generator" content="groff -Thtml, see www.gnu.org">
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<meta name="Content-Style" content="text/css">
<style type="text/css">
       p     { margin-top: 0; margin-bottom: 0; }
       pre   { margin-top: 0; margin-bottom: 0; }
       table { margin-top: 0; margin-bottom: 0; }
</style>
<title></title>
</head>
<body>

<hr>


<p valign="top">BSDTAR(1) FreeBSD General Commands Manual
BSDTAR(1)</p>

<p style="margin-top: 1em" valign="top"><b>NAME</b></p>

<p style="margin-left:8%;"><b>tar</b> &mdash; manipulate
tape archives</p>


<p style="margin-top: 1em" valign="top"><b>SYNOPSIS</b></p>

<p style="margin-left:14%;"><b>tar</b>
[<i>bundled-flags&nbsp;</i>&lang;</p>

<p valign="top">args &rang;] [&lang; <i><br>
file</i> &rang;&nbsp;|&nbsp;&lang; <i><br>
pattern</i> &rang;&nbsp;...]</p>

<p style="margin-left:14%;"><b>tar</b> {<b>&minus;c</b>}
[<i>options</i>]
[<i>files&nbsp;</i>|&nbsp;<i>directories</i>] <b><br>
tar</b> {<b>&minus;r&nbsp;</b>|&nbsp;<b>&minus;u</b>}
<b>&minus;f</b> <i>archive-file</i> [<i>options</i>]
[<i>files&nbsp;</i>|&nbsp;<i>directories</i>] <b><br>
tar</b> {<b>&minus;t&nbsp;</b>|&nbsp;<b>&minus;x</b>}
[<i>options</i>] [<i>patterns</i>]</p>


<p style="margin-top: 1em" valign="top"><b>DESCRIPTION</b></p>

<p style="margin-left:8%;"><b>tar</b> creates and
manipulates streaming archive files. This implementation can
extract from tar, pax, cpio, zip, jar, ar, and ISO 9660
cdrom images and can create tar, pax, cpio, ar, and shar
archives.</p>

<p style="margin-left:8%; margin-top: 1em">The first
synopsis form shows a &lsquo;&lsquo;bundled&rsquo;&rsquo;
option word. This usage is provided for compatibility with
historical implementations. See COMPATIBILITY below for
details.</p>

<p style="margin-left:8%; margin-top: 1em">The other
synopsis forms show the preferred usage. The first option to
<b>tar</b> is a mode indicator from the following list:</p>

<p valign="top"><b>&minus;c</b></p>

<p style="margin-left:20%; margin-top: 1em">Create a new
archive containing the specified items.</p>

<p valign="top"><b>&minus;r</b></p>

<p style="margin-left:20%; margin-top: 1em">Like
<b>&minus;c</b>, but new entries are appended to the
archive. Note that this only works on uncompressed archives
stored in regular files. The <b>&minus;f</b> option is
required.</p>

<p valign="top"><b>&minus;t</b></p>

<p style="margin-left:20%; margin-top: 1em">List archive
contents to stdout.</p>

<p valign="top"><b>&minus;u</b></p>

<p style="margin-left:20%; margin-top: 1em">Like
<b>&minus;r</b>, but new entries are added only if they have
a modification date newer than the corresponding entry in
the archive. Note that this only works on uncompressed
archives stored in regular files. The <b>&minus;f</b> option
is required.</p>

<p valign="top"><b>&minus;x</b></p>

<p style="margin-left:20%; margin-top: 1em">Extract to disk
from the archive. If a file with the same name appears more
than once in the archive, each copy will be extracted, with
later copies overwriting (replacing) earlier copies.</p>

<p style="margin-left:8%; margin-top: 1em">In
<b>&minus;c</b>, <b>&minus;r</b>, or <b>&minus;u</b> mode,
each specified file or directory is added to the archive in
the order specified on the command line. By default, the
contents of each directory are also archived.</p>

<p style="margin-left:8%; margin-top: 1em">In extract or
list mode, the entire command line is read and parsed before
the archive is opened. The pathnames or patterns on the
command line indicate which items in the archive should be
processed. Patterns are shell-style globbing patterns as
documented in tcsh(1).</p>

<p style="margin-top: 1em" valign="top"><b>OPTIONS</b></p>

<p style="margin-left:8%;">Unless specifically stated
otherwise, options are applicable in all operating
modes.</p>


<p style="margin-top: 1em" valign="top"><b>@@</b><i>archive</i></p>

<p style="margin-left:20%;">(c and r mode only) The
specified archive is opened and the entries in it will be
appended to the current archive. As a simple example,</p>

<p style="margin-left:29%;"><b>tar &minus;c &minus;f</b>
<i>- newfile</i> <b>@@</b><i>original.tar</i></p>

<p style="margin-left:20%;">writes a new archive to
standard output containing a file <i>newfile</i> and all of
the entries from <i>original.tar</i>. In contrast,</p>

<p style="margin-left:29%;"><b>tar &minus;c &minus;f</b>
<i>- newfile original.tar</i></p>

<p style="margin-left:20%;">creates a new archive with only
two entries. Similarly,</p>

<p style="margin-left:29%;"><b>tar &minus;czf</b> <i>-</i>
<b>&minus;-format pax @@</b><i>-</i></p>

<p style="margin-left:20%;">reads an archive from standard
input (whose format will be determined automatically) and
converts it into a gzip-compressed pax-format archive on
stdout. In this way, <b>tar</b> can be used to convert
archives from one format to another.</p>

<p style="margin-top: 1em" valign="top"><b>&minus;b</b>
<i>blocksize</i></p>

<p style="margin-left:20%;">Specify the block size, in
512-byte records, for tape drive I/O. As a rule, this
argument is only needed when reading from or writing to tape
drives, and usually not even then as the default block size
of 20 records (10240 bytes) is very common.</p>

<p style="margin-top: 1em" valign="top"><b>&minus;C</b>
<i>directory</i></p>

<p style="margin-left:20%;">In c and r mode, this changes
the directory before adding the following files. In x mode,
change directories after opening the archive but before
extracting entries from the archive.</p>


<p style="margin-top: 1em" valign="top"><b>&minus;-check-links</b></p>

<p style="margin-left:20%;">(c and r modes only) Issue a
warning message unless all links to each file are
archived.</p>


<p style="margin-top: 1em" valign="top"><b>&minus;-chroot</b></p>

<p style="margin-left:20%;">(x mode only) <b>chroot</b>()
to the current directory after processing any
<b>&minus;C</b> options and before extracting any files.</p>


<p style="margin-top: 1em" valign="top"><b>&minus;-exclude</b>
<i>pattern</i></p>

<p style="margin-left:20%;">Do not process files or
directories that match the specified pattern. Note that
exclusions take precedence over patterns or filenames
specified on the command line.</p>


<p style="margin-top: 1em" valign="top"><b>&minus;-format</b>
<i>format</i></p>

<p style="margin-left:20%;">(c, r, u mode only) Use the
specified format for the created archive. Supported formats
include &lsquo;&lsquo;cpio&rsquo;&rsquo;,
&lsquo;&lsquo;pax&rsquo;&rsquo;,
&lsquo;&lsquo;shar&rsquo;&rsquo;, and
&lsquo;&lsquo;ustar&rsquo;&rsquo;. Other formats may also be
supported; see libarchive-formats(5) for more information
about currently-supported formats. In r and u modes, when
extending an existing archive, the format specified here
must be compatible with the format of the existing archive
on disk.</p>

<p style="margin-top: 1em" valign="top"><b>&minus;f</b>
<i>file</i></p>

<p style="margin-left:20%;">Read the archive from or write
the archive to the specified file. The filename can be
<i>-</i> for standard input or standard output. If not
specified, the default tape device will be used. (On
FreeBSD, the default tape device is <i>/dev/sa0</i>.)</p>


<p style="margin-top: 1em" valign="top"><b>&minus;H</b></p>

<p style="margin-left:20%; margin-top: 1em">(c and r mode
only) Symbolic links named on the command line will be
followed; the target of the link will be archived, not the
link itself.</p>


<p style="margin-top: 1em" valign="top"><b>&minus;h</b></p>

<p style="margin-left:20%; margin-top: 1em">(c and r mode
only) Synonym for <b>&minus;L</b>.</p>


<p style="margin-top: 1em" valign="top"><b>&minus;I</b></p>

<p style="margin-left:20%; margin-top: 1em">Synonym for
<b>&minus;T</b>.</p>


<p style="margin-top: 1em" valign="top"><b>&minus;-include</b>
<i>pattern</i></p>

<p style="margin-left:20%;">Process only files or
directories that match the specified pattern. Note that
exclusions specified with <b>&minus;-exclude</b> take
precedence over inclusions. If no inclusions are explicitly
specified, all entries are processed by default. The
<b>&minus;-include</b> option is especially useful when
filtering archives. For example, the command</p>

<p style="margin-left:29%;"><b>tar &minus;c &minus;f</b>
<i>new.tar</i> <b>&minus;-include=&rsquo;*foo*&rsquo;
@@</b><i>old.tgz</i></p>

<p style="margin-left:20%;">creates a new archive
<i>new.tar</i> containing only the entries from
<i>old.tgz</i> containing the string &lsquo;foo&rsquo;.</p>


<p style="margin-top: 1em" valign="top"><b>&minus;j</b></p>

<p style="margin-left:20%; margin-top: 1em">(c mode only)
Compress the resulting archive with bzip2(1). In extract or
list modes, this option is ignored. Note that, unlike other
<b>tar</b> implementations, this implementation recognizes
bzip2 compression automatically when reading archives.</p>


<p style="margin-top: 1em" valign="top"><b>&minus;k</b></p>

<p style="margin-left:20%; margin-top: 1em">(x mode only)
Do not overwrite existing files. In particular, if a file
appears more than once in an archive, later copies will not
overwrite earlier copies.</p>


<p style="margin-top: 1em" valign="top"><b>&minus;-keep-newer-files</b></p>

<p style="margin-left:20%;">(x mode only) Do not overwrite
existing files that are newer than the versions appearing in
the archive being extracted.</p>


<p style="margin-top: 1em" valign="top"><b>&minus;L</b></p>

<p style="margin-left:20%; margin-top: 1em">(c and r mode
only) All symbolic links will be followed. Normally,
symbolic links are archived as such. With this option, the
target of the link will be archived instead.</p>


<p style="margin-top: 1em" valign="top"><b>&minus;l</b></p>

<p style="margin-left:20%; margin-top: 1em">This is a
synonym for the <b>&minus;-check-links</b> option.</p>


<p style="margin-top: 1em" valign="top"><b>&minus;m</b></p>

<p style="margin-left:20%; margin-top: 1em">(x mode only)
Do not extract modification time. By default, the
modification time is set to the time stored in the
archive.</p>


<p style="margin-top: 1em" valign="top"><b>&minus;n</b></p>

<p style="margin-left:20%; margin-top: 1em">(c, r, u modes
only) Do not recursively archive the contents of
directories.</p>


<p style="margin-top: 1em" valign="top"><b>&minus;-newer</b>
<i>date</i></p>

<p style="margin-left:20%;">(c, r, u modes only) Only
include files and directories newer than the specified date.
This compares ctime entries.</p>


<p style="margin-top: 1em" valign="top"><b>&minus;-newer-mtime</b>
<i>date</i></p>

<p style="margin-left:20%;">(c, r, u modes only) Like
<b>&minus;-newer</b>, except it compares mtime entries
instead of ctime entries.</p>


<p style="margin-top: 1em" valign="top"><b>&minus;-newer-than</b>
<i>file</i></p>

<p style="margin-left:20%;">(c, r, u modes only) Only
include files and directories newer than the specified file.
This compares ctime entries.</p>


<p style="margin-top: 1em" valign="top"><b>&minus;-newer-mtime-than</b>
<i>file</i></p>

<p style="margin-left:20%;">(c, r, u modes only) Like
<b>&minus;-newer-than</b>, except it compares mtime entries
instead of ctime entries.</p>


<p style="margin-top: 1em" valign="top"><b>&minus;-nodump</b></p>

<p style="margin-left:20%;">(c and r modes only) Honor the
nodump file flag by skipping this file.</p>


<p style="margin-top: 1em" valign="top"><b>&minus;-null</b></p>

<p style="margin-left:20%; margin-top: 1em">(use with
<b>&minus;I</b>, <b>&minus;T</b>, or <b>&minus;X</b>)
Filenames or patterns are separated by null characters, not
by newlines. This is often used to read filenames output by
the <b>&minus;print0</b> option to find(1).</p>


<p style="margin-top: 1em" valign="top"><b>&minus;-numeric-owner</b></p>

<p style="margin-left:20%;">(x mode only) Ignore symbolic
user and group names when restoring archives to disk, only
numeric uid and gid values will be obeyed.</p>


<p style="margin-top: 1em" valign="top"><b>&minus;O</b></p>

<p style="margin-left:20%; margin-top: 1em">(x, t modes
only) In extract (-x) mode, files will be written to
standard out rather than being extracted to disk. In list
(-t) mode, the file listing will be written to stderr rather
than the usual stdout.</p>


<p style="margin-top: 1em" valign="top"><b>&minus;o</b></p>

<p style="margin-left:20%; margin-top: 1em">(x mode) Use
the user and group of the user running the program rather
than those specified in the archive. Note that this has no
significance unless <b>&minus;p</b> is specified, and the
program is being run by the root user. In this case, the
file modes and flags from the archive will be restored, but
ACLs or owner information in the archive will be
discarded.</p>


<p style="margin-top: 1em" valign="top"><b>&minus;o</b></p>

<p style="margin-left:20%; margin-top: 1em">(c, r, u mode)
A synonym for <b>&minus;-format</b> <i>ustar</i></p>


<p style="margin-top: 1em" valign="top"><b>&minus;-one-file-system</b></p>

<p style="margin-left:20%;">(c, r, and u modes) Do not
cross mount points.</p>


<p style="margin-top: 1em" valign="top"><b>&minus;-options</b>
<i>options</i></p>

<p style="margin-left:20%;">Select optional behaviors for
particular modules. The argument is a text string containing
comma-separated keywords and values. These are passed to the
modules that handle particular formats to control how those
formats will behave. Each option has one of the following
forms:</p>

<p valign="top"><i>key=value</i></p>

<p style="margin-left:32%;">The key will be set to the
specified value in every module that supports it. Modules
that do not support this key will ignore it.</p>

<p valign="top"><i>key</i></p>

<p style="margin-left:32%; margin-top: 1em">The key will be
enabled in every module that supports it. This is equivalent
to <i>key</i><b>=1</b>.</p>

<p valign="top"><i>!key</i></p>

<p style="margin-left:32%; margin-top: 1em">The key will be
disabled in every module that supports it.</p>

<p valign="top"><i>module:key=value</i>, <i>module:key</i>,
<i>module:!key</i></p>

<p style="margin-left:32%;">As above, but the corresponding
key and value will be provided only to modules whose name
matches <i>module</i>.</p>

<p style="margin-left:20%;">The currently supported modules
and keys are:</p>

<p valign="top"><b>iso9660:joliet</b></p>

<p style="margin-left:32%;">Support Joliet extensions. This
is enabled by default, use <b>!joliet</b> or
<b>iso9660:!joliet</b> to disable.</p>

<p valign="top"><b>iso9660:rockridge</b></p>

<p style="margin-left:32%;">Support Rock Ridge extensions.
This is enabled by default, use <b>!rockridge</b> or
<b>iso9660:!rockridge</b> to disable.</p>

<p valign="top"><b>gzip:compression-level</b></p>

<p style="margin-left:32%;">A decimal integer from 0 to 9
specifying the gzip compression level.</p>

<p valign="top"><b>xz:compression-level</b></p>

<p style="margin-left:32%;">A decimal integer from 0 to 9
specifying the xz compression level.</p>

<p valign="top"><b>mtree:</b><i>keyword</i></p>

<p style="margin-left:32%;">The mtree writer module allows
you to specify which mtree keywords will be included in the
output. Supported keywords include: <b>cksum</b>,
<b>device</b>, <b>flags</b>, <b>gid</b>, <b>gname</b>,
<b>indent</b>, <b>link</b>, <b>md5</b>, <b>mode</b>,
<b>nlink</b>, <b>rmd160</b>, <b>sha1</b>, <b>sha256</b>,
<b>sha384</b>, <b>sha512</b>, <b>size</b>, <b>time</b>,
<b>uid</b>, <b>uname</b>. The default is equivalent to:
&lsquo;&lsquo;device, flags, gid, gname, link, mode, nlink,
size, time, type, uid, uname&rsquo;&rsquo;.</p>

<p valign="top"><b>mtree:all</b></p>

<p style="margin-left:32%;">Enables all of the above
keywords. You can also use <b>mtree:!all</b> to disable all
keywords.</p>

<p valign="top"><b>mtree:use-set</b></p>

<p style="margin-left:32%;">Enable generation of
<b>/set</b> lines in the output.</p>

<p valign="top"><b>mtree:indent</b></p>

<p style="margin-left:32%;">Produce human-readable output
by indenting options and splitting lines to fit into 80
columns.</p>

<p valign="top"><b>zip:compression</b>=<i>type</i></p>

<p style="margin-left:32%;">Use <i>type</i> as compression
method. Supported values are store (uncompressed) and
deflate (gzip algorithm).</p>

<p style="margin-left:20%;">If a provided option is not
supported by any module, that is a fatal error.</p>


<p style="margin-top: 1em" valign="top"><b>&minus;P</b></p>

<p style="margin-left:20%; margin-top: 1em">Preserve
pathnames. By default, absolute pathnames (those that begin
with a / character) have the leading slash removed both when
creating archives and extracting from them. Also, <b>tar</b>
will refuse to extract archive entries whose pathnames
contain <i>..</i> or whose target directory would be altered
by a symlink. This option suppresses these behaviors.</p>


<p style="margin-top: 1em" valign="top"><b>&minus;p</b></p>

<p style="margin-left:20%; margin-top: 1em">(x mode only)
Preserve file permissions. Attempt to restore the full
permissions, including owner, file modes, file flags and
ACLs, if available, for each item extracted from the
archive. By default, newly-created files are owned by the
user running <b>tar</b>, the file mode is restored for
newly-created regular files, and all other types of entries
receive default permissions. If <b>tar</b> is being run by
root, the default is to restore the owner unless the
<b>&minus;o</b> option is also specified.</p>

<p style="margin-top: 1em" valign="top"><b>&minus;q</b>
(<b>&minus;-fast-read</b>)</p>

<p style="margin-left:20%;">(x and t mode only) Extract or
list only the first archive entry that matches each pattern
or filename operand. Exit as soon as each specified pattern
or filename has been matched. By default, the archive is
always read to the very end, since there can be multiple
entries with the same name and, by convention, later entries
overwrite earlier entries. This option is provided as a
performance optimization.</p>


<p style="margin-top: 1em" valign="top"><b>&minus;S</b></p>

<p style="margin-left:20%; margin-top: 1em">(x mode only)
Extract files as sparse files. For every block on disk,
check first if it contains only NULL bytes and seek over it
otherwise. This works similiar to the conv=sparse option of
dd.</p>


<p style="margin-top: 1em" valign="top"><b>&minus;-strip-components</b>
<i>count</i></p>

<p style="margin-left:20%;">(x mode only) Remove the
specified number of leading path elements. Pathnames with
fewer elements will be silently skipped. Note that the
pathname is edited after checking inclusion/exclusion
patterns but before security checks.</p>

<p style="margin-top: 1em" valign="top"><b>&minus;s</b>
<i>pattern</i></p>

<p style="margin-left:20%;">Modify file or archive member
names according to <i>pattern</i>. The pattern has the
format <i>/old/new/</i>[gps] where <i>old</i> is a basic
regular expression, <i>new</i> is the replacement string of
the matched part, and the optional trailing letters modify
how the replacement is handled. If <i>old</i> is not
matched, the pattern is skipped. Within <i>new</i>, ~ is
substituted with the match, 1 to 9 with the content of the
corresponding captured group. The optional trailing g
specifies that matching should continue after the matched
part and stopped on the first unmatched pattern. The
optional trailing s specifies that the pattern applies to
the value of symbolic links. The optional trailing p
specifies that after a successful substitution the original
path name and the new path name should be printed to
standard error.</p>

<p style="margin-top: 1em" valign="top"><b>&minus;T</b>
<i>filename</i></p>

<p style="margin-left:20%;">In x or t mode, <b>tar</b> will
read the list of names to be extracted from <i>filename</i>.
In c mode, <b>tar</b> will read names to be archived from
<i>filename</i>. The special name
&lsquo;&lsquo;-C&rsquo;&rsquo; on a line by itself will
cause the current directory to be changed to the directory
specified on the following line. Names are terminated by
newlines unless <b>&minus;-null</b> is specified. Note that
<b>&minus;-null</b> also disables the special handling of
lines containing &lsquo;&lsquo;-C&rsquo;&rsquo;.</p>


<p style="margin-top: 1em" valign="top"><b>&minus;U</b></p>

<p style="margin-left:20%; margin-top: 1em">(x mode only)
Unlink files before creating them. Without this option,
<b>tar</b> overwrites existing files, which preserves
existing hardlinks. With this option, existing hardlinks
will be broken, as will any symlink that would affect the
location of an extracted file.</p>


<p style="margin-top: 1em" valign="top"><b>&minus;-use-compress-program</b>
<i>program</i></p>

<p style="margin-left:20%;">Pipe the input (in x or t mode)
or the output (in c mode) through <i>program</i> instead of
using the builtin compression support.</p>


<p style="margin-top: 1em" valign="top"><b>&minus;v</b></p>

<p style="margin-left:20%; margin-top: 1em">Produce verbose
output. In create and extract modes, <b>tar</b> will list
each file name as it is read from or written to the archive.
In list mode, <b>tar</b> will produce output similar to that
of ls(1). Additional <b>&minus;v</b> options will provide
additional detail.</p>


<p style="margin-top: 1em" valign="top"><b>&minus;-version</b></p>

<p style="margin-left:20%;">Print version of <b>tar</b> and
<b>libarchive</b>, and exit.</p>


<p style="margin-top: 1em" valign="top"><b>&minus;w</b></p>

<p style="margin-left:20%; margin-top: 1em">Ask for
confirmation for every action.</p>

<p style="margin-top: 1em" valign="top"><b>&minus;X</b>
<i>filename</i></p>

<p style="margin-left:20%;">Read a list of exclusion
patterns from the specified file. See <b>&minus;-exclude</b>
for more information about the handling of exclusions.</p>


<p style="margin-top: 1em" valign="top"><b>&minus;y</b></p>

<p style="margin-left:20%; margin-top: 1em">(c mode only)
Compress the resulting archive with bzip2(1). In extract or
list modes, this option is ignored. Note that, unlike other
<b>tar</b> implementations, this implementation recognizes
bzip2 compression automatically when reading archives.</p>


<p style="margin-top: 1em" valign="top"><b>&minus;z</b></p>

<p style="margin-left:20%; margin-top: 1em">(c mode only)
Compress the resulting archive with gzip(1). In extract or
list modes, this option is ignored. Note that, unlike other
<b>tar</b> implementations, this implementation recognizes
gzip compression automatically when reading archives.</p>


<p style="margin-top: 1em" valign="top"><b>&minus;Z</b></p>

<p style="margin-left:20%; margin-top: 1em">(c mode only)
Compress the resulting archive with compress(1). In extract
or list modes, this option is ignored. Note that, unlike
other <b>tar</b> implementations, this implementation
recognizes compress compression automatically when reading
archives.</p>


<p style="margin-top: 1em" valign="top"><b>ENVIRONMENT</b></p>

<p style="margin-left:8%;">The following environment
variables affect the execution of <b>tar</b>:</p>

<p style="margin-top: 1em" valign="top">LANG</p>

<p style="margin-left:25%; margin-top: 1em">The locale to
use. See environ(7) for more information.</p>

<p style="margin-top: 1em" valign="top">TAPE</p>

<p style="margin-left:25%; margin-top: 1em">The default
tape device. The <b>&minus;f</b> option overrides this.</p>

<p style="margin-top: 1em" valign="top">TZ</p>

<p style="margin-left:25%; margin-top: 1em">The timezone to
use when displaying dates. See environ(7) for more
information.</p>

<p style="margin-top: 1em" valign="top"><b>FILES</b> <br>
/dev/sa0</p>

<p style="margin-left:25%; margin-top: 1em">The default
tape device, if not overridden by the TAPE environment
variable or the <b>&minus;f</b> option.</p>

<p style="margin-top: 1em" valign="top"><b>EXIT
STATUS</b></p>

<p style="margin-left:8%;">The <b>tar</b> utility
exits&nbsp;0 on success, and&nbsp;&gt;0 if an error
occurs.</p>


<p style="margin-top: 1em" valign="top"><b>EXAMPLES</b></p>

<p style="margin-left:8%;">The following creates a new
archive called <i>file.tar.gz</i> that contains two files
<i>source.c</i> and <i>source.h</i>:</p>

<p style="margin-left:17%;"><b>tar &minus;czf</b>
<i>file.tar.gz source.c source.h</i></p>

<p style="margin-left:8%; margin-top: 1em">To view a
detailed table of contents for this archive:</p>

<p style="margin-left:17%;"><b>tar &minus;tvf</b>
<i>file.tar.gz</i></p>

<p style="margin-left:8%; margin-top: 1em">To extract all
entries from the archive on the default tape drive:</p>

<p style="margin-left:17%;"><b>tar &minus;x</b></p>

<p style="margin-left:8%; margin-top: 1em">To examine the
contents of an ISO 9660 cdrom image:</p>

<p style="margin-left:17%;"><b>tar &minus;tf</b>
<i>image.iso</i></p>

<p style="margin-left:8%; margin-top: 1em">To move file
hierarchies, invoke <b>tar</b> as</p>

<p style="margin-left:17%;"><b>tar &minus;cf</b> <i>-</i>
<b>&minus;C</b> <i>srcdir&nbsp;.</i> | <b>tar &minus;xpf</b>
<i>-</i> <b>&minus;C</b> <i>destdir</i></p>

<p style="margin-left:8%;">or more traditionally</p>

<p style="margin-left:17%;">cd srcdir ; <b>tar
&minus;cf</b> <i>-&nbsp;.</i> | (<i>cd destdir ;</i> <b>tar
&minus;xpf</b> <i>-</i>)</p>

<p style="margin-left:8%; margin-top: 1em">In create mode,
the list of files and directories to be archived can also
include directory change instructions of the form
<b>-C</b><i>foo/baz</i> and archive inclusions of the form
<b>@@</b><i>archive-file</i>. For example, the command
line</p>

<p style="margin-left:17%;"><b>tar &minus;c &minus;f</b>
<i>new.tar foo1</i> <b>@@</b><i>old.tgz</i> <b>-C</b><i>/tmp
foo2</i></p>

<p style="margin-left:8%;">will create a new archive
<i>new.tar</i>. <b>tar</b> will read the file <i>foo1</i>
from the current directory and add it to the output archive.
It will then read each entry from <i>old.tgz</i> and add
those entries to the output archive. Finally, it will switch
to the <i>/tmp</i> directory and add <i>foo2</i> to the
output archive.</p>

<p style="margin-left:8%; margin-top: 1em">An input file in
mtree(5) format can be used to create an output archive with
arbitrary ownership, permissions, or names that differ from
existing data on disk:</p>

<p style="margin-left:17%; margin-top: 1em">$ cat
input.mtree <br>
#mtree <br>
usr/bin uid=0 gid=0 mode=0755 type=dir <br>
usr/bin/ls uid=0 gid=0 mode=0755 type=file content=myls <br>
$ tar -cvf output.tar @@input.mtree</p>

<p style="margin-left:8%; margin-top: 1em">The
<b>&minus;-newer</b> and <b>&minus;-newer-mtime</b> switches
accept a variety of common date and time specifications,
including &lsquo;&lsquo;12 Mar 2005 7:14:29pm&rsquo;&rsquo;,
&lsquo;&lsquo;2005-03-12 19:14&rsquo;&rsquo;,
&lsquo;&lsquo;5 minutes ago&rsquo;&rsquo;, and
&lsquo;&lsquo;19:14 PST May 1&rsquo;&rsquo;.</p>

<p style="margin-left:8%; margin-top: 1em">The
<b>&minus;-options</b> argument can be used to control
various details of archive generation or reading. For
example, you can generate mtree output which only contains
<b>type</b>, <b>time</b>, and <b>uid</b> keywords:</p>

<p style="margin-left:17%;"><b>tar &minus;cf</b>
<i>file.tar</i> <b>&minus;-format=mtree
&minus;-options=&rsquo;!all,type,time,uid&rsquo;</b>
<i>dir</i></p>

<p style="margin-left:8%;">or you can set the compression
level used by gzip or xz compression:</p>

<p style="margin-left:17%;"><b>tar &minus;czf</b>
<i>file.tar</i>
<b>&minus;-options=&rsquo;compression-level=9&rsquo;</b>.</p>

<p style="margin-left:8%;">For more details, see the
explanation of the <b>archive_read_set_options</b>() and
<b>archive_write_set_options</b>() API calls that are
described in archive_read(3) and archive_write(3).</p>


<p style="margin-top: 1em" valign="top"><b>COMPATIBILITY</b></p>

<p style="margin-left:8%;">The bundled-arguments format is
supported for compatibility with historic implementations.
It consists of an initial word (with no leading - character)
in which each character indicates an option. Arguments
follow as separate words. The order of the arguments must
match the order of the corresponding characters in the
bundled command word. For example,</p>

<p style="margin-left:17%;"><b>tar tbf 32</b>
<i>file.tar</i></p>

<p style="margin-left:8%;">specifies three flags <b>t</b>,
<b>b</b>, and <b>f</b>. The <b>b</b> and <b>f</b> flags both
require arguments, so there must be two additional items on
the command line. The <i>32</i> is the argument to the
<b>b</b> flag, and <i>file.tar</i> is the argument to the
<b>f</b> flag.</p>

<p style="margin-left:8%; margin-top: 1em">The mode options
c, r, t, u, and x and the options b, f, l, m, o, v, and w
comply with SUSv2.</p>

<p style="margin-left:8%; margin-top: 1em">For maximum
portability, scripts that invoke <b>tar</b> should use the
bundled-argument format above, should limit themselves to
the <b>c</b>, <b>t</b>, and <b>x</b> modes, and the
<b>b</b>, <b>f</b>, <b>m</b>, <b>v</b>, and <b>w</b>
options.</p>

<p style="margin-left:8%; margin-top: 1em">Additional long
options are provided to improve compatibility with other tar
implementations.</p>


<p style="margin-top: 1em" valign="top"><b>SECURITY</b></p>

<p style="margin-left:8%;">Certain security issues are
common to many archiving programs, including <b>tar</b>. In
particular, carefully-crafted archives can request that
<b>tar</b> extract files to locations outside of the target
directory. This can potentially be used to cause unwitting
users to overwrite files they did not intend to overwrite.
If the archive is being extracted by the superuser, any file
on the system can potentially be overwritten. There are
three ways this can happen. Although <b>tar</b> has
mechanisms to protect against each one, savvy users should
be aware of the implications:</p>

<p style="margin-top: 1em" valign="top"><b>&bull;</b></p>

<p style="margin-left:20%;">Archive entries can have
absolute pathnames. By default, <b>tar</b> removes the
leading <i>/</i> character from filenames before restoring
them to guard against this problem.</p>

<p style="margin-top: 1em" valign="top"><b>&bull;</b></p>

<p style="margin-left:20%;">Archive entries can have
pathnames that include <i>..</i> components. By default,
<b>tar</b> will not extract files containing <i>..</i>
components in their pathname.</p>

<p style="margin-top: 1em" valign="top"><b>&bull;</b></p>

<p style="margin-left:20%;">Archive entries can exploit
symbolic links to restore files to other directories. An
archive can restore a symbolic link to another directory,
then use that link to restore a file into that directory. To
guard against this, <b>tar</b> checks each extracted path
for symlinks. If the final path element is a symlink, it
will be removed and replaced with the archive entry. If
<b>&minus;U</b> is specified, any intermediate symlink will
also be unconditionally removed. If neither <b>&minus;U</b>
nor <b>&minus;P</b> is specified, <b>tar</b> will refuse to
extract the entry.</p>

<p style="margin-left:8%;">To protect yourself, you should
be wary of any archives that come from untrusted sources.
You should examine the contents of an archive with</p>

<p style="margin-left:17%;"><b>tar &minus;tf</b>
<i>filename</i></p>

<p style="margin-left:8%;">before extraction. You should
use the <b>&minus;k</b> option to ensure that <b>tar</b>
will not overwrite any existing files or the <b>&minus;U</b>
option to remove any pre-existing files. You should
generally not extract archives while running with super-user
privileges. Note that the <b>&minus;P</b> option to
<b>tar</b> disables the security checks above and allows you
to extract an archive while preserving any absolute
pathnames, <i>..</i> components, or symlinks to other
directories.</p>

<p style="margin-top: 1em" valign="top"><b>SEE ALSO</b></p>

<p style="margin-left:8%;">bzip2(1), compress(1), cpio(1),
gzip(1), mt(1), pax(1), shar(1), libarchive(3),
libarchive-formats(5), tar(5)</p>


<p style="margin-top: 1em" valign="top"><b>STANDARDS</b></p>

<p style="margin-left:8%;">There is no current POSIX
standard for the tar command; it appeared in ISO/IEC
9945-1:1996 (&lsquo;&lsquo;POSIX.1&rsquo;&rsquo;) but was
dropped from IEEE Std 1003.1-2001
(&lsquo;&lsquo;POSIX.1&rsquo;&rsquo;). The options used by
this implementation were developed by surveying a number of
existing tar implementations as well as the old POSIX
specification for tar and the current POSIX specification
for pax.</p>

<p style="margin-left:8%; margin-top: 1em">The ustar and
pax interchange file formats are defined by IEEE Std
1003.1-2001 (&lsquo;&lsquo;POSIX.1&rsquo;&rsquo;) for the
pax command.</p>

<p style="margin-top: 1em" valign="top"><b>HISTORY</b></p>

<p style="margin-left:8%;">A <b>tar</b> command appeared in
Seventh Edition Unix, which was released in January, 1979.
There have been numerous other implementations, many of
which extended the file format. John Gilmore&rsquo;s
<b>pdtar</b> public-domain implementation (circa November,
1987) was quite influential, and formed the basis of GNU
tar. GNU tar was included as the standard system tar in
FreeBSD beginning with FreeBSD&nbsp;1.0.</p>

<p style="margin-left:8%; margin-top: 1em">This is a
complete re-implementation based on the libarchive(3)
library.</p>

<p style="margin-top: 1em" valign="top"><b>BUGS</b></p>

<p style="margin-left:8%;">This program follows ISO/IEC
9945-1:1996 (&lsquo;&lsquo;POSIX.1&rsquo;&rsquo;) for the
definition of the <b>&minus;l</b> option. Note that GNU tar
prior to version 1.15 treated <b>&minus;l</b> as a synonym
for the <b>&minus;-one-file-system</b> option.</p>

<p style="margin-left:8%; margin-top: 1em">The
<b>&minus;C</b> <i>dir</i> option may differ from historic
implementations.</p>

<p style="margin-left:8%; margin-top: 1em">All archive
output is written in correctly-sized blocks, even if the
output is being compressed. Whether or not the last output
block is padded to a full block size varies depending on the
format and the output device. For tar and cpio formats, the
last block of output is padded to a full block size if the
output is being written to standard output or to a character
or block device such as a tape drive. If the output is being
written to a regular file, the last block will not be
padded. Many compressors, including gzip(1) and bzip2(1),
complain about the null padding when decompressing an
archive created by <b>tar</b>, although they still extract
it correctly.</p>

<p style="margin-left:8%; margin-top: 1em">The compression
and decompression is implemented internally, so there may be
insignificant differences between the compressed output
generated by</p>

<p style="margin-left:17%;"><b>tar &minus;czf</b> <i>-
file</i></p>

<p style="margin-left:8%;">and that generated by</p>

<p style="margin-left:17%;"><b>tar &minus;cf</b> <i>-
file</i> | <b>gzip</b></p>

<p style="margin-left:8%; margin-top: 1em">The default
should be to read and write archives to the standard I/O
paths, but tradition (and POSIX) dictates otherwise.</p>

<p style="margin-left:8%; margin-top: 1em">The <b>r</b> and
<b>u</b> modes require that the archive be uncompressed and
located in a regular file on disk. Other archives can be
modified using <b>c</b> mode with the <i>@@archive-file</i>
extension.</p>

<p style="margin-left:8%; margin-top: 1em">To archive a
file called <i>@@foo</i> or <i>-foo</i> you must specify it
as <i>./@@foo</i> or <i>./-foo</i>, respectively.</p>

<p style="margin-left:8%; margin-top: 1em">In create mode,
a leading <i>./</i> is always removed. A leading <i>/</i> is
stripped unless the <b>&minus;P</b> option is specified.</p>

<p style="margin-left:8%; margin-top: 1em">There needs to
be better support for file selection on both create and
extract.</p>

<p style="margin-left:8%; margin-top: 1em">There is not yet
any support for multi-volume archives or for archiving
sparse files.</p>

<p style="margin-left:8%; margin-top: 1em">Converting
between dissimilar archive formats (such as tar and cpio)
using the <b>@@</b><i>-</i> convention can cause hard link
information to be lost. (This is a consequence of the
incompatible ways that different archive formats store
hardlink information.)</p>

<p style="margin-left:8%; margin-top: 1em">There are
alternative long options for many of the short options that
are deliberately not documented.</p>


<p style="margin-left:8%; margin-top: 1em">FreeBSD&nbsp;9.0
Oct&nbsp;12, 2009 FreeBSD&nbsp;9.0</p>
<hr>
</body>
</html>
@


1.1.1.4
log
@Import libarchive-2.8.4:
- Improved reliability of hash function detection
- Fix issues on ancient FreeBSD, QNX, ancient NetBSD and Minix
@
text
@d1 1014
a1014 1838
%!PS-Adobe-3.0
%%Creator: groff version 1.19.2
%%CreationDate: Wed Jun 30 11:55:54 2010
%%DocumentNeededResources: font Times-Roman
%%DocumentSuppliedResources: procset grops 1.19 2
%%Pages: 167
%%PageOrder: Ascend
%%DocumentMedia: Default 612 792 0 () ()
%%Orientation: Portrait
%%EndComments
%%BeginDefaults
%%PageMedia: Default
%%EndDefaults
%%BeginProlog
%%BeginResource: procset grops 1.19 2
%!PS-Adobe-3.0 Resource-ProcSet
/setpacking where{
pop
currentpacking
true setpacking
}if
/grops 120 dict dup begin
/SC 32 def
/A/show load def
/B{0 SC 3 -1 roll widthshow}bind def
/C{0 exch ashow}bind def
/D{0 exch 0 SC 5 2 roll awidthshow}bind def
/E{0 rmoveto show}bind def
/F{0 rmoveto 0 SC 3 -1 roll widthshow}bind def
/G{0 rmoveto 0 exch ashow}bind def
/H{0 rmoveto 0 exch 0 SC 5 2 roll awidthshow}bind def
/I{0 exch rmoveto show}bind def
/J{0 exch rmoveto 0 SC 3 -1 roll widthshow}bind def
/K{0 exch rmoveto 0 exch ashow}bind def
/L{0 exch rmoveto 0 exch 0 SC 5 2 roll awidthshow}bind def
/M{rmoveto show}bind def
/N{rmoveto 0 SC 3 -1 roll widthshow}bind def
/O{rmoveto 0 exch ashow}bind def
/P{rmoveto 0 exch 0 SC 5 2 roll awidthshow}bind def
/Q{moveto show}bind def
/R{moveto 0 SC 3 -1 roll widthshow}bind def
/S{moveto 0 exch ashow}bind def
/T{moveto 0 exch 0 SC 5 2 roll awidthshow}bind def
/SF{
findfont exch
[exch dup 0 exch 0 exch neg 0 0]makefont
dup setfont
[exch/setfont cvx]cvx bind def
}bind def
/MF{
findfont
[5 2 roll
0 3 1 roll
neg 0 0]makefont
dup setfont
[exch/setfont cvx]cvx bind def
}bind def
/level0 0 def
/RES 0 def
/PL 0 def
/LS 0 def
/MANUAL{
statusdict begin/manualfeed true store end
}bind def
/PLG{
gsave newpath clippath pathbbox grestore
exch pop add exch pop
}bind def
/BP{
/level0 save def
1 setlinecap
1 setlinejoin
72 RES div dup scale
LS{
90 rotate
}{
0 PL translate
}ifelse
1 -1 scale
}bind def
/EP{
level0 restore
showpage
}def
/DA{
newpath arcn stroke
}bind def
/SN{
transform
.25 sub exch .25 sub exch
round .25 add exch round .25 add exch
itransform
}bind def
/DL{
SN
moveto
SN
lineto stroke
}bind def
/DC{
newpath 0 360 arc closepath
}bind def
/TM matrix def
/DE{
TM currentmatrix pop
translate scale newpath 0 0 .5 0 360 arc closepath
TM setmatrix
}bind def
/RC/rcurveto load def
/RL/rlineto load def
/ST/stroke load def
/MT/moveto load def
/CL/closepath load def
/Fr{
setrgbcolor fill
}bind def
/setcmykcolor where{
pop
/Fk{
setcmykcolor fill
}bind def
}if
/Fg{
setgray fill
}bind def
/FL/fill load def
/LW/setlinewidth load def
/Cr/setrgbcolor load def
/setcmykcolor where{
pop
/Ck/setcmykcolor load def
}if
/Cg/setgray load def
/RE{
findfont
dup maxlength 1 index/FontName known not{1 add}if dict begin
{
1 index/FID ne{def}{pop pop}ifelse
}forall
/Encoding exch def
dup/FontName exch def
currentdict end definefont pop
}bind def
/DEFS 0 def
/EBEGIN{
moveto
DEFS begin
}bind def
/EEND/end load def
/CNT 0 def
/level1 0 def
/PBEGIN{
/level1 save def
translate
div 3 1 roll div exch scale
neg exch neg exch translate
0 setgray
0 setlinecap
1 setlinewidth
0 setlinejoin
10 setmiterlimit
[]0 setdash
/setstrokeadjust where{
pop
false setstrokeadjust
}if
/setoverprint where{
pop
false setoverprint
}if
newpath
/CNT countdictstack def
userdict begin
/showpage{}def
/setpagedevice{}def
}bind def
/PEND{
countdictstack CNT sub{end}repeat
level1 restore
}bind def
end def
/setpacking where{
pop
setpacking
}if
%%EndResource
%%EndProlog
%%BeginSetup
%%BeginFeature: *PageSize Default
<< /PageSize [ 612 792 ] /ImagingBBox null >> setpagedevice
%%EndFeature
%%IncludeResource: font Times-Roman
grops begin/DEFS 1 dict def DEFS begin/u{.001 mul}bind def end/RES 72
def/PL 792 def/LS false def/ENC0[/asciicircum/asciitilde/Scaron/Zcaron
/scaron/zcaron/Ydieresis/trademark/quotesingle/Euro/.notdef/.notdef
/.notdef/.notdef/.notdef/.notdef/.notdef/.notdef/.notdef/.notdef/.notdef
/.notdef/.notdef/.notdef/.notdef/.notdef/.notdef/.notdef/.notdef/.notdef
/.notdef/.notdef/space/exclam/quotedbl/numbersign/dollar/percent
/ampersand/quoteright/parenleft/parenright/asterisk/plus/comma/hyphen
/period/slash/zero/one/two/three/four/five/six/seven/eight/nine/colon
/semicolon/less/equal/greater/question/at/A/B/C/D/E/F/G/H/I/J/K/L/M/N/O
/P/Q/R/S/T/U/V/W/X/Y/Z/bracketleft/backslash/bracketright/circumflex
/underscore/quoteleft/a/b/c/d/e/f/g/h/i/j/k/l/m/n/o/p/q/r/s/t/u/v/w/x/y
/z/braceleft/bar/braceright/tilde/.notdef/quotesinglbase/guillemotleft
/guillemotright/bullet/florin/fraction/perthousand/dagger/daggerdbl
/endash/emdash/ff/fi/fl/ffi/ffl/dotlessi/dotlessj/grave/hungarumlaut
/dotaccent/breve/caron/ring/ogonek/quotedblleft/quotedblright/oe/lslash
/quotedblbase/OE/Lslash/.notdef/exclamdown/cent/sterling/currency/yen
/brokenbar/section/dieresis/copyright/ordfeminine/guilsinglleft
/logicalnot/minus/registered/macron/degree/plusminus/twosuperior
/threesuperior/acute/mu/paragraph/periodcentered/cedilla/onesuperior
/ordmasculine/guilsinglright/onequarter/onehalf/threequarters
/questiondown/Agrave/Aacute/Acircumflex/Atilde/Adieresis/Aring/AE
/Ccedilla/Egrave/Eacute/Ecircumflex/Edieresis/Igrave/Iacute/Icircumflex
/Idieresis/Eth/Ntilde/Ograve/Oacute/Ocircumflex/Otilde/Odieresis
/multiply/Oslash/Ugrave/Uacute/Ucircumflex/Udieresis/Yacute/Thorn
/germandbls/agrave/aacute/acircumflex/atilde/adieresis/aring/ae/ccedilla
/egrave/eacute/ecircumflex/edieresis/igrave/iacute/icircumflex/idieresis
/eth/ntilde/ograve/oacute/ocircumflex/otilde/odieresis/divide/oslash
/ugrave/uacute/ucircumflex/udieresis/yacute/thorn/ydieresis]def
/Times-Roman@@0 ENC0/Times-Roman RE
%%EndSetup
%%Page: 1 1
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(<html>)0 12 Q(<head>)0 24 Q(<title>)36 36 Q
(Oct 12, 2009 BSDT)74.5 48 Q(AR 1)-.93 E(</title>)36 72 Q 0 Cg EP
%%Page: 2 2
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(<style type="te)36 12 Q(xt/css">)-.15 E(<!--)36
24 Q(body { mar)72 36 Q(gin-left:4%; })-.18 E(H1, H2, H3, H4, H5 {)72 48
Q(color: maroon; padding: 4pt; mar)108 60 Q(gin-left: -4%;)-.18 E
(border: solid; border)108 72 Q(-width: thin; width: 100%;)-.2 E 0 Cg EP
%%Page: 3 3
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(background: r)108 12 Q(gb\(204,204,255\))-.18 E
(})72 24 Q(-->)36 36 Q(</style>)36 48 Q(</head>)0 60 Q
(<body bgcolor="#FFFFFF" te)0 72 Q(xt="#000000">)-.15 E 0 Cg EP
%%Page: 4 4
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(<h3 id="N)36 12 Q(AME">)-.35 E -.35(NA)36 24 S
(ME).35 E(</h3>)36 36 Q(<b>tar</b>)0 48 Q 2.5(-m)0 60 S
(anipulate tape archi)-2.5 E -.15(ve)-.25 G(s).15 E(<h3 id="SYNOPSIS">)
36 72 Q 0 Cg EP
%%Page: 5 5
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(SYNOPSIS)36 12 Q(</h3>)36 24 Q(<b>tar</b>)0 36 Q
([<i></i><i>b)0 48 Q(undled-\215ags </i><i>ar)-.2 E
(gs&lt;.blm Pp</i><i> &gt;</i>])-.18 E([<i></i><i>\214le&lt;.blm Pp</i>\
<i> | </i><i></i><i>pattern&lt;.blm Pp</i><i> ...</i><i> &gt;</i><i> &g\
t;</i>])0 60 Q(<b>tar</b>)0 72 Q 0 Cg EP
%%Page: 6 6
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF({<b>\255</b><b>c</b>})0 12 Q
([<i></i><i>options</i>])0 24 Q
([<i></i><i>\214les</i><i> |</i><i></i><i> directories</i>])0 36 Q
(<b>tar</b>)0 48 Q({<b>\255</b><b>r</b><b> |</b><b> \255</b><b>u</b>})0
60 Q(<b>\255</b><b>f</b><i></i><i> archi)0 72 Q -.15(ve)-.25 G
(-\214le</i>).15 E 0 Cg EP
%%Page: 7 7
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF([<i></i><i>options</i>])0 12 Q
([<i></i><i>\214les</i><i> |</i><i></i><i> directories</i>])0 24 Q
(<b>tar</b>)0 36 Q({<b>\255</b><b>t</b><b> |</b><b> \255</b><b>x</b>})0
48 Q([<i></i><i>options</i>])0 60 Q([<i></i><i>patterns</i>])0 72 Q 0 Cg
EP
%%Page: 8 8
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(<h3 id="DESCRIPTION">)36 12 Q(DESCRIPTION)36 24
Q(</h3>)36 36 Q(<b>tar</b>)0 48 Q
(creates and manipulates streaming archi)0 60 Q .3 -.15(ve \214)-.25 H
(les.).15 E(This implementation can e)0 72 Q(xtract from tar)-.15 E 2.5
(,p)-.4 G(ax, cpio, zip, jar)-2.5 E 2.5(,a)-.4 G -.4(r,)-2.5 G 0 Cg EP
%%Page: 9 9
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(and ISO 9660 cdrom images and can create tar)0
12 Q 2.5(,p)-.4 G(ax, cpio, ar)-2.5 E(,)-.4 E(and shar archi)0 24 Q -.15
(ve)-.25 G(s.).15 E(<p>)36 36 Q(The \214rst synopsis form sho)0 48 Q
(ws a)-.25 E -.74(``)0 60 S -.2(bu).74 G(ndled').2 E(')-.74 E(option w)0
72 Q(ord.)-.1 E 0 Cg EP
%%Page: 10 10
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(This usage is pro)0 12 Q
(vided for compatibility with historical implementations.)-.15 E
(See COMP)0 24 Q -1.11(AT)-.92 G(IBILITY belo)1.11 E 2.5(wf)-.25 G
(or details.)-2.5 E(<p>)36 36 Q(The other synopsis forms sho)0 48 Q 2.5
(wt)-.25 G(he preferred usage.)-2.5 E(The \214rst option to)0 60 Q
(<b>tar</b>)0 72 Q 0 Cg EP
%%Page: 11 11
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(is a mode indicator from the follo)0 12 Q
(wing list:)-.25 E(<dl compact>)0 24 Q(<dt><b>\255</b><b>c</b><dd>)0 36
Q(Create a ne)0 48 Q 2.5(wa)-.25 G(rchi)-2.5 E .3 -.15(ve c)-.25 H
(ontaining the speci\214ed items.).15 E(<dt><b>\255</b><b>r</b><dd>)0 60
Q(Lik)0 72 Q(e)-.1 E 0 Cg EP
%%Page: 12 12
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(<b>\255</b><b>c</b>,)0 12 Q -.2(bu)0 24 S 2.5
(tn).2 G .5 -.25(ew e)-2.5 H(ntries are appended to the archi).25 E -.15
(ve)-.25 G(.).15 E(Note that this only w)0 36 Q
(orks on uncompressed archi)-.1 E -.15(ve)-.25 G 2.5(ss).15 G
(tored in re)-2.5 E(gular \214les.)-.15 E(The)0 48 Q
(<b>\255</b><b>f</b>)0 60 Q(option is required.)0 72 Q 0 Cg EP
%%Page: 13 13
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(<dt><b>\255</b><b>t</b><dd>)0 12 Q(List archi)0
24 Q .3 -.15(ve c)-.25 H(ontents to stdout.).15 E
(<dt><b>\255</b><b>u</b><dd>)0 36 Q(Lik)0 48 Q(e)-.1 E
(<b>\255</b><b>r</b>,)0 60 Q -.2(bu)0 72 S 2.5(tn).2 G .5 -.25(ew e)-2.5
H(ntries are added only if the).25 E 2.5(yh)-.15 G -2.25 -.2(av e)-2.5 H
2.5(am)2.7 G(odi\214cation date)-2.5 E 0 Cg EP
%%Page: 14 14
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(ne)0 12 Q
(wer than the corresponding entry in the archi)-.25 E -.15(ve)-.25 G(.)
.15 E(Note that this only w)0 24 Q(orks on uncompressed archi)-.1 E -.15
(ve)-.25 G 2.5(ss).15 G(tored in re)-2.5 E(gular \214les.)-.15 E(The)0
36 Q(<b>\255</b><b>f</b>)0 48 Q(option is required.)0 60 Q
(<dt><b>\255</b><b>x</b><dd>)0 72 Q 0 Cg EP
%%Page: 15 15
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(Extract to disk from the archi)0 12 Q -.15(ve)
-.25 G(.).15 E
(If a \214le with the same name appears more than once in the archi)0 24
Q -.15(ve)-.25 G(,).15 E(each cop)0 36 Q 2.5(yw)-.1 G(ill be e)-2.5 E
(xtracted, with later copies o)-.15 E -.15(ve)-.15 G
(rwriting \(replacing\)).15 E(earlier copies.)0 48 Q(</dl>)0 60 Q(<p>)36
72 Q 0 Cg EP
%%Page: 16 16
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(In)0 12 Q(<b>\255</b><b>c</b>,)0 24 Q
(<b>\255</b><b>r</b>,)0 36 Q(or)0 48 Q(<b>\255</b><b>u</b>)0 60 Q
(mode, each speci\214ed \214le or directory is added to the)0 72 Q 0 Cg
EP
%%Page: 17 17
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(archi)0 12 Q .3 -.15(ve i)-.25 H 2.5(nt).15 G
(he order speci\214ed on the command line.)-2.5 E(By def)0 24 Q
(ault, the contents of each directory are also archi)-.1 E -.15(ve)-.25
G(d.).15 E(<p>)36 36 Q(In e)0 48 Q
(xtract or list mode, the entire command line)-.15 E
(is read and parsed before the archi)0 60 Q .3 -.15(ve i)-.25 H 2.5(so)
.15 G(pened.)-2.5 E
(The pathnames or patterns on the command line indicate)0 72 Q 0 Cg EP
%%Page: 18 18
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(which items in the archi)0 12 Q .3 -.15(ve s)
-.25 H(hould be processed.).15 E -.15(Pa)0 24 S
(tterns are shell-style globbing patterns as).15 E(documented in)0 36 Q
(<a href="../html1/tcsh.html">tcsh\(1\)</a>.)0 48 Q(<h3 id="OPTIONS">)36
60 Q(OPTIONS)36 72 Q 0 Cg EP
%%Page: 19 19
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(</h3>)36 12 Q
(Unless speci\214cally stated otherwise, options are applicable in)0 24
Q(all operating modes.)0 36 Q(<dl compact>)0 48 Q
(<p><dt><b></b><b>@@</b><code></code><code>archi)0 60 Q -.15(ve)-.25 G
(</code><dd>).15 E(\(c and r mode only\))0 72 Q 0 Cg EP
%%Page: 20 20
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(The speci\214ed archi)0 12 Q .3 -.15(ve i)-.25 H
2.5(so).15 G(pened and the entries)-2.5 E
(in it will be appended to the current archi)0 24 Q -.15(ve)-.25 G(.).15
E(As a simple e)0 36 Q(xample,)-.15 E(<br>)0 48 Q
(&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;)0 60 Q(<code></code><b>Fl</b><b>c\
</b><b> \255</b><b>f</b><code></code><code> -</code><code></code><code>\
 ne)0 72 Q
(w\214le</code><b></b><b> @@</b><code></code><code>original.tar</code>)
-.25 E 0 Cg EP
%%Page: 21 21
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(<br>)0 12 Q(writes a ne)0 24 Q 2.5(wa)-.25 G
(rchi)-2.5 E .3 -.15(ve t)-.25 H 2.5(os).15 G
(tandard output containing a \214le)-2.5 E(<code></code><code>ne)0 36 Q
(w\214le</code>)-.25 E(and all of the entries from)0 48 Q
(<code></code><code>original.tar</code>.)0 60 Q(In contrast,)0 72 Q 0 Cg
EP
%%Page: 22 22
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(<br>)0 12 Q
(&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;)0 24 Q(<code></code><b>Fl</b><b>c\
</b><b> \255</b><b>f</b><code></code><code> -</code><code></code><code>\
 ne)0 36 Q(w\214le</code><code></code><code> original.tar</code>)-.25 E
(<br>)0 48 Q(creates a ne)0 60 Q 2.5(wa)-.25 G(rchi)-2.5 E .3 -.15(ve w)
-.25 H(ith only tw).15 E 2.5(oe)-.1 G(ntries.)-2.5 E(Similarly)0 72 Q(,)
-.65 E 0 Cg EP
%%Page: 23 23
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(<br>)0 12 Q
(&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;)0 24 Q(<code></code><b>Fl</b><b>c\
zf</b><code></code><code> -</code><b> \255</b><b>-format</b><b></b><b> \
pax</b><b></b><b> @@</b><code></code><code>-</code>)0 36 Q(<br>)0 48 Q
(reads an archi)0 60 Q .3 -.15(ve f)-.25 H
(rom standard input \(whose format will be determined).15 E
(automatically\) and con)0 72 Q -.15(ve)-.4 G
(rts it into a gzip-compressed).15 E 0 Cg EP
%%Page: 24 24
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(pax-format archi)0 12 Q .3 -.15(ve o)-.25 H 2.5
(ns).15 G(tdout.)-2.5 E(In this w)0 24 Q(ay)-.1 E(,)-.65 E(<b>tar</b>)0
36 Q(can be used to con)0 48 Q -.15(ve)-.4 G(rt archi).15 E -.15(ve)-.25
G 2.5(sf).15 G(rom one format to another)-2.5 E(.)-.55 E
(<p><dt><b>\255</b><b>b</b><i></i><i> blocksize</i><dd>)0 60 Q
(Specify the block size, in 512-byte records, for tape dri)0 72 Q .3
-.15(ve I)-.25 H(/O.).15 E 0 Cg EP
%%Page: 25 25
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(As a rule, this ar)0 12 Q
(gument is only needed when reading from or writing)-.18 E(to tape dri)0
24 Q -.15(ve)-.25 G(s, and usually not e).15 E -.15(ve)-.25 G 2.5(nt).15
G(hen as the def)-2.5 E(ault block size of)-.1 E
(20 records \(10240 bytes\) is v)0 36 Q(ery common.)-.15 E
(<p><dt><b>\255</b><b>C</b><i></i><i> directory</i><dd>)0 48 Q
(In c and r mode, this changes the directory before adding)0 60 Q
(the follo)0 72 Q(wing \214les.)-.25 E 0 Cg EP
%%Page: 26 26
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF
(In x mode, change directories after opening the archi)0 12 Q -.15(ve)
-.25 G -.2(bu)0 24 S 2.5(tb).2 G(efore e)-2.5 E
(xtracting entries from the archi)-.15 E -.15(ve)-.25 G(.).15 E
(<p><dt><b>\255</b><b>-check-links</b><dd>)0 36 Q
(\(c and r modes only\))0 48 Q(Issue a w)0 60 Q
(arning message unless all links to each \214le are archi)-.1 E -.15(ve)
-.25 G(d.).15 E(<p><dt><b>\255</b><b>-chroot</b><dd>)0 72 Q 0 Cg EP
%%Page: 27 27
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(\(x mode only\))0 12 Q
(<b>chroot</b>\(<code></code>\))0 24 Q
(to the current directory after processing an)0 36 Q(y)-.15 E
(<b>\255</b><b>C</b>)0 48 Q(options and before e)0 60 Q(xtracting an)
-.15 E 2.5<798c>-.15 G(les.)-2.5 E(<p><dt><b>\255</b><b>-e)0 72 Q
(xclude</b><i></i><i> pattern</i><dd>)-.15 E 0 Cg EP
%%Page: 28 28
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF
(Do not process \214les or directories that match the)0 12 Q
(speci\214ed pattern.)0 24 Q(Note that e)0 36 Q(xclusions tak)-.15 E 2.5
(ep)-.1 G(recedence o)-2.5 E -.15(ve)-.15 G 2.5(rp).15 G
(atterns or \214lenames)-2.5 E(speci\214ed on the command line.)0 48 Q
(<p><dt><b>\255</b><b>-format</b><i></i><i> format</i><dd>)0 60 Q
(\(c, r)0 72 Q 2.5(,um)-.4 G(ode only\))-2.5 E 0 Cg EP
%%Page: 29 29
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF
(Use the speci\214ed format for the created archi)0 12 Q -.15(ve)-.25 G
(.).15 E(Supported formats include)0 24 Q -.74(``)0 36 S(cpio').74 E(',)
-.74 E -.74(``)0 48 S(pax').74 E(',)-.74 E -.74(``)0 60 S(shar').74 E
(',)-.74 E(and)0 72 Q 0 Cg EP
%%Page: 30 30
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF -.74(``)0 12 S(ustar').74 E('.)-.74 E
(Other formats may also be supported; see)0 24 Q
(<a href="../html5/libarchi)0 36 Q -.15(ve)-.25 G
(-formats.html">libarchi).15 E -.15(ve)-.25 G(-formats\(5\)</a>).15 E
(for more information about currently-supported formats.)0 48 Q
(In r and u modes, when e)0 60 Q(xtending an e)-.15 E(xisting archi)-.15
E -.15(ve)-.25 G 2.5(,t).15 G(he format speci\214ed)-2.5 E
(here must be compatible with the format of the e)0 72 Q(xisting archi)
-.15 E .3 -.15(ve o)-.25 H 2.5(nd).15 G(isk.)-2.5 E 0 Cg EP
%%Page: 31 31
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF
(<p><dt><b>\255</b><b>f</b><i></i><i> \214le</i><dd>)0 12 Q
(Read the archi)0 24 Q .3 -.15(ve f)-.25 H(rom or write the archi).15 E
.3 -.15(ve t)-.25 H 2.5(ot).15 G(he speci\214ed \214le.)-2.5 E
(The \214lename can be)0 36 Q(<code></code><code>-</code>)0 48 Q
(for standard input or standard output.)0 60 Q
(If not speci\214ed, the def)0 72 Q(ault tape de)-.1 E
(vice will be used.)-.25 E 0 Cg EP
%%Page: 32 32
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(\(On)0 12 Q(FreeBSD,)0 24 Q(the def)0 36 Q
(ault tape de)-.1 E(vice is)-.25 E(<code></code><code>/de)0 48 Q
(v/sa0</code>.\))-.25 E(<p><dt><b>\255</b><b>H</b><dd>)0 60 Q
(\(c and r mode only\))0 72 Q 0 Cg EP
%%Page: 33 33
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF
(Symbolic links named on the command line will be follo)0 12 Q(wed; the)
-.25 E(tar)0 24 Q(get of the link will be archi)-.18 E -.15(ve)-.25 G
(d, not the link itself.).15 E(<p><dt><b>\255</b><b>h</b><dd>)0 36 Q
(\(c and r mode only\))0 48 Q(Synon)0 60 Q(ym for)-.15 E
(<b>\255</b><b>L</b>.)0 72 Q 0 Cg EP
%%Page: 34 34
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(<p><dt><b>\255</b><b>I</b><dd>)0 12 Q(Synon)0 24
Q(ym for)-.15 E(<b>\255</b><b>T</b>.)0 36 Q
(<p><dt><b>\255</b><b>-include</b><i></i><i> pattern</i><dd>)0 48 Q(Pro\
cess only \214les or directories that match the speci\214ed pattern.)0
60 Q(Note that e)0 72 Q(xclusions speci\214ed with)-.15 E 0 Cg EP
%%Page: 35 35
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(<b>\255</b><b>-e)0 12 Q(xclude</b>)-.15 E(tak)0
24 Q 2.5(ep)-.1 G(recedence o)-2.5 E -.15(ve)-.15 G 2.5(ri).15 G
(nclusions.)-2.5 E(If no inclusions are e)0 36 Q
(xplicitly speci\214ed, all entries are processed by)-.15 E(def)0 48 Q
(ault.)-.1 E(The)0 60 Q(<b>\255</b><b>-include</b>)0 72 Q 0 Cg EP
%%Page: 36 36
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF
(option is especially useful when \214ltering archi)0 12 Q -.15(ve)-.25
G(s.).15 E -.15(Fo)0 24 S 2.5(re).15 G(xample, the command)-2.65 E(<br>)
0 36 Q(&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;)0 48 Q(<code></code><b>Fl</\
b><b>c</b><b> \255</b><b>f</b><code></code><code> ne)0 60 Q -.65(w.)-.25
G(tar</code><b> \255</b><b>-include='*foo*'</b><b></b><b> @@</b><code></\
code><code>old.tgz</code>).65 E(<br>)0 72 Q 0 Cg EP
%%Page: 37 37
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(creates a ne)0 12 Q 2.5(wa)-.25 G(rchi)-2.5 E
-.15(ve)-.25 G(<code></code><code>ne)0 24 Q -.65(w.)-.25 G(tar</code>)
.65 E(containing only the entries from)0 36 Q
(<code></code><code>old.tgz</code>)0 48 Q(containing the string)0 60 Q
(`foo'.)0 72 Q 0 Cg EP
%%Page: 38 38
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(<p><dt><b>\255</b><b>j</b><dd>)0 12 Q
(\(c mode only\))0 24 Q(Compress the resulting archi)0 36 Q .3 -.15
(ve w)-.25 H(ith).15 E(<a href="../html1/bzip2.html">bzip2\(1\)</a>.)0
48 Q(In e)0 60 Q(xtract or list modes, this option is ignored.)-.15 E
(Note that, unlik)0 72 Q 2.5(eo)-.1 G(ther)-2.5 E 0 Cg EP
%%Page: 39 39
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(<b>tar</b>)0 12 Q
(implementations, this implementation recognizes bzip2 compression)0 24
Q(automatically when reading archi)0 36 Q -.15(ve)-.25 G(s.).15 E
(<p><dt><b>\255</b><b>k</b><dd>)0 48 Q(\(x mode only\))0 60 Q(Do not o)0
72 Q -.15(ve)-.15 G(rwrite e).15 E(xisting \214les.)-.15 E 0 Cg EP
%%Page: 40 40
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(In particular)0 12 Q 2.5(,i)-.4 G 2.5(fa\214)
-2.5 G(le appears more than once in an archi)-2.5 E -.15(ve)-.25 G(,).15
E(later copies will not o)0 24 Q -.15(ve)-.15 G(rwrite earlier copies.)
.15 E(<p><dt><b>\255</b><b>-k)0 36 Q(eep-ne)-.1 E(wer)-.25 E
(-\214les</b><dd>)-.2 E(\(x mode only\))0 48 Q(Do not o)0 60 Q -.15(ve)
-.15 G(rwrite e).15 E(xisting \214les that are ne)-.15 E(wer than the)
-.25 E -.15(ve)0 72 S(rsions appearing in the archi).15 E .3 -.15(ve b)
-.25 H(eing e).15 E(xtracted.)-.15 E 0 Cg EP
%%Page: 41 41
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(<p><dt><b>\255</b><b>L</b><dd>)0 12 Q
(\(c and r mode only\))0 24 Q(All symbolic links will be follo)0 36 Q
(wed.)-.25 E(Normally)0 48 Q 2.5(,s)-.65 G(ymbolic links are archi)-2.5
E -.15(ve)-.25 G 2.5(da).15 G 2.5(ss)-2.5 G(uch.)-2.5 E -.4(Wi)0 60 S
(th this option, the tar).4 E(get of the link will be archi)-.18 E -.15
(ve)-.25 G 2.5(di).15 G(nstead.)-2.5 E(<p><dt><b>\255</b><b>l</b><dd>)0
72 Q 0 Cg EP
%%Page: 42 42
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(This is a synon)0 12 Q(ym for the)-.15 E
(<b>\255</b><b>-check-links</b>)0 24 Q(option.)0 36 Q
(<p><dt><b>\255</b><b>m</b><dd>)0 48 Q(\(x mode only\))0 60 Q(Do not e)0
72 Q(xtract modi\214cation time.)-.15 E 0 Cg EP
%%Page: 43 43
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(By def)0 12 Q
(ault, the modi\214cation time is set to the time stored in the archi)
-.1 E -.15(ve)-.25 G(.).15 E(<p><dt><b>\255</b><b>n</b><dd>)0 24 Q
(\(c, r)0 36 Q 2.5(,um)-.4 G(odes only\))-2.5 E(Do not recursi)0 48 Q
-.15(ve)-.25 G(ly archi).15 E .3 -.15(ve t)-.25 H
(he contents of directories.).15 E(<p><dt><b>\255</b><b>-ne)0 60 Q
(wer</b><i></i><i> date</i><dd>)-.25 E(\(c, r)0 72 Q 2.5(,um)-.4 G
(odes only\))-2.5 E 0 Cg EP
%%Page: 44 44
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(Only include \214les and directories ne)0 12 Q
(wer than the speci\214ed date.)-.25 E(This compares ctime entries.)0 24
Q(<p><dt><b>\255</b><b>-ne)0 36 Q(wer)-.25 E
(-mtime</b><i></i><i> date</i><dd>)-.2 E(\(c, r)0 48 Q 2.5(,um)-.4 G
(odes only\))-2.5 E(Lik)0 60 Q(e)-.1 E(<b>\255</b><b>-ne)0 72 Q
(wer</b>,)-.25 E 0 Cg EP
%%Page: 45 45
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF -.15(ex)0 12 S
(cept it compares mtime entries instead of ctime entries.).15 E
(<p><dt><b>\255</b><b>-ne)0 24 Q(wer)-.25 E
(-than</b><code></code><code> \214le</code><dd>)-.2 E(\(c, r)0 36 Q 2.5
(,um)-.4 G(odes only\))-2.5 E(Only include \214les and directories ne)0
48 Q(wer than the speci\214ed \214le.)-.25 E
(This compares ctime entries.)0 60 Q(<p><dt><b>\255</b><b>-ne)0 72 Q
(wer)-.25 E(-mtime-than</b><code></code><code> \214le</code><dd>)-.2 E 0
Cg EP
%%Page: 46 46
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(\(c, r)0 12 Q 2.5(,um)-.4 G(odes only\))-2.5 E
(Lik)0 24 Q(e)-.1 E(<b>\255</b><b>-ne)0 36 Q(wer)-.25 E(-than</b>,)-.2 E
-.15(ex)0 48 S(cept it compares mtime entries instead of ctime entries.)
.15 E(<p><dt><b>\255</b><b>-nodump</b><dd>)0 60 Q
(\(c and r modes only\))0 72 Q 0 Cg EP
%%Page: 47 47
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF
(Honor the nodump \214le \215ag by skipping this \214le.)0 12 Q
(<p><dt><b>\255</b><b>-null</b><dd>)0 24 Q(\(use with)0 36 Q
(<b>\255</b><b>I</b>,)0 48 Q(<b>\255</b><b>T</b>,)0 60 Q(or)0 72 Q 0 Cg
EP
%%Page: 48 48
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(<b>\255</b><b>X</b>\))0 12 Q
(Filenames or patterns are separated by null characters,)0 24 Q
(not by ne)0 36 Q(wlines.)-.25 E
(This is often used to read \214lenames output by the)0 48 Q
(<b>\255</b><b>print0</b>)0 60 Q(option to)0 72 Q 0 Cg EP
%%Page: 49 49
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(<a href="../html1/\214nd.html">\214nd\(1\)</a>.)
0 12 Q(<p><dt><b>\255</b><b>-numeric-o)0 24 Q(wner</b><dd>)-.25 E
(\(x mode only\))0 36 Q
(Ignore symbolic user and group names when restoring archi)0 48 Q -.15
(ve)-.25 G 2.5(st).15 G 2.5(od)-2.5 G(isk,)-2.5 E
(only numeric uid and gid v)0 60 Q(alues will be obe)-.25 E(yed.)-.15 E
(<p><dt><b>\255</b><b>O</b><dd>)0 72 Q 0 Cg EP
%%Page: 50 50
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(\(x, t modes only\))0 12 Q(In e)0 24 Q(xtract \
\(-x\) mode, \214les will be written to standard out rather than)-.15 E
(being e)0 36 Q(xtracted to disk.)-.15 E(In list \(-t\) mode, the \214l\
e listing will be written to stderr rather than)0 48 Q
(the usual stdout.)0 60 Q(<p><dt><b>\255</b><b>o</b><dd>)0 72 Q 0 Cg EP
%%Page: 51 51
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(\(x mode\))0 12 Q
(Use the user and group of the user running the program rather)0 24 Q
(than those speci\214ed in the archi)0 36 Q -.15(ve)-.25 G(.).15 E
(Note that this has no signi\214cance unless)0 48 Q(<b>\255</b><b>p</b>)
0 60 Q(is speci\214ed, and the program is being run by the root user)0
72 Q(.)-.55 E 0 Cg EP
%%Page: 52 52
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(In this case, the \214le modes and \215ags from)
0 12 Q(the archi)0 24 Q .3 -.15(ve w)-.25 H(ill be restored, b).15 E
(ut A)-.2 E(CLs or o)-.4 E(wner information in)-.25 E(the archi)0 36 Q
.3 -.15(ve w)-.25 H(ill be discarded.).15 E
(<p><dt><b>\255</b><b>o</b><dd>)0 48 Q(\(c, r)0 60 Q 2.5(,um)-.4 G
(ode\))-2.5 E 2.5(As)0 72 S(ynon)-2.5 E(ym for)-.15 E 0 Cg EP
%%Page: 53 53
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(<b>\255</b><b>-format</b><i></i><i> ustar</i>)0
12 Q(<p><dt><b>\255</b><b>-one-\214le-system</b><dd>)0 24 Q(\(c, r)0 36
Q 2.5(,a)-.4 G(nd u modes\))-2.5 E(Do not cross mount points.)0 48 Q
(<p><dt><b>\255</b><b>-options</b><i></i><i> options</i><dd>)0 60 Q
(Select optional beha)0 72 Q(viors for particular modules.)-.2 E 0 Cg EP
%%Page: 54 54
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(The ar)0 12 Q(gument is a te)-.18 E
(xt string containing comma-separated)-.15 E -.1(ke)0 24 S(yw)-.05 E
(ords and v)-.1 E(alues.)-.25 E
(These are passed to the modules that handle particular)0 36 Q
(formats to control ho)0 48 Q 2.5(wt)-.25 G(hose formats will beha)-2.5
E -.15(ve)-.2 G(.).15 E(Each option has one of the follo)0 60 Q
(wing forms:)-.25 E(<dl compact>)0 72 Q 0 Cg EP
%%Page: 55 55
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(<dt><i></i><i>k)0 12 Q -.15(ey)-.1 G(=v).15 E
(alue</i><dd>)-.25 E(The k)0 24 Q .3 -.15(ey w)-.1 H
(ill be set to the speci\214ed v).15 E(alue in e)-.25 E -.15(ve)-.25 G
(ry module that supports it.).15 E(Modules that do not support this k)0
36 Q .3 -.15(ey w)-.1 H(ill ignore it.).15 E(<dt><i></i><i>k)0 48 Q -.15
(ey)-.1 G(</i><dd>).15 E(The k)0 60 Q .3 -.15(ey w)-.1 H
(ill be enabled in e).15 E -.15(ve)-.25 G(ry module that supports it.)
.15 E(This is equi)0 72 Q -.25(va)-.25 G(lent to).25 E 0 Cg EP
%%Page: 56 56
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(<i></i><i>k)0 12 Q -.15(ey)-.1 G
(</i><b></b><b>=1</b>.).15 E(<dt><i></i><i>!k)0 24 Q -.15(ey)-.1 G
(</i><dd>).15 E(The k)0 36 Q .3 -.15(ey w)-.1 H(ill be disabled in e).15
E -.15(ve)-.25 G(ry module that supports it.).15 E
(<dt><i></i><i>module:k)0 48 Q -.15(ey)-.1 G(=v).15 E
(alue</i><i></i>,<i> module:k)-.25 E -.15(ey)-.1 G
(</i><i></i>,<i> module:!k).15 E -.15(ey)-.1 G(</i><dd>).15 E(As abo)0
60 Q -.15(ve)-.15 G 2.5(,b).15 G(ut the corresponding k)-2.7 E .3 -.15
(ey a)-.1 H(nd v).15 E(alue will be pro)-.25 E(vided)-.15 E
(only to modules whose name matches)0 72 Q 0 Cg EP
%%Page: 57 57
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(<i></i><i>module</i>.)0 12 Q(</dl>)0 24 Q
(The currently supported modules and k)0 36 Q -.15(ey)-.1 G 2.5(sa).15 G
(re:)-2.5 E(<dl compact>)0 48 Q(<dt><b></b><b>iso9660:joliet</b><dd>)0
60 Q(Support Joliet e)0 72 Q(xtensions.)-.15 E 0 Cg EP
%%Page: 58 58
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(This is enabled by def)0 12 Q(ault, use)-.1 E
(<b></b><b>!joliet</b>)0 24 Q(or)0 36 Q(<b></b><b>iso9660:!joliet</b>)0
48 Q(to disable.)0 60 Q(<dt><b></b><b>iso9660:rockridge</b><dd>)0 72 Q 0
Cg EP
%%Page: 59 59
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(Support Rock Ridge e)0 12 Q(xtensions.)-.15 E
(This is enabled by def)0 24 Q(ault, use)-.1 E(<b></b><b>!rockridge</b>)
0 36 Q(or)0 48 Q(<b></b><b>iso9660:!rockridge</b>)0 60 Q(to disable.)0
72 Q 0 Cg EP
%%Page: 60 60
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(<dt><b></b><b>gzip:compression-le)0 12 Q -.15
(ve)-.25 G(l</b><dd>).15 E 2.5(Ad)0 24 S(ecimal inte)-2.5 E
(ger from 0 to 9 specifying the gzip compression le)-.15 E -.15(ve)-.25
G(l.).15 E(<dt><b></b><b>xz:compression-le)0 36 Q -.15(ve)-.25 G
(l</b><dd>).15 E 2.5(Ad)0 48 S(ecimal inte)-2.5 E
(ger from 0 to 9 specifying the xz compression le)-.15 E -.15(ve)-.25 G
(l.).15 E(<dt><b></b><b>mtree:</b><i></i><i>k)0 60 Q -.15(ey)-.1 G -.1
(wo).15 G(rd</i><dd>).1 E(The mtree writer module allo)0 72 Q
(ws you to specify which mtree k)-.25 E -.15(ey)-.1 G -.1(wo).15 G(rds)
.1 E 0 Cg EP
%%Page: 61 61
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(will be included in the output.)0 12 Q
(Supported k)0 24 Q -.15(ey)-.1 G -.1(wo).15 G(rds include:).1 E
(<b></b><b>cksum</b><b></b>,<b> de)0 36 Q(vice</b><b></b>,<b> \215ags</\
b><b></b>,<b> gid</b><b></b>,<b> gname</b><b></b>,<b> indent</b>,)-.25 E
(<b></b><b>link</b><b></b>,<b> md5</b><b></b>,<b> mode</b><b></b>,<b> n\
link</b><b></b>,<b> rmd160</b><b></b>,<b> sha1</b><b></b>,<b> sha256</b\
>,)0 48 Q(<b></b><b>sha384</b><b></b>,<b> sha512</b><b></b>,<b> size</b\
><b></b>,<b> time</b><b></b>,<b> uid</b><b></b>,<b> uname</b>.)0 60 Q
(The def)0 72 Q(ault is equi)-.1 E -.25(va)-.25 G(lent to:).25 E 0 Cg EP
%%Page: 62 62
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF -.74(``)0 12 S(de).74 E(vice, \215ags, gid, gna\
me, link, mode, nlink, size, time, type, uid, uname')-.25 E('.)-.74 E
(<dt><b></b><b>mtree:all</b><dd>)0 24 Q(Enables all of the abo)0 36 Q .3
-.15(ve k)-.15 H -.15(ey).05 G -.1(wo).15 G(rds.).1 E -1.1(Yo)0 48 S 2.5
(uc)1.1 G(an also use)-2.5 E(<b></b><b>mtree:!all</b>)0 60 Q
(to disable all k)0 72 Q -.15(ey)-.1 G -.1(wo).15 G(rds.).1 E 0 Cg EP
%%Page: 63 63
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(<dt><b></b><b>mtree:use-set</b><dd>)0 12 Q
(Enable generation of)0 24 Q(<b></b><b>/set</b>)0 36 Q
(lines in the output.)0 48 Q(<dt><b></b><b>mtree:indent</b><dd>)0 60 Q
(Produce human-readable output by indenting options and splitting lines)
0 72 Q 0 Cg EP
%%Page: 64 64
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(to \214t into 80 columns.)0 12 Q
(<dt><b></b><b>zip:compression</b>=<i></i><i>type</i><dd>)0 24 Q(Use)0
36 Q(<i></i><i>type</i>)0 48 Q(as compression method.)0 60 Q
(Supported v)0 72 Q
(alues are store \(uncompressed\) and de\215ate \(gzip algorithm\).)-.25
E 0 Cg EP
%%Page: 65 65
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(</dl>)0 12 Q(If a pro)0 24 Q
(vided option is not supported by an)-.15 E 2.5(ym)-.15 G(odule, that)
-2.5 E(is a f)0 36 Q(atal error)-.1 E(.)-.55 E
(<p><dt><b>\255</b><b>P</b><dd>)0 48 Q(Preserv)0 60 Q 2.5(ep)-.15 G
(athnames.)-2.5 E(By def)0 72 Q
(ault, absolute pathnames \(those that be)-.1 E(gin with a /)-.15 E 0 Cg
EP
%%Page: 66 66
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(character\) ha)0 12 Q .3 -.15(ve t)-.2 H
(he leading slash remo).15 E -.15(ve)-.15 G 2.5(db).15 G
(oth when creating archi)-2.5 E -.15(ve)-.25 G(s).15 E(and e)0 24 Q
(xtracting from them.)-.15 E(Also,)0 36 Q(<b>tar</b>)0 48 Q
(will refuse to e)0 60 Q(xtract archi)-.15 E .3 -.15(ve e)-.25 H
(ntries whose pathnames contain).15 E(<code></code><code>..</code>)0 72
Q 0 Cg EP
%%Page: 67 67
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(or whose tar)0 12 Q(get directory w)-.18 E
(ould be altered by a symlink.)-.1 E(This option suppresses these beha)0
24 Q(viors.)-.2 E(<p><dt><b>\255</b><b>p</b><dd>)0 36 Q(\(x mode only\))
0 48 Q(Preserv)0 60 Q 2.5<658c>-.15 G(le permissions.)-2.5 E
(Attempt to restore the full permissions, including o)0 72 Q(wner)-.25 E
2.5<2c8c>-.4 G(le modes, \214le)-2.5 E 0 Cg EP
%%Page: 68 68
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(\215ags and A)0 12 Q(CLs, if a)-.4 E -.25(va)-.2
G(ilable, for each item e).25 E(xtracted from the archi)-.15 E -.15(ve)
-.25 G(.).15 E(By def)0 24 Q(ault, ne)-.1 E(wly-created \214les are o)
-.25 E(wned by the user running)-.25 E(<b>,</b>)0 36 Q
(the \214le mode is restored for ne)0 48 Q(wly-created re)-.25 E
(gular \214les, and)-.15 E(all other types of entries recei)0 60 Q .3
-.15(ve d)-.25 H(ef).15 E(ault permissions.)-.1 E(If)0 72 Q 0 Cg EP
%%Page: 69 69
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(<b>tar</b>)0 12 Q(is being run by root, the def)
0 24 Q(ault is to restore the o)-.1 E(wner unless the)-.25 E
(<b>\255</b><b>o</b>)0 36 Q(option is also speci\214ed.)0 48 Q
(<p><dt><b>\255</b><b>q</b><b> \255</b>\(<b>-f)0 60 Q
(ast-read</b><dd>\))-.1 E(\(x and t mode only\))0 72 Q 0 Cg EP
%%Page: 70 70
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(Extract or list only the \214rst archi)0 12 Q .3
-.15(ve e)-.25 H(ntry that matches each pattern).15 E
(or \214lename operand.)0 24 Q(Exit as soon as each speci\214ed pattern\
 or \214lename has been matched.)0 36 Q(By def)0 48 Q(ault, the archi)
-.1 E .3 -.15(ve i)-.25 H 2.5(sa).15 G -.1(lwa)-2.5 G(ys read to the v)
.1 E(ery end, since)-.15 E
(there can be multiple entries with the same name and, by con)0 60 Q
-.15(ve)-.4 G(ntion,).15 E(later entries o)0 72 Q -.15(ve)-.15 G
(rwrite earlier entries.).15 E 0 Cg EP
%%Page: 71 71
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(This option is pro)0 12 Q
(vided as a performance optimization.)-.15 E
(<p><dt><b>\255</b><b>S</b><dd>)0 24 Q(\(x mode only\))0 36 Q
(Extract \214les as sparse \214les.)0 48 Q -.15(Fo)0 60 S 2.5(re).15 G
-.15(ve)-2.75 G(ry block on disk, check \214rst if it contains only NUL\
L bytes and seek).15 E -.15(ove)0 72 S 2.5(ri).15 G 2.5(to)-2.5 G
(therwise.)-2.5 E 0 Cg EP
%%Page: 72 72
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(This w)0 12 Q(orks similiar to the con)-.1 E
(v=sparse option of dd.)-.4 E
(<p><dt><b>\255</b><b>-strip-components</b><i></i><i> count</i><dd>)0 24
Q(\(x mode only\))0 36 Q(Remo)0 48 Q .3 -.15(ve t)-.15 H
(he speci\214ed number of leading path elements.).15 E -.15(Pa)0 60 S
(thnames with fe).15 E(wer elements will be silently skipped.)-.25 E
(Note that the pathname is edited after checking inclusion/e)0 72 Q
(xclusion patterns)-.15 E 0 Cg EP
%%Page: 73 73
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF -.2(bu)0 12 S 2.5(tb).2 G
(efore security checks.)-2.5 E
(<p><dt><b>\255</b><b>s</b><i></i><i> pattern</i><dd>)0 24 Q
(Modify \214le or archi)0 36 Q .3 -.15(ve m)-.25 H
(ember names according to).15 E(<code></code><code>pattern</code>.)0 48
Q(The pattern has the format)0 60 Q(<i></i><i>/old/ne)0 72 Q
(w/</i>[gps])-.25 E 0 Cg EP
%%Page: 74 74
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(where)0 12 Q(<i></i><i>old</i>)0 24 Q
(is a basic re)0 36 Q(gular e)-.15 E(xpression,)-.15 E(<i></i><i>ne)0 48
Q(w</i>)-.25 E(is the replacement string of the matched part,)0 60 Q
(and the optional trailing letters modify)0 72 Q 0 Cg EP
%%Page: 75 75
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(ho)0 12 Q 2.5(wt)-.25 G
(he replacement is handled.)-2.5 E(If)0 24 Q(<i></i><i>old</i>)0 36 Q
(is not matched, the pattern is skipped.)0 48 Q -.4(Wi)0 60 S(thin).4 E
(<i></i><i>ne)0 72 Q(w</i>,)-.25 E 0 Cg EP
%%Page: 76 76
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF 2.5(~i)0 12 S 2.5(ss)-2.5 G
(ubstituted with the match, \\1 to \\9 with the content of)-2.5 E
(the corresponding captured group.)0 24 Q
(The optional trailing g speci\214es that matching should continue)0 36
Q(after the matched part and stopped on the \214rst unmatched pattern.)0
48 Q
(The optional trailing s speci\214es that the pattern applies to the v)0
60 Q(alue)-.25 E(of symbolic links.)0 72 Q 0 Cg EP
%%Page: 77 77
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(The optional trailing p speci\214es that after \
a successful substitution)0 12 Q(the original path name and the ne)0 24
Q 2.5(wp)-.25 G(ath name should be printed to)-2.5 E(standard error)0 36
Q(.)-.55 E(<p><dt><b>\255</b><b>T</b><i></i><i> \214lename</i><dd>)0 48
Q(In x or t mode,)0 60 Q(<b>tar</b>)0 72 Q 0 Cg EP
%%Page: 78 78
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(will read the list of names to be e)0 12 Q
(xtracted from)-.15 E(<code></code><code>\214lename</code>.)0 24 Q
(In c mode,)0 36 Q(<b>tar</b>)0 48 Q(will read names to be archi)0 60 Q
-.15(ve)-.25 G 2.5(df).15 G(rom)-2.5 E
(<code></code><code>\214lename</code>.)0 72 Q 0 Cg EP
%%Page: 79 79
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(The special name)0 12 Q -.74(``)0 24 S(-C').74 E
(')-.74 E
(on a line by itself will cause the current directory to be changed to)0
36 Q(the directory speci\214ed on the follo)0 48 Q(wing line.)-.25 E
(Names are terminated by ne)0 60 Q(wlines unless)-.25 E
(<b>\255</b><b>-null</b>)0 72 Q 0 Cg EP
%%Page: 80 80
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(is speci\214ed.)0 12 Q(Note that)0 24 Q
(<b>\255</b><b>-null</b>)0 36 Q
(also disables the special handling of lines containing)0 48 Q -.74(``)0
60 S(-C').74 E('.)-.74 E(<p><dt><b>\255</b><b>U</b><dd>)0 72 Q 0 Cg EP
%%Page: 81 81
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(\(x mode only\))0 12 Q
(Unlink \214les before creating them.)0 24 Q -.4(Wi)0 36 S
(thout this option,).4 E(<b>tar</b>)0 48 Q -.15(ove)0 60 S(rwrites e).15
E(xisting \214les, which preserv)-.15 E(es e)-.15 E(xisting hardlinks.)
-.15 E -.4(Wi)0 72 S(th this option, e).4 E
(xisting hardlinks will be brok)-.15 E(en, as will an)-.1 E(y)-.15 E 0
Cg EP
%%Page: 82 82
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(symlink that w)0 12 Q(ould af)-.1 E
(fect the location of an e)-.25 E(xtracted \214le.)-.15 E(<p><dt><b>\
\255</b><b>-use-compress-program</b><i></i><i> program</i><dd>)0 24 Q
(Pipe the input \(in x or t mode\) or the output \(in c mode\) through)0
36 Q(<code></code><code>program</code>)0 48 Q(instead of using the b)0
60 Q(uiltin compression support.)-.2 E(<p><dt><b>\255</b><b>v</b><dd>)0
72 Q 0 Cg EP
%%Page: 83 83
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(Produce v)0 12 Q(erbose output.)-.15 E
(In create and e)0 24 Q(xtract modes,)-.15 E(<b>tar</b>)0 36 Q
(will list each \214le name as it is read from or written to)0 48 Q
(the archi)0 60 Q -.15(ve)-.25 G(.).15 E(In list mode,)0 72 Q 0 Cg EP
%%Page: 84 84
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(<b>tar</b>)0 12 Q
(will produce output similar to that of)0 24 Q
(<a href="../html1/ls.html">ls\(1\)</a>.)0 36 Q(Additional)0 48 Q
(<b>\255</b><b>v</b>)0 60 Q(options will pro)0 72 Q
(vide additional detail.)-.15 E 0 Cg EP
%%Page: 85 85
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(<p><dt><b>\255</b><b>-v)0 12 Q(ersion</b><dd>)
-.15 E(Print v)0 24 Q(ersion of)-.15 E(<b>tar</b>)0 36 Q(and)0 48 Q
(<b>libarchi)0 60 Q -.15(ve)-.25 G(</b>,).15 E(and e)0 72 Q(xit.)-.15 E
0 Cg EP
%%Page: 86 86
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(<p><dt><b>\255</b><b>w</b><dd>)0 12 Q
(Ask for con\214rmation for e)0 24 Q -.15(ve)-.25 G(ry action.).15 E
(<p><dt><b>\255</b><b>X</b><i></i><i> \214lename</i><dd>)0 36 Q
(Read a list of e)0 48 Q(xclusion patterns from the speci\214ed \214le.)
-.15 E(See)0 60 Q(<b>\255</b><b>-e)0 72 Q(xclude</b>)-.15 E 0 Cg EP
%%Page: 87 87
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(for more information about the handling of e)0
12 Q(xclusions.)-.15 E(<p><dt><b>\255</b><b>y</b><dd>)0 24 Q
(\(c mode only\))0 36 Q(Compress the resulting archi)0 48 Q .3 -.15
(ve w)-.25 H(ith).15 E(<a href="../html1/bzip2.html">bzip2\(1\)</a>.)0
60 Q(In e)0 72 Q(xtract or list modes, this option is ignored.)-.15 E 0
Cg EP
%%Page: 88 88
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(Note that, unlik)0 12 Q 2.5(eo)-.1 G(ther)-2.5 E
(<b>tar</b>)0 24 Q
(implementations, this implementation recognizes bzip2 compression)0 36
Q(automatically when reading archi)0 48 Q -.15(ve)-.25 G(s.).15 E
(<p><dt><b>\255</b><b>z</b><dd>)0 60 Q(\(c mode only\))0 72 Q 0 Cg EP
%%Page: 89 89
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(Compress the resulting archi)0 12 Q .3 -.15
(ve w)-.25 H(ith).15 E(<a href="../html1/gzip.html">gzip\(1\)</a>.)0 24
Q(In e)0 36 Q(xtract or list modes, this option is ignored.)-.15 E
(Note that, unlik)0 48 Q 2.5(eo)-.1 G(ther)-2.5 E(<b>tar</b>)0 60 Q
(implementations, this implementation recognizes gzip compression)0 72 Q
0 Cg EP
%%Page: 90 90
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(automatically when reading archi)0 12 Q -.15(ve)
-.25 G(s.).15 E(<p><dt><b>\255</b><b>Z</b><dd>)0 24 Q(\(c mode only\))0
36 Q(Compress the resulting archi)0 48 Q .3 -.15(ve w)-.25 H(ith).15 E
(<a href="../html1/compress.html">compress\(1\)</a>.)0 60 Q(In e)0 72 Q
(xtract or list modes, this option is ignored.)-.15 E 0 Cg EP
%%Page: 91 91
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(Note that, unlik)0 12 Q 2.5(eo)-.1 G(ther)-2.5 E
(<b>tar</b>)0 24 Q
(implementations, this implementation recognizes compress compression)0
36 Q(automatically when reading archi)0 48 Q -.15(ve)-.25 G(s.).15 E
(</dl>)0 60 Q(<h3 id="EXIT ST)36 72 Q -1.11(AT)-.93 G(US">)1.11 E 0 Cg
EP
%%Page: 92 92
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(EXIT ST)36 12 Q -1.11(AT)-.93 G(US)1.11 E(</h3>)
36 24 Q(<h3 id="ENVIR)36 36 Q(ONMENT">)-.4 E(ENVIR)36 48 Q(ONMENT)-.4 E
(</h3>)36 60 Q(The follo)0 72 Q(wing en)-.25 E(vironment v)-.4 E
(ariables af)-.25 E(fect the e)-.25 E -.15(xe)-.15 G(cution of).15 E 0
Cg EP
%%Page: 93 93
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(<b>:</b>)0 12 Q(<dl compact>)0 24 Q
(<p><dt><code></code><code>LANG</code><dd>)0 36 Q(The locale to use.)0
48 Q(See)0 60 Q(<a href="../html7/en)0 72 Q(viron.html">en)-.4 E
(viron\(7\)</a>)-.4 E 0 Cg EP
%%Page: 94 94
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(for more information.)0 12 Q
(<p><dt><code></code><code>T)0 24 Q(APE</code><dd>)-.93 E(The def)0 36 Q
(ault tape de)-.1 E(vice.)-.25 E(The)0 48 Q(<b>\255</b><b>f</b>)0 60 Q
(option o)0 72 Q -.15(ve)-.15 G(rrides this.).15 E 0 Cg EP
%%Page: 95 95
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(<p><dt><code></code><code>TZ</code><dd>)0 12 Q
(The timezone to use when displaying dates.)0 24 Q(See)0 36 Q
(<a href="../html7/en)0 48 Q(viron.html">en)-.4 E(viron\(7\)</a>)-.4 E
(for more information.)0 60 Q(</dl>)0 72 Q 0 Cg EP
%%Page: 96 96
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(<h3 id="FILES">)36 12 Q(FILES)36 24 Q(</h3>)36
36 Q(<dl compact>)0 48 Q(<p><dt><code></code><code>/de)0 60 Q
(v/sa0</code><dd>)-.25 E(The def)0 72 Q(ault tape de)-.1 E
(vice, if not o)-.25 E -.15(ve)-.15 G(rridden by the).15 E 0 Cg EP
%%Page: 97 97
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(<code></code><code>T)0 12 Q(APE</code>)-.93 E
(en)0 24 Q(vironment v)-.4 E(ariable or the)-.25 E(<b>\255</b><b>f</b>)0
36 Q(option.)0 48 Q(</dl>)0 60 Q(<h3 id="EXAMPLES">)36 72 Q 0 Cg EP
%%Page: 98 98
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(EXAMPLES)36 12 Q(</h3>)36 24 Q(The follo)0 36 Q
(wing creates a ne)-.25 E 2.5(wa)-.25 G(rchi)-2.5 E -.15(ve)-.25 G
(called)0 48 Q(<i></i><i>\214le.tar)0 60 Q(.gz</i>)-.55 E
(that contains tw)0 72 Q 2.5<6f8c>-.1 G(les)-2.5 E 0 Cg EP
%%Page: 99 99
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(<i></i><i>source.c</i>)0 12 Q(and)0 24 Q
(<i></i><i>source.h</i>:)0 36 Q(<br>)0 48 Q
(&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;)0 60 Q
(<code></code><b>Fl</b><b>czf</b><code></code><code> \214le.tar)0 72 Q(\
.gz</code><code></code><code> source.c</code><code></code><code> source\
.h</code>)-.55 E 0 Cg EP
%%Page: 100 100
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(<br>)0 12 Q(<p>)36 24 Q 1.6 -.8(To v)0 36 T(ie)
.8 E 2.5(wad)-.25 G(etailed table of contents for this)-2.5 E(archi)0 48
Q -.15(ve)-.25 G(:).15 E(<br>)0 60 Q
(&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;)0 72 Q 0 Cg EP
%%Page: 101 101
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF
(<code></code><b>Fl</b><b>tvf</b><code></code><code> \214le.tar)0 12 Q
(.gz</code>)-.55 E(<br>)0 24 Q(<p>)36 36 Q 1.6 -.8(To e)0 48 T
(xtract all entries from the archi).65 E .3 -.15(ve o)-.25 H(n).15 E
(the def)0 60 Q(ault tape dri)-.1 E -.15(ve)-.25 G(:).15 E(<br>)0 72 Q 0
Cg EP
%%Page: 102 102
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;)0 12 Q
(<code></code><b>Fl</b><b>x</b>)0 24 Q(<br>)0 36 Q(<p>)36 48 Q 1.6 -.8
(To e)0 60 T(xamine the contents of an ISO 9660 cdrom image:).65 E(<br>)
0 72 Q 0 Cg EP
%%Page: 103 103
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;)0 12 Q
(<code></code><b>Fl</b><b>tf</b><code></code><code> image.iso</code>)0
24 Q(<br>)0 36 Q(<p>)36 48 Q 1.6 -.8(To m)0 60 T .3 -.15(ove \214).8 H
(le hierarchies, in).15 E -.2(vo)-.4 G -.1(ke).2 G(<b>tar</b>)0 72 Q 0
Cg EP
%%Page: 104 104
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(as)0 12 Q(<br>)0 24 Q
(&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;)0 36 Q(<code></code><b>Fl</b><b>c\
f</b><code></code><code> -</code><b> \255</b><b>C</b><code></code><code\
> srcdir .</code><code> |</code><b>Fl</b><b> xpf</b><code></code><code>\
 -</code><b> \255</b><b>C</b><code></code><code> destdir</code>)0 48 Q
(<br>)0 60 Q(or more traditionally)0 72 Q 0 Cg EP
%%Page: 105 105
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(<br>)0 12 Q
(&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;)0 24 Q(<code></code><code>cd</cod\
e><code> srcdir</code><code> ;</code><b>Fl</b><b> cf</b><code></code><c\
ode> - .</code><code> |</code>\(<code> cd</code><code> destdir</code><c\
ode> ;</code><b>Fl</b><b> xpf</b><code></code><code> -</code>\))0 36 Q
(<br>)0 48 Q(<p>)36 60 Q
(In create mode, the list of \214les and directories to be archi)0 72 Q
-.15(ve)-.25 G(d).15 E 0 Cg EP
%%Page: 106 106
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF
(can also include directory change instructions of the form)0 12 Q
(<b></b><b>-C</b><code></code><code>foo/baz</code>)0 24 Q(and archi)0 36
Q .3 -.15(ve i)-.25 H(nclusions of the form).15 E
(<b></b><b>@@</b><code></code><code>archi)0 48 Q -.15(ve)-.25 G
(-\214le</code>.).15 E -.15(Fo)0 60 S 2.5(re).15 G
(xample, the command line)-2.65 E(<br>)0 72 Q 0 Cg EP
%%Page: 107 107
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;)0 12 Q(<co\
de></code><b>Fl</b><b>c</b><b> \255</b><b>f</b><code></code><code> ne)0
24 Q -.65(w.)-.25 G(tar</code><code></code><code> foo1</code><b></b><b>\
 @@</b><code></code><code>old.tgz</code><b></b><b> -C</b><code></code><c\
ode>/tmp</code><code></code><code> foo2</code>).65 E(<br>)0 36 Q
(will create a ne)0 48 Q 2.5(wa)-.25 G(rchi)-2.5 E -.15(ve)-.25 G
(<code></code><code>ne)0 60 Q -.65(w.)-.25 G(tar</code>.).65 E
(<b>tar</b>)0 72 Q 0 Cg EP
%%Page: 108 108
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(will read the \214le)0 12 Q
(<code></code><code>foo1</code>)0 24 Q
(from the current directory and add it to the output archi)0 36 Q -.15
(ve)-.25 G(.).15 E(It will then read each entry from)0 48 Q
(<code></code><code>old.tgz</code>)0 60 Q
(and add those entries to the output archi)0 72 Q -.15(ve)-.25 G(.).15 E
0 Cg EP
%%Page: 109 109
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(Finally)0 12 Q 2.5(,i)-.65 G 2.5(tw)-2.5 G
(ill switch to the)-2.5 E(<code></code><code>/tmp</code>)0 24 Q
(directory and add)0 36 Q(<code></code><code>foo2</code>)0 48 Q
(to the output archi)0 60 Q -.15(ve)-.25 G(.).15 E(<p>)36 72 Q 0 Cg EP
%%Page: 110 110
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(An input \214le in)0 12 Q
(<a href="../html5/mtree.html">mtree\(5\)</a>)0 24 Q
(format can be used to create an output archi)0 36 Q .3 -.15(ve w)-.25 H
(ith arbitrary o).15 E(wnership,)-.25 E(permissions, or names that dif)0
48 Q(fer from e)-.25 E(xisting data on disk:)-.15 E(<p>)36 60 Q(<br>)0
72 Q 0 Cg EP
%%Page: 111 111
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;)0 12 Q
(<code></code><code>$</code><code> cat</code><code> input.mtree</code>)0
24 Q(<br>)0 36 Q(&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;)0 48 Q
(<code></code><code>#mtree</code>)0 60 Q(<br>)0 72 Q 0 Cg EP
%%Page: 112 112
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;)0 12 Q(<co\
de></code><code>usr/bin</code><code> uid=0</code><code> gid=0</code><co\
de> mode=0755</code><code> type=dir</code>)0 24 Q(<br>)0 36 Q
(&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;)0 48 Q(<code></code><code>usr/bin\
/ls</code><code> uid=0</code><code> gid=0</code><code> mode=0755</code>\
<code> type=\214le</code><code> content=myls</code>)0 60 Q(<br>)0 72 Q 0
Cg EP
%%Page: 113 113
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;)0 12 Q(<co\
de></code><code>$</code><code> tar</code><code> -cvf</code><code> outpu\
t.tar</code><code> @@input.mtree</code>)0 24 Q(<br>)0 36 Q(<p>)36 48 Q
(The)0 60 Q(<b>\255</b><b>-ne)0 72 Q(wer</b>)-.25 E 0 Cg EP
%%Page: 114 114
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(and)0 12 Q(<b>\255</b><b>-ne)0 24 Q(wer)-.25 E
(-mtime</b>)-.2 E(switches accept a v)0 36 Q
(ariety of common date and time speci\214cations, including)-.25 E -.74
(``)0 48 S(12 Mar 2005 7:14:29pm').74 E(',)-.74 E -.74(``)0 60 S
(2005-03-12 19:14').74 E(',)-.74 E -.74(``)0 72 S 2.5(5m).74 G
(inutes ago')-2.5 E(',)-.74 E 0 Cg EP
%%Page: 115 115
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(and)0 12 Q -.74(``)0 24 S(19:14 PST May 1').74 E
('.)-.74 E(<p>)36 36 Q(The)0 48 Q(<b>\255</b><b>-options</b>)0 60 Q(ar)0
72 Q(gument can be used to control v)-.18 E(arious details of archi)-.25
E .3 -.15(ve g)-.25 H(eneration).15 E 0 Cg EP
%%Page: 116 116
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(or reading.)0 12 Q -.15(Fo)0 24 S 2.5(re).15 G
(xample, you can generate mtree output which only contains)-2.65 E
(<b></b><b>type</b><b></b>,<b> time</b>,)0 36 Q(and)0 48 Q
(<b></b><b>uid</b>)0 60 Q -.1(ke)0 72 S(yw)-.05 E(ords:)-.1 E 0 Cg EP
%%Page: 117 117
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(<br>)0 12 Q
(&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;)0 24 Q(<code></code><b>Fl</b><b>c\
f</b><code></code><code> \214le.tar</code><b> \255</b><b>-format=mtree<\
/b><b> \255</b><b>-options='!all,type,time,uid'</b><code></code><code> \
dir</code>)0 36 Q(<br>)0 48 Q(or you can set the compression le)0 60 Q
-.15(ve)-.25 G 2.5(lu).15 G(sed by gzip or xz compression:)-2.5 E(<br>)0
72 Q 0 Cg EP
%%Page: 118 118
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;)0 12 Q(<co\
de></code><b>Fl</b><b>czf</b><code></code><code> \214le.tar</code><b> \
\255</b><b>-options='compression-le)0 24 Q -.15(ve)-.25 G(l=9'</b>.).15
E(<br>)0 36 Q -.15(Fo)0 48 S 2.5(rm).15 G(ore details, see the e)-2.5 E
(xplanation of the)-.15 E(<b>archi)0 60 Q -.15(ve)-.25 G
(_read_set_options</b>\(<code></code>\)).15 E(and)0 72 Q 0 Cg EP
%%Page: 119 119
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(<b>archi)0 12 Q -.15(ve)-.25 G
(_write_set_options</b>\(<code></code>\)).15 E
(API calls that are described in)0 24 Q(<a href="../html3/archi)0 36 Q
-.15(ve)-.25 G(_read.html">archi).15 E -.15(ve)-.25 G(_read\(3\)</a>).15
E(and)0 48 Q(<a href="../html3/archi)0 60 Q -.15(ve)-.25 G
(_write.html">archi).15 E -.15(ve)-.25 G(_write\(3\)</a>.).15 E
(<h3 id="COMP)36 72 Q -1.11(AT)-.92 G(IBILITY">)1.11 E 0 Cg EP
%%Page: 120 120
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(COMP)36 12 Q -1.11(AT)-.92 G(IBILITY)1.11 E
(</h3>)36 24 Q(The b)0 36 Q(undled-ar)-.2 E
(guments format is supported for compatibility)-.18 E
(with historic implementations.)0 48 Q(It consists of an initial w)0 60
Q(ord \(with no leading - character\) in which)-.1 E
(each character indicates an option.)0 72 Q 0 Cg EP
%%Page: 121 121
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(Ar)0 12 Q(guments follo)-.18 E 2.5(wa)-.25 G 2.5
(ss)-2.5 G(eparate w)-2.5 E(ords.)-.1 E(The order of the ar)0 24 Q
(guments must match the order)-.18 E
(of the corresponding characters in the b)0 36 Q(undled command w)-.2 E
(ord.)-.1 E -.15(Fo)0 48 S 2.5(re).15 G(xample,)-2.65 E(<br>)0 60 Q
(&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;)0 72 Q 0 Cg EP
%%Page: 122 122
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(<code></code><b>Cm</b><b>tbf</b><b> 32</b><code\
></code><code> \214le.tar</code>)0 12 Q(<br>)0 24 Q
(speci\214es three \215ags)0 36 Q(<b></b><b>t</b>,)0 48 Q
(<b></b><b>b</b>,)0 60 Q(and)0 72 Q 0 Cg EP
%%Page: 123 123
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(<b></b><b>f</b>.)0 12 Q(The)0 24 Q
(<b></b><b>b</b>)0 36 Q(and)0 48 Q(<b></b><b>f</b>)0 60 Q
(\215ags both require ar)0 72 Q(guments,)-.18 E 0 Cg EP
%%Page: 124 124
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(so there must be tw)0 12 Q 2.5(oa)-.1 G
(dditional items)-2.5 E(on the command line.)0 24 Q(The)0 36 Q
(<i></i><i>32</i>)0 48 Q(is the ar)0 60 Q(gument to the)-.18 E
(<b></b><b>b</b>)0 72 Q 0 Cg EP
%%Page: 125 125
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(\215ag, and)0 12 Q(<i></i><i>\214le.tar</i>)0 24
Q(is the ar)0 36 Q(gument to the)-.18 E(<b></b><b>f</b>)0 48 Q(\215ag.)0
60 Q(<p>)36 72 Q 0 Cg EP
%%Page: 126 126
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(The mode options c, r)0 12 Q 2.5(,t)-.4 G 2.5
(,u)-2.5 G 2.5(,a)-2.5 G(nd x and the options)-2.5 E(b, f, l, m, o, v)0
24 Q 2.5(,a)-.65 G(nd w comply with SUSv2.)-2.5 E(<p>)36 36 Q -.15(Fo)0
48 S 2.5(rm).15 G(aximum portability)-2.5 E 2.5(,s)-.65 G
(cripts that in)-2.5 E -.2(vo)-.4 G -.1(ke).2 G(<b>tar</b>)0 60 Q
(should use the b)0 72 Q(undled-ar)-.2 E(gument format abo)-.18 E -.15
(ve)-.15 G 2.5(,s).15 G(hould limit)-2.5 E 0 Cg EP
%%Page: 127 127
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(themselv)0 12 Q(es to the)-.15 E
(<b></b><b>c</b>,)0 24 Q(<b></b><b>t</b>,)0 36 Q(and)0 48 Q
(<b></b><b>x</b>)0 60 Q(modes, and the)0 72 Q 0 Cg EP
%%Page: 128 128
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(<b></b><b>b</b>,)0 12 Q(<b></b><b>f</b>,)0 24 Q
(<b></b><b>m</b>,)0 36 Q(<b></b><b>v</b>,)0 48 Q(and)0 60 Q
(<b></b><b>w</b>)0 72 Q 0 Cg EP
%%Page: 129 129
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(options.)0 12 Q(<p>)36 24 Q
(Additional long options are pro)0 36 Q(vided to impro)-.15 E .3 -.15
(ve c)-.15 H(ompatibility with other).15 E(tar implementations.)0 48 Q
(<h3 id="SECURITY">)36 60 Q(SECURITY)36 72 Q 0 Cg EP
%%Page: 130 130
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(</h3>)36 12 Q
(Certain security issues are common to man)0 24 Q 2.5(ya)-.15 G(rchi)
-2.5 E(ving programs, including)-.25 E(<b>.</b>)0 36 Q(In particular)0
48 Q 2.5(,c)-.4 G(arefully-crafted archi)-2.5 E -.15(ve)-.25 G 2.5(sc)
.15 G(an request that)-2.5 E(<b>tar</b>)0 60 Q -.15(ex)0 72 S
(tract \214les to locations outside of the tar).15 E(get directory)-.18
E(.)-.65 E 0 Cg EP
%%Page: 131 131
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF
(This can potentially be used to cause unwitting users to o)0 12 Q -.15
(ve)-.15 G(rwrite).15 E(\214les the)0 24 Q 2.5(yd)-.15 G
(id not intend to o)-2.5 E -.15(ve)-.15 G(rwrite.).15 E(If the archi)0
36 Q .3 -.15(ve i)-.25 H 2.5(sb).15 G(eing e)-2.5 E
(xtracted by the superuser)-.15 E 2.5(,a)-.4 G .3 -.15(ny \214)-2.5 H
(le).15 E(on the system can potentially be o)0 48 Q -.15(ve)-.15 G
(rwritten.).15 E(There are three w)0 60 Q(ays this can happen.)-.1 E
(Although)0 72 Q 0 Cg EP
%%Page: 132 132
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(<b>tar</b>)0 12 Q(has mechanisms to protect ag)0
24 Q(ainst each one,)-.05 E(sa)0 36 Q(vvy users should be a)-.2 E -.1
(wa)-.15 G(re of the implications:).1 E(<ul>)0 48 Q(<p><li>)0 60 Q
(Archi)0 72 Q .3 -.15(ve e)-.25 H(ntries can ha).15 E .3 -.15(ve a)-.2 H
(bsolute pathnames.).15 E 0 Cg EP
%%Page: 133 133
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(By def)0 12 Q(ault,)-.1 E(<b>tar</b>)0 24 Q
(remo)0 36 Q -.15(ve)-.15 G 2.5(st).15 G(he leading)-2.5 E
(<code></code><code>/</code>)0 48 Q
(character from \214lenames before restoring them to guard ag)0 60 Q
(ainst this problem.)-.05 E(<p><li>)0 72 Q 0 Cg EP
%%Page: 134 134
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(Archi)0 12 Q .3 -.15(ve e)-.25 H(ntries can ha)
.15 E .3 -.15(ve p)-.2 H(athnames that include).15 E
(<code></code><code>..</code>)0 24 Q(components.)0 36 Q(By def)0 48 Q
(ault,)-.1 E(<b>tar</b>)0 60 Q(will not e)0 72 Q
(xtract \214les containing)-.15 E 0 Cg EP
%%Page: 135 135
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(<code></code><code>..</code>)0 12 Q
(components in their pathname.)0 24 Q(<p><li>)0 36 Q(Archi)0 48 Q .3
-.15(ve e)-.25 H(ntries can e).15 E(xploit symbolic links to restore)
-.15 E(\214les to other directories.)0 60 Q(An archi)0 72 Q .3 -.15
(ve c)-.25 H(an restore a symbolic link to another directory).15 E(,)
-.65 E 0 Cg EP
%%Page: 136 136
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF
(then use that link to restore a \214le into that directory)0 12 Q(.)
-.65 E 1.6 -.8(To g)0 24 T(uard ag).8 E(ainst this,)-.05 E(<b>tar</b>)0
36 Q(checks each e)0 48 Q(xtracted path for symlinks.)-.15 E
(If the \214nal path element is a symlink, it will be remo)0 60 Q -.15
(ve)-.15 G(d).15 E(and replaced with the archi)0 72 Q .3 -.15(ve e)-.25
H(ntry).15 E(.)-.65 E 0 Cg EP
%%Page: 137 137
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(If)0 12 Q(<b>\255</b><b>U</b>)0 24 Q
(is speci\214ed, an)0 36 Q 2.5(yi)-.15 G
(ntermediate symlink will also be unconditionally remo)-2.5 E -.15(ve)
-.15 G(d.).15 E(If neither)0 48 Q(<b>\255</b><b>U</b>)0 60 Q(nor)0 72 Q
0 Cg EP
%%Page: 138 138
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(<b>\255</b><b>P</b>)0 12 Q(is speci\214ed,)0 24
Q(<b>tar</b>)0 36 Q(will refuse to e)0 48 Q(xtract the entry)-.15 E(.)
-.65 E(</ul>)0 60 Q 1.6 -.8(To p)0 72 T
(rotect yourself, you should be w).8 E(ary of an)-.1 E 2.5(ya)-.15 G
(rchi)-2.5 E -.15(ve)-.25 G 2.5(st).15 G(hat)-2.5 E 0 Cg EP
%%Page: 139 139
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(come from untrusted sources.)0 12 Q -1.1(Yo)0 24
S 2.5(us)1.1 G(hould e)-2.5 E(xamine the contents of an archi)-.15 E .3
-.15(ve w)-.25 H(ith).15 E(<br>)0 36 Q
(&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;)0 48 Q
(<code></code><b>Fl</b><b>tf</b><code></code><code> \214lename</code>)0
60 Q(<br>)0 72 Q 0 Cg EP
%%Page: 140 140
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(before e)0 12 Q(xtraction.)-.15 E -1.1(Yo)0 24 S
2.5(us)1.1 G(hould use the)-2.5 E(<b>\255</b><b>k</b>)0 36 Q
(option to ensure that)0 48 Q(<b>tar</b>)0 60 Q(will not o)0 72 Q -.15
(ve)-.15 G(rwrite an).15 E 2.5(ye)-.15 G(xisting \214les or the)-2.65 E
0 Cg EP
%%Page: 141 141
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(<b>\255</b><b>U</b>)0 12 Q(option to remo)0 24 Q
.3 -.15(ve a)-.15 H .3 -.15(ny p).15 H(re-e).15 E(xisting \214les.)-.15
E -1.1(Yo)0 36 S 2.5(us)1.1 G(hould generally not e)-2.5 E(xtract archi)
-.15 E -.15(ve)-.25 G 2.5(sw).15 G(hile running with super)-2.5 E(-user)
-.2 E(pri)0 48 Q(vile)-.25 E(ges.)-.15 E(Note that the)0 60 Q
(<b>\255</b><b>P</b>)0 72 Q 0 Cg EP
%%Page: 142 142
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(option to)0 12 Q(<b>tar</b>)0 24 Q
(disables the security checks abo)0 36 Q .3 -.15(ve a)-.15 H(nd allo).15
E(ws you to e)-.25 E(xtract)-.15 E(an archi)0 48 Q .3 -.15(ve w)-.25 H
(hile preserving an).15 E 2.5(ya)-.15 G(bsolute pathnames,)-2.5 E
(<code></code><code>..</code>)0 60 Q
(components, or symlinks to other directories.)0 72 Q 0 Cg EP
%%Page: 143 143
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(<h3 id="SEE ALSO">)36 12 Q(SEE ALSO)36 24 Q
(</h3>)36 36 Q(<a href="../html1/bzip2.html">bzip2\(1\)</a>,)0 48 Q
(<a href="../html1/compress.html">compress\(1\)</a>,)0 60 Q
(<a href="../html1/cpio.html">cpio\(1\)</a>,)0 72 Q 0 Cg EP
%%Page: 144 144
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(<a href="../html1/gzip.html">gzip\(1\)</a>,)0 12
Q(<a href="../html1/mt.html">mt\(1\)</a>,)0 24 Q
(<a href="../html1/pax.html">pax\(1\)</a>,)0 36 Q
(<a href="../html1/shar)0 48 Q(.html">shar\(1\)</a>,)-.55 E
(<a href="../html3/libarchi)0 60 Q -.15(ve)-.25 G(.html">libarchi).15 E
-.15(ve)-.25 G(\(3\)</a>,).15 E(<a href="../html5/libarchi)0 72 Q -.15
(ve)-.25 G(-formats.html">libarchi).15 E -.15(ve)-.25 G
(-formats\(5\)</a>,).15 E 0 Cg EP
%%Page: 145 145
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(<a href="../html5/tar)0 12 Q
(.html">tar\(5\)</a>)-.55 E(<h3 id="ST)36 24 Q(AND)-.93 E(ARDS">)-.4 E
(ST)36 36 Q(AND)-.93 E(ARDS)-.4 E(</h3>)36 48 Q
(There is no current POSIX standard for the tar command; it appeared)0
60 Q(in)0 72 Q 0 Cg EP
%%Page: 146 146
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(ISO/IEC 9945-1:1996 \(`)2.5 12 Q
(`<font size="-1">POSIX</font>.1')-.74 E('\))-.74 E -.2(bu)0 24 S 2.5
(tw).2 G(as dropped from)-2.6 E(IEEE Std 1003.1-2001 \(`)2.5 36 Q
(`<font size="-1">POSIX</font>.1')-.74 E('\) .)-.74 E
(The options used by this implementation were de)0 48 Q -.15(ve)-.25 G
(loped by surv).15 E -.15(ey)-.15 G(ing a).15 E(number of e)0 60 Q
(xisting tar implementations as well as the old POSIX speci\214cation)
-.15 E(for tar and the current POSIX speci\214cation for pax.)0 72 Q 0
Cg EP
%%Page: 147 147
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(<p>)36 12 Q
(The ustar and pax interchange \214le formats are de\214ned by)0 24 Q
(IEEE Std 1003.1-2001 \(`)2.5 36 Q(`<font size="-1">POSIX</font>.1')-.74
E('\))-.74 E(for the pax command.)0 48 Q(<h3 id="HIST)36 60 Q(OR)-.18 E
(Y">)-.65 E(HIST)36 72 Q(OR)-.18 E(Y)-.65 E 0 Cg EP
%%Page: 148 148
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(</h3>)36 12 Q(A)0 24 Q(<b>tar</b>)0 36 Q
(command appeared in Se)0 48 Q -.15(ve)-.25 G(nth Edition Unix, which w)
.15 E(as released in January)-.1 E 2.5(,1)-.65 G(979.)-2.5 E(There ha)0
60 Q .3 -.15(ve b)-.2 H(een numerous other implementations,).15 E(man)0
72 Q 2.5(yo)-.15 G 2.5(fw)-2.5 G(hich e)-2.5 E
(xtended the \214le format.)-.15 E 0 Cg EP
%%Page: 149 149
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(John Gilmore')0 12 Q(s)-.55 E(<b>pdtar</b>)0 24
Q(public-domain implementation \(circa No)0 36 Q -.15(ve)-.15 G(mber).15
E 2.5(,1)-.4 G(987\))-2.5 E -.1(wa)0 48 S 2.5(sq).1 G
(uite in\215uential, and formed the basis of GNU tar)-2.5 E(.)-.55 E
(GNU tar w)0 60 Q(as included as the standard system tar)-.1 E(in)0 72 Q
0 Cg EP
%%Page: 150 150
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(FreeBSD)0 12 Q(be)0 24 Q(ginning with)-.15 E
(FreeBSD1.0.)0 36 Q(<p>)36 48 Q
(This is a complete re-implementation based on the)0 60 Q
(<a href="../html3/libarchi)0 72 Q -.15(ve)-.25 G(.html">libarchi).15 E
-.15(ve)-.25 G(\(3\)</a>).15 E 0 Cg EP
%%Page: 151 151
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(library)0 12 Q(.)-.65 E(<h3 id="B)36 24 Q(UGS">)
-.1 E -.1(BU)36 36 S(GS).1 E(</h3>)36 48 Q(This program follo)0 60 Q(ws)
-.25 E(ISO/IEC 9945-1:1996 \(`)2.5 72 Q
(`<font size="-1">POSIX</font>.1')-.74 E('\))-.74 E 0 Cg EP
%%Page: 152 152
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(for the de\214nition of the)0 12 Q
(<b>\255</b><b>l</b>)0 24 Q(option.)0 36 Q(Note that GNU tar prior to v)
0 48 Q(ersion 1.15 treated)-.15 E(<b>\255</b><b>l</b>)0 60 Q(as a synon)
0 72 Q(ym for the)-.15 E 0 Cg EP
%%Page: 153 153
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(<b>\255</b><b>-one-\214le-system</b>)0 12 Q
(option.)0 24 Q(<p>)36 36 Q(The)0 48 Q
(<b>\255</b><b>C</b><code></code><code> dir</code>)0 60 Q
(option may dif)0 72 Q(fer from historic implementations.)-.25 E 0 Cg EP
%%Page: 154 154
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(<p>)36 12 Q(All archi)0 24 Q .3 -.15(ve o)-.25 H
(utput is written in correctly-sized blocks, e).15 E -.15(ve)-.25 G(n)
.15 E(if the output is being compressed.)0 36 Q
(Whether or not the last output block is padded to a full)0 48 Q
(block size v)0 60 Q(aries depending on the format and the)-.25 E
(output de)0 72 Q(vice.)-.25 E 0 Cg EP
%%Page: 155 155
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF -.15(Fo)0 12 S 2.5(rt).15 G
(ar and cpio formats, the last block of output is padded)-2.5 E
(to a full block size if the output is being)0 24 Q
(written to standard output or to a character or block de)0 36 Q
(vice such as)-.25 E 2.5(at)0 48 S(ape dri)-2.5 E -.15(ve)-.25 G(.).15 E
(If the output is being written to a re)0 60 Q
(gular \214le, the last block)-.15 E(will not be padded.)0 72 Q 0 Cg EP
%%Page: 156 156
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(Man)0 12 Q 2.5(yc)-.15 G(ompressors, including)
-2.5 E(<a href="../html1/gzip.html">gzip\(1\)</a>)0 24 Q(and)0 36 Q
(<a href="../html1/bzip2.html">bzip2\(1\)</a>,)0 48 Q
(complain about the null padding when decompressing an archi)0 60 Q .3
-.15(ve c)-.25 H(reated by).15 E(<b>,</b>)0 72 Q 0 Cg EP
%%Page: 157 157
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(although the)0 12 Q 2.5(ys)-.15 G(till e)-2.5 E
(xtract it correctly)-.15 E(.)-.65 E(<p>)36 24 Q
(The compression and decompression is implemented internally)0 36 Q 2.5
(,s)-.65 G(o)-2.5 E(there may be insigni\214cant dif)0 48 Q
(ferences between the compressed output)-.25 E(generated by)0 60 Q(<br>)
0 72 Q 0 Cg EP
%%Page: 158 158
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;)0 12 Q(<co\
de></code><b>Fl</b><b>czf</b><code></code><code> -</code><code> \214le<\
/code>)0 24 Q(<br>)0 36 Q(and that generated by)0 48 Q(<br>)0 60 Q
(&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;)0 72 Q 0 Cg EP
%%Page: 159 159
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(<code></code><b>Fl</b><b>cf</b><code></code><co\
de> -</code><code> \214le</code><code> |</code><b>gzip</b>)0 12 Q(<br>)0
24 Q(<p>)36 36 Q(The def)0 48 Q(ault should be to read and write archi)
-.1 E -.15(ve)-.25 G 2.5(st).15 G 2.5(ot)-2.5 G(he standard I/O paths,)
-2.5 E -.2(bu)0 60 S 2.5(tt).2 G
(radition \(and POSIX\) dictates otherwise.)-2.5 E(<p>)36 72 Q 0 Cg EP
%%Page: 160 160
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(The)0 12 Q(<b></b><b>r</b>)0 24 Q(and)0 36 Q
(<b></b><b>u</b>)0 48 Q(modes require that the archi)0 60 Q .3 -.15
(ve b)-.25 H 2.5(eu).15 G(ncompressed)-2.5 E(and located in a re)0 72 Q
(gular \214le on disk.)-.15 E 0 Cg EP
%%Page: 161 161
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(Other archi)0 12 Q -.15(ve)-.25 G 2.5(sc).15 G
(an be modi\214ed using)-2.5 E(<b></b><b>c</b>)0 24 Q(mode with the)0 36
Q(<code></code><code>@@archi)0 48 Q -.15(ve)-.25 G(-\214le</code>).15 E
-.15(ex)0 60 S(tension.).15 E(<p>)36 72 Q 0 Cg EP
%%Page: 162 162
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF 1.6 -.8(To a)0 12 T(rchi).8 E .3 -.15(ve a \214)
-.25 H(le called).15 E(<code></code><code>@@foo</code>)0 24 Q(or)0 36 Q
(<code></code><code>-foo</code>)0 48 Q(you must specify it as)0 60 Q
(<code></code><code>./@@foo</code>)0 72 Q 0 Cg EP
%%Page: 163 163
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(or)0 12 Q(<code></code><code>./-foo</code>,)0 24
Q(respecti)0 36 Q -.15(ve)-.25 G(ly).15 E(.)-.65 E(<p>)36 48 Q
(In create mode, a leading)0 60 Q(<code></code><code>./</code>)0 72 Q 0
Cg EP
%%Page: 164 164
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(is al)0 12 Q -.1(wa)-.1 G(ys remo).1 E -.15(ve)
-.15 G(d.).15 E 2.5(Al)0 24 S(eading)-2.5 E(<code></code><code>/</code>)
0 36 Q(is stripped unless the)0 48 Q(<b>\255</b><b>P</b>)0 60 Q
(option is speci\214ed.)0 72 Q 0 Cg EP
%%Page: 165 165
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(<p>)36 12 Q
(There needs to be better support for \214le selection on both create)0
24 Q(and e)0 36 Q(xtract.)-.15 E(<p>)36 48 Q(There is not yet an)0 60 Q
2.5(ys)-.15 G(upport for multi-v)-2.5 E(olume archi)-.2 E -.15(ve)-.25 G
2.5(so).15 G 2.5(rf)-2.5 G(or archi)-2.5 E(ving)-.25 E(sparse \214les.)0
72 Q 0 Cg EP
%%Page: 166 166
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(<p>)36 12 Q(Con)0 24 Q -.15(ve)-.4 G
(rting between dissimilar archi).15 E .3 -.15(ve f)-.25 H
(ormats \(such as tar and cpio\) using the).15 E
(<b></b><b>@@</b><code></code><code>-</code>)0 36 Q(con)0 48 Q -.15(ve)
-.4 G(ntion can cause hard link information to be lost.).15 E
(\(This is a consequence of the incompatible w)0 60 Q(ays that dif)-.1 E
(ferent archi)-.25 E -.15(ve)-.25 G
(formats store hardlink information.\))0 72 Q 0 Cg EP
%%Page: 167 167
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(<p>)36 12 Q(There are alternati)0 24 Q .3 -.15
(ve l)-.25 H(ong options for man).15 E 2.5(yo)-.15 G 2.5(ft)-2.5 G
(he short options that)-2.5 E(are deliberately not documented.)0 36 Q
(</body>)0 48 Q(</html>)0 60 Q 0 Cg EP
%%Trailer
end
%%EOF
@


1.1.1.5
log
@Import libarchive-3.2.1:
- security fixes and other bugfixes
- support for multhreading in xz 5.2+
@
text
@d1 1838
a1838 1320
<!-- Creator     : groff version 1.22.3 -->
<!-- CreationDate: Sun Jun 19 19:54:10 2016 -->
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta name="generator" content="groff -Thtml, see www.gnu.org">
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<meta name="Content-Style" content="text/css">
<style type="text/css">
       p       { margin-top: 0; margin-bottom: 0; vertical-align: top }
       pre     { margin-top: 0; margin-bottom: 0; vertical-align: top }
       table   { margin-top: 0; margin-bottom: 0; vertical-align: top }
       h1      { text-align: center }
</style>
<title></title>
</head>
<body>

<hr>


<p>TAR(1) BSD General Commands Manual TAR(1)</p>

<p style="margin-top: 1em"><b>NAME</b></p>

<p style="margin-left:6%;"><b>tar</b> &mdash; manipulate
tape archives</p>

<p style="margin-top: 1em"><b>SYNOPSIS</b></p>

<p style="margin-left:12%;"><b>tar</b>
[<i>bundled-flags&nbsp;</i>&lang;</p>

<p>args &rang; ] [&lang; <i><br>
file</i> &rang; &nbsp;|&nbsp;&lang; <i><br>
pattern</i> &rang; &nbsp;...]</p>

<p style="margin-left:12%;"><b>tar</b> {<b>&minus;c</b>}
[<i>options</i>]
[<i>files&nbsp;</i>|&nbsp;<i>directories</i>] <b><br>
tar</b> {<b>&minus;r&nbsp;</b>|&nbsp;<b>&minus;u</b>}
<b>&minus;f</b> <i>archive-file</i> [<i>options</i>]
[<i>files&nbsp;</i>|&nbsp;<i>directories</i>] <b><br>
tar</b> {<b>&minus;t&nbsp;</b>|&nbsp;<b>&minus;x</b>}
[<i>options</i>] [<i>patterns</i>]</p>

<p style="margin-top: 1em"><b>DESCRIPTION</b></p>

<p style="margin-left:6%;"><b>tar</b> creates and
manipulates streaming archive files. This implementation can
extract from tar, pax, cpio, zip, jar, ar, xar, rpm, 7-zip,
and ISO 9660 cdrom images and can create tar, pax, cpio, ar,
zip, 7-zip, and shar archives.</p>

<p style="margin-left:6%; margin-top: 1em">The first
synopsis form shows a &rsquo;&rsquo;bundled&rsquo;&rsquo;
option word. This usage is provided for compatibility with
historical implementations. See COMPATIBILITY below for
details.</p>

<p style="margin-left:6%; margin-top: 1em">The other
synopsis forms show the preferred usage. The first option to
<b>tar</b> is a mode indicator from the following list:</p>

<p><b>&minus;c</b></p>

<p style="margin-left:17%; margin-top: 1em">Create a new
archive containing the specified items. The long option form
is <b>&minus;&minus;create</b>.</p>

<p><b>&minus;r</b></p>

<p style="margin-left:17%; margin-top: 1em">Like
<b>&minus;c</b>, but new entries are appended to the
archive. Note that this only works on uncompressed archives
stored in regular files. The <b>&minus;f</b> option is
required. The long option form is
<b>&minus;&minus;append</b>.</p>

<p><b>&minus;t</b></p>

<p style="margin-left:17%; margin-top: 1em">List archive
contents to stdout. The long option form is
<b>&minus;&minus;list</b>.</p>

<p><b>&minus;u</b></p>

<p style="margin-left:17%; margin-top: 1em">Like
<b>&minus;r</b>, but new entries are added only if they have
a modification date newer than the corresponding entry in
the archive. Note that this only works on uncompressed
archives stored in regular files. The <b>&minus;f</b> option
is required. The long form is
<b>&minus;&minus;update</b>.</p>

<p><b>&minus;x</b></p>

<p style="margin-left:17%; margin-top: 1em">Extract to disk
from the archive. If a file with the same name appears more
than once in the archive, each copy will be extracted, with
later copies overwriting (replacing) earlier copies. The
long option form is <b>&minus;&minus;extract</b>.</p>

<p style="margin-left:6%; margin-top: 1em">In
<b>&minus;c</b>, <b>&minus;r</b>, or <b>&minus;u</b> mode,
each specified file or directory is added to the archive in
the order specified on the command line. By default, the
contents of each directory are also archived.</p>

<p style="margin-left:6%; margin-top: 1em">In extract or
list mode, the entire command line is read and parsed before
the archive is opened. The pathnames or patterns on the
command line indicate which items in the archive should be
processed. Patterns are shell-style globbing patterns as
documented in tcsh(1).</p>

<p style="margin-top: 1em"><b>OPTIONS</b></p>

<p style="margin-left:6%;">Unless specifically stated
otherwise, options are applicable in all operating
modes.</p>

<p style="margin-top: 1em"><b>@@</b><i>archive</i></p>

<p style="margin-left:17%;">(c and r mode only) The
specified archive is opened and the entries in it will be
appended to the current archive. As a simple example,</p>

<p style="margin-left:24%;"><b>tar &minus;c &minus;f</b>
<i>- newfile</i> <b>@@</b><i>original.tar</i></p>

<p style="margin-left:17%;">writes a new archive to
standard output containing a file <i>newfile</i> and all of
the entries from <i>original.tar</i>. In contrast,</p>

<p style="margin-left:24%;"><b>tar &minus;c &minus;f</b>
<i>- newfile original.tar</i></p>

<p style="margin-left:17%;">creates a new archive with only
two entries. Similarly,</p>

<p style="margin-left:24%;"><b>tar &minus;czf</b> <i>-</i>
<b>&minus;&minus;format pax @@</b><i>-</i></p>

<p style="margin-left:17%;">reads an archive from standard
input (whose format will be determined automatically) and
converts it into a gzip-compressed pax-format archive on
stdout. In this way, <b>tar</b> can be used to convert
archives from one format to another.</p>

<p style="margin-top: 1em"><b>&minus;a</b>,
<b>&minus;&minus;auto-compress</b></p>

<p style="margin-left:17%;">(c mode only) Use the archive
suffix to decide a set of the format and the compressions.
As a simple example,</p>

<p style="margin-left:24%;"><b>tar &minus;a &minus;cf</b>
<i>archive.tgz source.c source.h</i></p>

<p style="margin-left:17%;">creates a new archive with
restricted pax format and gzip compression,</p>

<p style="margin-left:24%;"><b>tar &minus;a &minus;cf</b>
<i>archive.tar.bz2.uu source.c source.h</i></p>

<p style="margin-left:17%;">creates a new archive with
restricted pax format and bzip2 compression and uuencode
compression,</p>

<p style="margin-left:24%;"><b>tar &minus;a &minus;cf</b>
<i>archive.zip source.c source.h</i></p>

<p style="margin-left:17%;">creates a new archive with zip
format,</p>

<p style="margin-left:24%;"><b>tar &minus;a &minus;jcf</b>
<i>archive.tgz source.c source.h</i></p>

<p style="margin-left:17%;">ignores the
&rsquo;&rsquo;-j&rsquo;&rsquo; option, and creates a new
archive with restricted pax format and gzip compression,</p>

<p style="margin-left:24%;"><b>tar &minus;a &minus;jcf</b>
<i>archive.xxx source.c source.h</i></p>

<p style="margin-left:17%;">if it is unknown suffix or no
suffix, creates a new archive with restricted pax format and
bzip2 compression.</p>

<p style="margin-top: 1em"><b>&minus;B</b>,
<b>&minus;&minus;read-full-blocks</b></p>

<p style="margin-left:17%;">Ignored for compatibility with
other tar(1) implementations.</p>

<p style="margin-top: 1em"><b>&minus;b</b>
<i>blocksize</i>, <b>&minus;&minus;block-size</b>
<i>blocksize</i></p>

<p style="margin-left:17%;">Specify the block size, in
512-byte records, for tape drive I/O. As a rule, this
argument is only needed when reading from or writing to tape
drives, and usually not even then as the default block size
of 20 records (10240 bytes) is very common.</p>

<p style="margin-top: 1em"><b>&minus;C</b>
<i>directory</i>, <b>&minus;&minus;cd</b> <i>directory</i>,
<b>&minus;&minus;directory</b> <i>directory</i></p>

<p style="margin-left:17%;">In c and r mode, this changes
the directory before adding the following files. In x mode,
change directories after opening the archive but before
extracting entries from the archive.</p>

<p style="margin-top: 1em"><b>&minus;&minus;chroot</b></p>

<p style="margin-left:17%;">(x mode only) <b>chroot</b>()
to the current directory after processing any
<b>&minus;C</b> options and before extracting any files.</p>


<p style="margin-top: 1em"><b>&minus;&minus;clear-nochange-fflags</b></p>

<p style="margin-left:17%;">(x mode only) Before removing
file system objects to replace them, clear platform-specific
file flags that might prevent removal.</p>


<p style="margin-top: 1em"><b>&minus;&minus;disable-copyfile</b></p>

<p style="margin-left:17%;">Mac OS X specific. Disable the
use of copyfile(3).</p>

<p style="margin-top: 1em"><b>&minus;&minus;exclude</b>
<i>pattern</i></p>

<p style="margin-left:17%;">Do not process files or
directories that match the specified pattern. Note that
exclusions take precedence over patterns or filenames
specified on the command line.</p>

<p style="margin-top: 1em"><b>&minus;&minus;format</b>
<i>format</i></p>

<p style="margin-left:17%;">(c, r, u mode only) Use the
specified format for the created archive. Supported formats
include &rsquo;&rsquo;cpio&rsquo;&rsquo;,
&rsquo;&rsquo;pax&rsquo;&rsquo;,
&rsquo;&rsquo;shar&rsquo;&rsquo;, and
&rsquo;&rsquo;ustar&rsquo;&rsquo;. Other formats may also be
supported; see libarchive-formats(5) for more information
about currently-supported formats. In r and u modes, when
extending an existing archive, the format specified here
must be compatible with the format of the existing archive
on disk.</p>

<p style="margin-top: 1em"><b>&minus;f</b> <i>file</i>,
<b>&minus;&minus;file</b> <i>file</i></p>

<p style="margin-left:17%;">Read the archive from or write
the archive to the specified file. The filename can be
<i>-</i> for standard input or standard output. The default
varies by system; on FreeBSD, the default is
<i>/dev/sa0</i>; on Linux, the default is
<i>/dev/st0</i>.</p>

<p style="margin-top: 1em"><b>&minus;&minus;gid</b>
<i>id</i></p>

<p style="margin-left:17%;">Use the provided group id
number. On extract, this overrides the group id in the
archive; the group name in the archive will be ignored. On
create, this overrides the group id read from disk; if
<b>&minus;&minus;gname</b> is not also specified, the group
name will be set to match the group id.</p>

<p style="margin-top: 1em"><b>&minus;&minus;gname</b>
<i>name</i></p>

<p style="margin-left:17%;">Use the provided group name. On
extract, this overrides the group name in the archive; if
the provided group name does not exist on the system, the
group id (from the archive or from the
<b>&minus;&minus;gid</b> option) will be used instead. On
create, this sets the group name that will be stored in the
archive; the name will not be verified against the system
group database.</p>

<p style="margin-top: 1em"><b>&minus;H</b></p>

<p style="margin-left:17%; margin-top: 1em">(c and r mode
only) Symbolic links named on the command line will be
followed; the target of the link will be archived, not the
link itself.</p>

<p style="margin-top: 1em"><b>&minus;h</b></p>

<p style="margin-left:17%; margin-top: 1em">(c and r mode
only) Synonym for <b>&minus;L</b>.</p>

<p style="margin-top: 1em"><b>&minus;I</b></p>

<p style="margin-left:17%; margin-top: 1em">Synonym for
<b>&minus;T</b>.</p>

<p style="margin-top: 1em"><b>&minus;&minus;help</b></p>

<p style="margin-left:17%; margin-top: 1em">Show usage.</p>


<p style="margin-top: 1em"><b>&minus;&minus;hfsCompression</b></p>

<p style="margin-left:17%;">(x mode only) Mac OS X
specific(v10.6 or later). Compress extracted regular files
with HFS+ compression.</p>


<p style="margin-top: 1em"><b>&minus;&minus;ignore-zeros</b></p>

<p style="margin-left:17%;">An alias of
<b>&minus;&minus;options read_concatenated_archives</b> for
compatibility with GNU tar.</p>

<p style="margin-top: 1em"><b>&minus;&minus;include</b>
<i>pattern</i></p>

<p style="margin-left:17%;">Process only files or
directories that match the specified pattern. Note that
exclusions specified with <b>&minus;&minus;exclude</b> take
precedence over inclusions. If no inclusions are explicitly
specified, all entries are processed by default. The
<b>&minus;&minus;include</b> option is especially useful
when filtering archives. For example, the command</p>

<p style="margin-left:24%;"><b>tar &minus;c &minus;f</b>
<i>new.tar</i> <b>&minus;&minus;include=&rsquo;*foo*&rsquo;
@@</b><i>old.tgz</i></p>

<p style="margin-left:17%;">creates a new archive
<i>new.tar</i> containing only the entries from
<i>old.tgz</i> containing the string &rsquo;foo&rsquo;.</p>

<p style="margin-top: 1em"><b>&minus;J</b>,
<b>&minus;&minus;xz</b></p>

<p style="margin-left:17%;">(c mode only) Compress the
resulting archive with xz(1). In extract or list modes, this
option is ignored. Note that, unlike other <b>tar</b>
implementations, this implementation recognizes XZ
compression automatically when reading archives.</p>

<p style="margin-top: 1em"><b>&minus;j</b>,
<b>&minus;&minus;bzip</b>, <b>&minus;&minus;bzip2</b>,
<b>&minus;&minus;bunzip2</b></p>

<p style="margin-left:17%;">(c mode only) Compress the
resulting archive with bzip2(1). In extract or list modes,
this option is ignored. Note that, unlike other <b>tar</b>
implementations, this implementation recognizes bzip2
compression automatically when reading archives.</p>

<p style="margin-top: 1em"><b>&minus;k</b>,
<b>&minus;&minus;keep-old-files</b></p>

<p style="margin-left:17%;">(x mode only) Do not overwrite
existing files. In particular, if a file appears more than
once in an archive, later copies will not overwrite earlier
copies.</p>


<p style="margin-top: 1em"><b>&minus;&minus;keep-newer-files</b></p>

<p style="margin-left:17%;">(x mode only) Do not overwrite
existing files that are newer than the versions appearing in
the archive being extracted.</p>

<p style="margin-top: 1em"><b>&minus;L</b>,
<b>&minus;&minus;dereference</b></p>

<p style="margin-left:17%;">(c and r mode only) All
symbolic links will be followed. Normally, symbolic links
are archived as such. With this option, the target of the
link will be archived instead.</p>

<p style="margin-top: 1em"><b>&minus;l</b>,
<b>&minus;&minus;check-links</b></p>

<p style="margin-left:17%;">(c and r modes only) Issue a
warning message unless all links to each file are
archived.</p>

<p style="margin-top: 1em"><b>&minus;&minus;lrzip</b></p>

<p style="margin-left:17%;">(c mode only) Compress the
resulting archive with lrzip(1). In extract or list modes,
this option is ignored.</p>

<p style="margin-top: 1em"><b>&minus;&minus;lz4</b></p>

<p style="margin-left:17%; margin-top: 1em">(c mode only)
Compress the archive with lz4-compatible compression before
writing it. In input mode, this option is ignored; lz4
compression is recognized automatically on input.</p>

<p style="margin-top: 1em"><b>&minus;&minus;lzma</b></p>

<p style="margin-left:17%; margin-top: 1em">(c mode only)
Compress the resulting archive with the original LZMA
algorithm. Use of this option is discouraged and new
archives should be created with <b>&minus;&minus;xz</b>
instead. Note that, unlike other <b>tar</b> implementations,
this implementation recognizes LZMA compression
automatically when reading archives.</p>

<p style="margin-top: 1em"><b>&minus;&minus;lzop</b></p>

<p style="margin-left:17%; margin-top: 1em">(c mode only)
Compress the resulting archive with lzop(1). In extract or
list modes, this option is ignored.</p>

<p style="margin-top: 1em"><b>&minus;m</b>,
<b>&minus;&minus;modification-time</b></p>

<p style="margin-left:17%;">(x mode only) Do not extract
modification time. By default, the modification time is set
to the time stored in the archive.</p>

<p style="margin-top: 1em"><b>&minus;n</b>,
<b>&minus;&minus;norecurse</b>,
<b>&minus;&minus;no-recursion</b></p>

<p style="margin-left:17%;">(c, r, u modes only) Do not
recursively archive the contents of directories.</p>

<p style="margin-top: 1em"><b>&minus;&minus;newer</b>
<i>date</i></p>

<p style="margin-left:17%;">(c, r, u modes only) Only
include files and directories newer than the specified date.
This compares ctime entries.</p>


<p style="margin-top: 1em"><b>&minus;&minus;newer-mtime</b>
<i>date</i></p>

<p style="margin-left:17%;">(c, r, u modes only) Like
<b>&minus;&minus;newer</b>, except it compares mtime entries
instead of ctime entries.</p>

<p style="margin-top: 1em"><b>&minus;&minus;newer-than</b>
<i>file</i></p>

<p style="margin-left:17%;">(c, r, u modes only) Only
include files and directories newer than the specified file.
This compares ctime entries.</p>


<p style="margin-top: 1em"><b>&minus;&minus;newer-mtime-than</b>
<i>file</i></p>

<p style="margin-left:17%;">(c, r, u modes only) Like
<b>&minus;&minus;newer-than</b>, except it compares mtime
entries instead of ctime entries.</p>

<p style="margin-top: 1em"><b>&minus;&minus;nodump</b></p>

<p style="margin-left:17%;">(c and r modes only) Honor the
nodump file flag by skipping this file.</p>


<p style="margin-top: 1em"><b>&minus;&minus;nopreserveHFSCompression</b></p>

<p style="margin-left:17%;">(x mode only) Mac OS X
specific(v10.6 or later). Do not compress extracted regular
files which were compressed with HFS+ compression before
archived. By default, compress the regular files again with
HFS+ compression.</p>

<p style="margin-top: 1em"><b>&minus;&minus;null</b></p>

<p style="margin-left:17%; margin-top: 1em">(use with
<b>&minus;I</b> or <b>&minus;T</b>) Filenames or patterns
are separated by null characters, not by newlines. This is
often used to read filenames output by the
<b>&minus;print0</b> option to find(1).</p>


<p style="margin-top: 1em"><b>&minus;&minus;no-same-owner</b></p>

<p style="margin-left:17%;">(x mode only) Do not extract
owner and group IDs. This is the reverse of
<b>&minus;&minus;same-owner</b> and the default behavior if
<b>tar</b> is run as non-root.</p>


<p style="margin-top: 1em"><b>&minus;&minus;no-same-permissions</b></p>

<p style="margin-left:17%;">(x mode only) Do not extract
full permissions (SGID, SUID, sticky bit, ACLs, extended
attributes or extended file flags). This is the reverse of
<b>&minus;p</b> and the default behavior if <b>tar</b> is
run as non-root.</p>


<p style="margin-top: 1em"><b>&minus;&minus;numeric-owner</b></p>

<p style="margin-left:17%;">This is equivalent to
<b>&minus;&minus;uname</b> &quot;&quot;
<b>&minus;&minus;gname</b> &quot;&quot;. On extract, it
causes user and group names in the archive to be ignored in
favor of the numeric user and group ids. On create, it
causes user and group names to not be stored in the
archive.</p>

<p style="margin-top: 1em"><b>&minus;O</b>,
<b>&minus;&minus;to-stdout</b></p>

<p style="margin-left:17%;">(x, t modes only) In extract
(-x) mode, files will be written to standard out rather than
being extracted to disk. In list (-t) mode, the file listing
will be written to stderr rather than the usual stdout.</p>

<p style="margin-top: 1em"><b>&minus;o</b></p>

<p style="margin-left:17%; margin-top: 1em">(x mode) Use
the user and group of the user running the program rather
than those specified in the archive. Note that this has no
significance unless <b>&minus;p</b> is specified, and the
program is being run by the root user. In this case, the
file modes and flags from the archive will be restored, but
ACLs or owner information in the archive will be
discarded.</p>

<p style="margin-top: 1em"><b>&minus;o</b></p>

<p style="margin-left:17%; margin-top: 1em">(c, r, u mode)
A synonym for <b>&minus;&minus;format</b> <i>ustar</i></p>

<p style="margin-top: 1em"><b>&minus;&minus;older</b>
<i>date</i></p>

<p style="margin-left:17%;">(c, r, u modes only) Only
include files and directories older than the specified date.
This compares ctime entries.</p>


<p style="margin-top: 1em"><b>&minus;&minus;older-mtime</b>
<i>date</i></p>

<p style="margin-left:17%;">(c, r, u modes only) Like
<b>&minus;&minus;older</b>, except it compares mtime entries
instead of ctime entries.</p>

<p style="margin-top: 1em"><b>&minus;&minus;older-than</b>
<i>file</i></p>

<p style="margin-left:17%;">(c, r, u modes only) Only
include files and directories older than the specified file.
This compares ctime entries.</p>


<p style="margin-top: 1em"><b>&minus;&minus;older-mtime-than</b>
<i>file</i></p>

<p style="margin-left:17%;">(c, r, u modes only) Like
<b>&minus;&minus;older-than</b>, except it compares mtime
entries instead of ctime entries.</p>


<p style="margin-top: 1em"><b>&minus;&minus;one-file-system</b></p>

<p style="margin-left:17%;">(c, r, and u modes) Do not
cross mount points.</p>

<p style="margin-top: 1em"><b>&minus;&minus;options</b>
<i>options</i></p>

<p style="margin-left:17%;">Select optional behaviors for
particular modules. The argument is a text string containing
comma-separated keywords and values. These are passed to the
modules that handle particular formats to control how those
formats will behave. Each option has one of the following
forms:</p>

<p><i>key=value</i></p>

<p style="margin-left:27%;">The key will be set to the
specified value in every module that supports it. Modules
that do not support this key will ignore it.</p>

<p><i>key</i></p>

<p style="margin-left:27%; margin-top: 1em">The key will be
enabled in every module that supports it. This is equivalent
to <i>key</i><b>=1</b>.</p>

<p><i>!key</i></p>

<p style="margin-left:27%; margin-top: 1em">The key will be
disabled in every module that supports it.</p>

<p><i>module:key=value</i>, <i>module:key</i>,
<i>module:!key</i></p>

<p style="margin-left:27%;">As above, but the corresponding
key and value will be provided only to modules whose name
matches <i>module</i>.</p>

<p style="margin-left:17%;">The currently supported modules
and keys are:</p>

<p><b>iso9660:joliet</b></p>

<p style="margin-left:27%;">Support Joliet extensions. This
is enabled by default, use <b>!joliet</b> or
<b>iso9660:!joliet</b> to disable.</p>

<p><b>iso9660:rockridge</b></p>

<p style="margin-left:27%;">Support Rock Ridge extensions.
This is enabled by default, use <b>!rockridge</b> or
<b>iso9660:!rockridge</b> to disable.</p>

<p><b>gzip:compression-level</b></p>

<p style="margin-left:27%;">A decimal integer from 1 to 9
specifying the gzip compression level.</p>

<p><b>gzip:timestamp</b></p>

<p style="margin-left:27%;">Store timestamp. This is
enabled by default, use <b>!timestamp</b> or
<b>gzip:!timestamp</b> to disable.</p>

<p><b>lrzip:compression</b>=<i>type</i></p>

<p style="margin-left:27%;">Use <i>type</i> as compression
method. Supported values are bzip2, gzip, lzo (ultra fast),
and zpaq (best, extremely slow).</p>

<p><b>lrzip:compression-level</b></p>

<p style="margin-left:27%;">A decimal integer from 1 to 9
specifying the lrzip compression level.</p>

<p><b>lz4:compression-level</b></p>

<p style="margin-left:27%;">A decimal integer from 1 to 9
specifying the lzop compression level.</p>

<p><b>lz4:stream-checksum</b></p>

<p style="margin-left:27%;">Enable stream checksum. This is
by default, use <b>lz4:!stream-checksum</b> to disable.</p>

<p><b>lz4:block-checksum</b></p>

<p style="margin-left:27%;">Enable block checksum (Disabled
by default).</p>

<p><b>lz4:block-size</b></p>

<p style="margin-left:27%;">A decimal integer from 4 to 7
specifying the lz4 compression block size (7 is set by
default).</p>

<p><b>lz4:block-dependence</b></p>

<p style="margin-left:27%;">Use the previous block of the
block being compressed for a compression dictionary to
improve compression ratio.</p>

<p><b>lzop:compression-level</b></p>

<p style="margin-left:27%;">A decimal integer from 1 to 9
specifying the lzop compression level.</p>

<p><b>xz:compression-level</b></p>

<p style="margin-left:27%;">A decimal integer from 0 to 9
specifying the xz compression level.</p>

<p><b>mtree:</b><i>keyword</i></p>

<p style="margin-left:27%;">The mtree writer module allows
you to specify which mtree keywords will be included in the
output. Supported keywords include: <b>cksum</b>,
<b>device</b>, <b>flags</b>, <b>gid</b>, <b>gname</b>,
<b>indent</b>, <b>link</b>, <b>md5</b>, <b>mode</b>,
<b>nlink</b>, <b>rmd160</b>, <b>sha1</b>, <b>sha256</b>,
<b>sha384</b>, <b>sha512</b>, <b>size</b>, <b>time</b>,
<b>uid</b>, <b>uname</b>. The default is equivalent to:
&rsquo;&rsquo;device, flags, gid, gname, link, mode, nlink,
size, time, type, uid, uname&rsquo;&rsquo;.</p>

<p><b>mtree:all</b></p>

<p style="margin-left:27%;">Enables all of the above
keywords. You can also use <b>mtree:!all</b> to disable all
keywords.</p>

<p><b>mtree:use-set</b></p>

<p style="margin-left:27%;">Enable generation of
<b>/set</b> lines in the output.</p>

<p><b>mtree:indent</b></p>

<p style="margin-left:27%;">Produce human-readable output
by indenting options and splitting lines to fit into 80
columns.</p>

<p><b>zip:compression</b>=<i>type</i></p>

<p style="margin-left:27%;">Use <i>type</i> as compression
method. Supported values are store (uncompressed) and
deflate (gzip algorithm).</p>

<p><b>zip:encryption</b></p>

<p style="margin-left:27%;">Enable encryption using
traditional zip encryption.</p>

<p><b>zip:encryption</b>=<i>type</i></p>

<p style="margin-left:27%;">Use <i>type</i> as encryption
type. Supported values are zipcrypt (traditional zip
encryption), aes128 (WinZip AES-128 encryption) and aes256
(WinZip AES-256 encryption).</p>

<p><b>read_concatenated_archives</b></p>

<p style="margin-left:27%;">Ignore zeroed blocks in the
archive, which occurs when multiple tar archives have been
concatenated together. Without this option, only the
contents of the first concatenated archive would be read.
This option is comparable to the <b>&minus;i</b>,
<b>&minus;&minus;ignore-zeros</b> option of GNU tar.</p>

<p style="margin-left:17%;">If a provided option is not
supported by any module, that is a fatal error.</p>

<p style="margin-top: 1em"><b>&minus;P</b>,
<b>&minus;&minus;absolute-paths</b></p>

<p style="margin-left:17%;">Preserve pathnames. By default,
absolute pathnames (those that begin with a / character)
have the leading slash removed both when creating archives
and extracting from them. Also, <b>tar</b> will refuse to
extract archive entries whose pathnames contain <i>..</i> or
whose target directory would be altered by a symlink. This
option suppresses these behaviors.</p>

<p style="margin-top: 1em"><b>&minus;p</b>,
<b>&minus;&minus;insecure</b>,
<b>&minus;&minus;preserve-permissions</b></p>

<p style="margin-left:17%;">(x mode only) Preserve file
permissions. Attempt to restore the full permissions,
including owner, file modes, file flags and ACLs, if
available, for each item extracted from the archive. This is
the default, if <b>tar</b> is being run by root and can be
overridden by also specifying
<b>&minus;&minus;no-same-owner</b> and
<b>&minus;&minus;no-same-permissions</b>.</p>

<p style="margin-top: 1em"><b>&minus;&minus;passphrase</b>
<i>passphrase</i></p>

<p style="margin-left:17%;">The <i>passphrase</i> is used
to extract or create an encrypted archive. Currently, zip is
the only supported format that supports encryption. You
shouldn&rsquo;t use this option unless you realize how
insecure use of this option is.</p>

<p style="margin-top: 1em"><b>&minus;&minus;posix</b></p>

<p style="margin-left:17%;">(c, r, u mode only) Synonym for
<b>&minus;&minus;format</b> <i>pax</i></p>

<p style="margin-top: 1em"><b>&minus;q</b>,
<b>&minus;&minus;fast-read</b></p>

<p style="margin-left:17%;">(x and t mode only) Extract or
list only the first archive entry that matches each pattern
or filename operand. Exit as soon as each specified pattern
or filename has been matched. By default, the archive is
always read to the very end, since there can be multiple
entries with the same name and, by convention, later entries
overwrite earlier entries. This option is provided as a
performance optimization.</p>

<p style="margin-top: 1em"><b>&minus;S</b></p>

<p style="margin-left:17%; margin-top: 1em">(x mode only)
Extract files as sparse files. For every block on disk,
check first if it contains only NULL bytes and seek over it
otherwise. This works similar to the conv=sparse option of
dd.</p>

<p style="margin-top: 1em"><b>&minus;s</b>
<i>pattern</i></p>

<p style="margin-left:17%;">Modify file or archive member
names according to <i>pattern</i>. The pattern has the
format <i>/old/new/</i>[ghHprRsS] where <i>old</i> is a
basic regular expression, <i>new</i> is the replacement
string of the matched part, and the optional trailing
letters modify how the replacement is handled. If <i>old</i>
is not matched, the pattern is skipped. Within <i>new</i>, ~
is substituted with the match, \1 to \9 with the content of
the corresponding captured group. The optional trailing g
specifies that matching should continue after the matched
part and stop on the first unmatched pattern. The optional
trailing s specifies that the pattern applies to the value
of symbolic links. The optional trailing p specifies that
after a successful substitution the original path name and
the new path name should be printed to standard error.
Optional trailing H, R, or S characters suppress
substitutions for hardlink targets, regular filenames, or
symlink targets, respectively. Optional trailing h, r, or s
characters enable substitutions for hardlink targets,
regular filenames, or symlink targets, respectively. The
default is <i>hrs</i> which applies substitutions to all
names. In particular, it is never necessary to specify h, r,
or s.</p>


<p style="margin-top: 1em"><b>&minus;&minus;same-owner</b></p>

<p style="margin-left:17%;">(x mode only) Extract owner and
group IDs. This is the reverse of
<b>&minus;&minus;no-same-owner</b> and the default behavior
if <b>tar</b> is run as root.</p>


<p style="margin-top: 1em"><b>&minus;&minus;strip-components</b>
<i>count</i></p>

<p style="margin-left:17%;">Remove the specified number of
leading path elements. Pathnames with fewer elements will be
silently skipped. Note that the pathname is edited after
checking inclusion/exclusion patterns but before security
checks.</p>

<p style="margin-top: 1em"><b>&minus;T</b> <i>filename</i>,
<b>&minus;&minus;files-from</b> <i>filename</i></p>

<p style="margin-left:17%;">In x or t mode, <b>tar</b> will
read the list of names to be extracted from <i>filename</i>.
In c mode, <b>tar</b> will read names to be archived from
<i>filename</i>. The special name
&rsquo;&rsquo;-C&rsquo;&rsquo; on a line by itself will
cause the current directory to be changed to the directory
specified on the following line. Names are terminated by
newlines unless <b>&minus;&minus;null</b> is specified. Note
that <b>&minus;&minus;null</b> also disables the special
handling of lines containing &rsquo;&rsquo;-C&rsquo;&rsquo;.
Note: If you are generating lists of files using find(1),
you probably want to use <b>&minus;n</b> as well.</p>

<p style="margin-top: 1em"><b>&minus;&minus;totals</b></p>

<p style="margin-left:17%;">(c, r, u mode only) After
archiving all files, print a summary to stderr.</p>

<p style="margin-top: 1em"><b>&minus;U</b>,
<b>&minus;&minus;unlink</b>,
<b>&minus;&minus;unlink-first</b></p>

<p style="margin-left:17%;">(x mode only) Unlink files
before creating them. This can be a minor performance
optimization if most files already exist, but can make
things slower if most files do not already exist. This flag
also causes <b>tar</b> to remove intervening directory
symlinks instead of reporting an error. See the SECURITY
section below for more details.</p>

<p style="margin-top: 1em"><b>&minus;&minus;uid</b>
<i>id</i></p>

<p style="margin-left:17%;">Use the provided user id number
and ignore the user name from the archive. On create, if
<b>&minus;&minus;uname</b> is not also specified, the user
name will be set to match the user id.</p>

<p style="margin-top: 1em"><b>&minus;&minus;uname</b>
<i>name</i></p>

<p style="margin-left:17%;">Use the provided user name. On
extract, this overrides the user name in the archive; if the
provided user name does not exist on the system, it will be
ignored and the user id (from the archive or from the
<b>&minus;&minus;uid</b> option) will be used instead. On
create, this sets the user name that will be stored in the
archive; the name is not verified against the system user
database.</p>


<p style="margin-top: 1em"><b>&minus;&minus;use-compress-program</b>
<i>program</i></p>

<p style="margin-left:17%;">Pipe the input (in x or t mode)
or the output (in c mode) through <i>program</i> instead of
using the builtin compression support.</p>

<p style="margin-top: 1em"><b>&minus;v</b>,
<b>&minus;&minus;verbose</b></p>

<p style="margin-left:17%;">Produce verbose output. In
create and extract modes, <b>tar</b> will list each file
name as it is read from or written to the archive. In list
mode, <b>tar</b> will produce output similar to that of
ls(1). An additional <b>&minus;v</b> option will also
provide ls-like details in create and extract mode.</p>


<p style="margin-top: 1em"><b>&minus;&minus;version</b></p>

<p style="margin-left:17%;">Print version of <b>tar</b> and
<b>libarchive</b>, and exit.</p>

<p style="margin-top: 1em"><b>&minus;w</b>,
<b>&minus;&minus;confirmation</b>,
<b>&minus;&minus;interactive</b></p>

<p style="margin-left:17%;">Ask for confirmation for every
action.</p>

<p style="margin-top: 1em"><b>&minus;X</b> <i>filename</i>,
<b>&minus;&minus;exclude-from</b> <i>filename</i></p>

<p style="margin-left:17%;">Read a list of exclusion
patterns from the specified file. See
<b>&minus;&minus;exclude</b> for more information about the
handling of exclusions.</p>

<p style="margin-top: 1em"><b>&minus;y</b></p>

<p style="margin-left:17%; margin-top: 1em">(c mode only)
Compress the resulting archive with bzip2(1). In extract or
list modes, this option is ignored. Note that, unlike other
<b>tar</b> implementations, this implementation recognizes
bzip2 compression automatically when reading archives.</p>

<p style="margin-top: 1em"><b>&minus;Z</b>,
<b>&minus;&minus;compress</b>,
<b>&minus;&minus;uncompress</b></p>

<p style="margin-left:17%;">(c mode only) Compress the
resulting archive with compress(1). In extract or list
modes, this option is ignored. Note that, unlike other
<b>tar</b> implementations, this implementation recognizes
compress compression automatically when reading
archives.</p>

<p style="margin-top: 1em"><b>&minus;z</b>,
<b>&minus;&minus;gunzip</b>, <b>&minus;&minus;gzip</b></p>

<p style="margin-left:17%;">(c mode only) Compress the
resulting archive with gzip(1). In extract or list modes,
this option is ignored. Note that, unlike other <b>tar</b>
implementations, this implementation recognizes gzip
compression automatically when reading archives.</p>

<p style="margin-top: 1em"><b>ENVIRONMENT</b></p>

<p style="margin-left:6%;">The following environment
variables affect the execution of <b>tar</b>:</p>

<p style="margin-top: 1em">TAR_READER_OPTIONS</p>

<p style="margin-left:21%;">The default options for format
readers and compression readers. The
<b>&minus;&minus;options</b> option overrides this.</p>

<p style="margin-top: 1em">TAR_WRITER_OPTIONS</p>

<p style="margin-left:21%;">The default options for format
writers and compression writers. The
<b>&minus;&minus;options</b> option overrides this.</p>

<p style="margin-top: 1em">LANG</p>

<p style="margin-left:21%; margin-top: 1em">The locale to
use. See environ(7) for more information.</p>

<p style="margin-top: 1em">TAPE</p>

<p style="margin-left:21%; margin-top: 1em">The default
device. The <b>&minus;f</b> option overrides this. Please
see the description of the <b>&minus;f</b> option above for
more details.</p>

<p style="margin-top: 1em">TZ</p>

<p style="margin-left:21%; margin-top: 1em">The timezone to
use when displaying dates. See environ(7) for more
information.</p>

<p style="margin-top: 1em"><b>EXIT STATUS</b></p>

<p style="margin-left:6%;">The <b>tar</b> utility
exits&nbsp;0 on success, and&nbsp;&gt;0 if an error
occurs.</p>

<p style="margin-top: 1em"><b>EXAMPLES</b></p>

<p style="margin-left:6%;">The following creates a new
archive called <i>file.tar.gz</i> that contains two files
<i>source.c</i> and <i>source.h</i>:</p>

<p style="margin-left:14%;"><b>tar &minus;czf</b>
<i>file.tar.gz source.c source.h</i></p>

<p style="margin-left:6%; margin-top: 1em">To view a
detailed table of contents for this archive:</p>

<p style="margin-left:14%;"><b>tar &minus;tvf</b>
<i>file.tar.gz</i></p>

<p style="margin-left:6%; margin-top: 1em">To extract all
entries from the archive on the default tape drive:</p>

<p style="margin-left:14%;"><b>tar &minus;x</b></p>

<p style="margin-left:6%; margin-top: 1em">To examine the
contents of an ISO 9660 cdrom image:</p>

<p style="margin-left:14%;"><b>tar &minus;tf</b>
<i>image.iso</i></p>

<p style="margin-left:6%; margin-top: 1em">To move file
hierarchies, invoke <b>tar</b> as</p>

<p style="margin-left:14%;"><b>tar &minus;cf</b> <i>-</i>
<b>&minus;C</b> <i>srcdir&nbsp;.</i> | <b>tar &minus;xpf</b>
<i>-</i> <b>&minus;C</b> <i>destdir</i></p>

<p style="margin-left:6%;">or more traditionally</p>

<p style="margin-left:14%;">cd srcdir ; <b>tar
&minus;cf</b> <i>-&nbsp;.</i> | (<i>cd destdir ;</i> <b>tar
&minus;xpf</b> <i>-</i>)</p>

<p style="margin-left:6%; margin-top: 1em">In create mode,
the list of files and directories to be archived can also
include directory change instructions of the form
<b>-C</b><i>foo/baz</i> and archive inclusions of the form
<b>@@</b><i>archive-file</i>. For example, the command
line</p>

<p style="margin-left:14%;"><b>tar &minus;c &minus;f</b>
<i>new.tar foo1</i> <b>@@</b><i>old.tgz</i> <b>-C</b><i>/tmp
foo2</i></p>

<p style="margin-left:6%;">will create a new archive
<i>new.tar</i>. <b>tar</b> will read the file <i>foo1</i>
from the current directory and add it to the output archive.
It will then read each entry from <i>old.tgz</i> and add
those entries to the output archive. Finally, it will switch
to the <i>/tmp</i> directory and add <i>foo2</i> to the
output archive.</p>

<p style="margin-left:6%; margin-top: 1em">An input file in
mtree(5) format can be used to create an output archive with
arbitrary ownership, permissions, or names that differ from
existing data on disk:</p>

<p style="margin-left:14%; margin-top: 1em">$ cat
input.mtree <br>
#mtree <br>
usr/bin uid=0 gid=0 mode=0755 type=dir <br>
usr/bin/ls uid=0 gid=0 mode=0755 type=file content=myls <br>
$ tar -cvf output.tar @@input.mtree</p>

<p style="margin-left:6%; margin-top: 1em">The
<b>&minus;&minus;newer</b> and
<b>&minus;&minus;newer-mtime</b> switches accept a variety
of common date and time specifications, including
&rsquo;&rsquo;12 Mar 2005 7:14:29pm&rsquo;&rsquo;,
&rsquo;&rsquo;2005-03-12 19:14&rsquo;&rsquo;,
&rsquo;&rsquo;5 minutes ago&rsquo;&rsquo;, and
&rsquo;&rsquo;19:14 PST May 1&rsquo;&rsquo;.</p>

<p style="margin-left:6%; margin-top: 1em">The
<b>&minus;&minus;options</b> argument can be used to control
various details of archive generation or reading. For
example, you can generate mtree output which only contains
<b>type</b>, <b>time</b>, and <b>uid</b> keywords:</p>

<p style="margin-left:14%;"><b>tar &minus;cf</b>
<i>file.tar</i> <b>&minus;&minus;format=mtree
&minus;&minus;options=&rsquo;!all,type,time,uid&rsquo;</b>
<i>dir</i></p>

<p style="margin-left:6%;">or you can set the compression
level used by gzip or xz compression:</p>

<p style="margin-left:14%;"><b>tar &minus;czf</b>
<i>file.tar</i>
<b>&minus;&minus;options=&rsquo;compression-level=9&rsquo;</b>.</p>

<p style="margin-left:6%;">For more details, see the
explanation of the <b>archive_read_set_options</b>() and
<b>archive_write_set_options</b>() API calls that are
described in archive_read(3) and archive_write(3).</p>

<p style="margin-top: 1em"><b>COMPATIBILITY</b></p>

<p style="margin-left:6%;">The bundled-arguments format is
supported for compatibility with historic implementations.
It consists of an initial word (with no leading - character)
in which each character indicates an option. Arguments
follow as separate words. The order of the arguments must
match the order of the corresponding characters in the
bundled command word. For example,</p>

<p style="margin-left:14%;"><b>tar tbf 32</b>
<i>file.tar</i></p>

<p style="margin-left:6%;">specifies three flags <b>t</b>,
<b>b</b>, and <b>f</b>. The <b>b</b> and <b>f</b> flags both
require arguments, so there must be two additional items on
the command line. The <i>32</i> is the argument to the
<b>b</b> flag, and <i>file.tar</i> is the argument to the
<b>f</b> flag.</p>

<p style="margin-left:6%; margin-top: 1em">The mode options
c, r, t, u, and x and the options b, f, l, m, o, v, and w
comply with SUSv2.</p>

<p style="margin-left:6%; margin-top: 1em">For maximum
portability, scripts that invoke <b>tar</b> should use the
bundled-argument format above, should limit themselves to
the <b>c</b>, <b>t</b>, and <b>x</b> modes, and the
<b>b</b>, <b>f</b>, <b>m</b>, <b>v</b>, and <b>w</b>
options.</p>

<p style="margin-left:6%; margin-top: 1em">Additional long
options are provided to improve compatibility with other tar
implementations.</p>

<p style="margin-top: 1em"><b>SECURITY</b></p>

<p style="margin-left:6%;">Certain security issues are
common to many archiving programs, including <b>tar</b>. In
particular, carefully-crafted archives can request that
<b>tar</b> extract files to locations outside of the target
directory. This can potentially be used to cause unwitting
users to overwrite files they did not intend to overwrite.
If the archive is being extracted by the superuser, any file
on the system can potentially be overwritten. There are
three ways this can happen. Although <b>tar</b> has
mechanisms to protect against each one, savvy users should
be aware of the implications:</p>

<p style="margin-top: 1em"><b>&bull;</b></p>

<p style="margin-left:17%;">Archive entries can have
absolute pathnames. By default, <b>tar</b> removes the
leading <i>/</i> character from filenames before restoring
them to guard against this problem.</p>

<p style="margin-top: 1em"><b>&bull;</b></p>

<p style="margin-left:17%;">Archive entries can have
pathnames that include <i>..</i> components. By default,
<b>tar</b> will not extract files containing <i>..</i>
components in their pathname.</p>

<p style="margin-top: 1em"><b>&bull;</b></p>

<p style="margin-left:17%;">Archive entries can exploit
symbolic links to restore files to other directories. An
archive can restore a symbolic link to another directory,
then use that link to restore a file into that directory. To
guard against this, <b>tar</b> checks each extracted path
for symlinks. If the final path element is a symlink, it
will be removed and replaced with the archive entry. If
<b>&minus;U</b> is specified, any intermediate symlink will
also be unconditionally removed. If neither <b>&minus;U</b>
nor <b>&minus;P</b> is specified, <b>tar</b> will refuse to
extract the entry.</p>

<p style="margin-left:6%;">To protect yourself, you should
be wary of any archives that come from untrusted sources.
You should examine the contents of an archive with</p>

<p style="margin-left:14%;"><b>tar &minus;tf</b>
<i>filename</i></p>

<p style="margin-left:6%;">before extraction. You should
use the <b>&minus;k</b> option to ensure that <b>tar</b>
will not overwrite any existing files or the <b>&minus;U</b>
option to remove any pre-existing files. You should
generally not extract archives while running with super-user
privileges. Note that the <b>&minus;P</b> option to
<b>tar</b> disables the security checks above and allows you
to extract an archive while preserving any absolute
pathnames, <i>..</i> components, or symlinks to other
directories.</p>

<p style="margin-top: 1em"><b>SEE ALSO</b></p>

<p style="margin-left:6%;">bzip2(1), compress(1), cpio(1),
gzip(1), mt(1), pax(1), shar(1), xz(1), libarchive(3),
libarchive-formats(5), tar(5)</p>

<p style="margin-top: 1em"><b>STANDARDS</b></p>

<p style="margin-left:6%;">There is no current POSIX
standard for the tar command; it appeared in ISO/IEC
9945-1:1996 (&rsquo;&rsquo;POSIX.1&rsquo;&rsquo;) but was
dropped from IEEE Std 1003.1-2001
(&rsquo;&rsquo;POSIX.1&rsquo;&rsquo;). The options supported
by this implementation were developed by surveying a number
of existing tar implementations as well as the old POSIX
specification for tar and the current POSIX specification
for pax.</p>

<p style="margin-left:6%; margin-top: 1em">The ustar and
pax interchange file formats are defined by IEEE Std
1003.1-2001 (&rsquo;&rsquo;POSIX.1&rsquo;&rsquo;) for the
pax command.</p>

<p style="margin-top: 1em"><b>HISTORY</b></p>

<p style="margin-left:6%;">A <b>tar</b> command appeared in
Seventh Edition Unix, which was released in January, 1979.
There have been numerous other implementations, many of
which extended the file format. John Gilmore&rsquo;s
<b>pdtar</b> public-domain implementation (circa November,
1987) was quite influential, and formed the basis of GNU
tar. GNU tar was included as the standard system tar in
FreeBSD beginning with FreeBSD&nbsp;1.0.</p>

<p style="margin-left:6%; margin-top: 1em">This is a
complete re-implementation based on the libarchive(3)
library. It was first released with FreeBSD&nbsp;5.4 in May,
2005.</p>

<p style="margin-top: 1em"><b>BUGS</b></p>

<p style="margin-left:6%;">This program follows ISO/IEC
9945-1:1996 (&rsquo;&rsquo;POSIX.1&rsquo;&rsquo;) for the
definition of the <b>&minus;l</b> option. Note that GNU tar
prior to version 1.15 treated <b>&minus;l</b> as a synonym
for the <b>&minus;&minus;one-file-system</b> option.</p>

<p style="margin-left:6%; margin-top: 1em">The
<b>&minus;C</b> <i>dir</i> option may differ from historic
implementations.</p>

<p style="margin-left:6%; margin-top: 1em">All archive
output is written in correctly-sized blocks, even if the
output is being compressed. Whether or not the last output
block is padded to a full block size varies depending on the
format and the output device. For tar and cpio formats, the
last block of output is padded to a full block size if the
output is being written to standard output or to a character
or block device such as a tape drive. If the output is being
written to a regular file, the last block will not be
padded. Many compressors, including gzip(1) and bzip2(1),
complain about the null padding when decompressing an
archive created by <b>tar</b>, although they still extract
it correctly.</p>

<p style="margin-left:6%; margin-top: 1em">The compression
and decompression is implemented internally, so there may be
insignificant differences between the compressed output
generated by</p>

<p style="margin-left:14%;"><b>tar &minus;czf</b> <i>-
file</i></p>

<p style="margin-left:6%;">and that generated by</p>

<p style="margin-left:14%;"><b>tar &minus;cf</b> <i>-
file</i> | <b>gzip</b></p>

<p style="margin-left:6%; margin-top: 1em">The default
should be to read and write archives to the standard I/O
paths, but tradition (and POSIX) dictates otherwise.</p>

<p style="margin-left:6%; margin-top: 1em">The <b>r</b> and
<b>u</b> modes require that the archive be uncompressed and
located in a regular file on disk. Other archives can be
modified using <b>c</b> mode with the <i>@@archive-file</i>
extension.</p>

<p style="margin-left:6%; margin-top: 1em">To archive a
file called <i>@@foo</i> or <i>-foo</i> you must specify it
as <i>./@@foo</i> or <i>./-foo</i>, respectively.</p>

<p style="margin-left:6%; margin-top: 1em">In create mode,
a leading <i>./</i> is always removed. A leading <i>/</i> is
stripped unless the <b>&minus;P</b> option is specified.</p>

<p style="margin-left:6%; margin-top: 1em">There needs to
be better support for file selection on both create and
extract.</p>

<p style="margin-left:6%; margin-top: 1em">There is not yet
any support for multi-volume archives.</p>

<p style="margin-left:6%; margin-top: 1em">Converting
between dissimilar archive formats (such as tar and cpio)
using the <b>@@</b><i>-</i> convention can cause hard link
information to be lost. (This is a consequence of the
incompatible ways that different archive formats store
hardlink information.)</p>

<p style="margin-left:6%; margin-top: 1em">BSD
September&nbsp;16, 2014 BSD</p>
<hr>
</body>
</html>
@


1.1.1.6
log
@Import libarchive-3.3.1.
@
text
@d2 1
a2 1
<!-- CreationDate: Sat Feb 25 11:22:08 2017 -->
d57 1
a57 1
synopsis form shows a &lsquo;&lsquo;bundled&rsquo;&rsquo;
d126 1
a126 1
<p style="margin-left:17%;">(c and r modes only) The
d182 1
a182 1
&lsquo;&lsquo;-j&rsquo;&rsquo; option, and creates a new
a191 11
<p style="margin-top: 1em"><b>&minus;&minus;acls</b></p>

<p style="margin-left:17%; margin-top: 1em">(c, r, u, x
modes only) Archive or extract POSIX.1e or NFSv4 ACLs. This
is the reverse of <b>&minus;&minus;no-acls</b> and the
default behavior in c, r, and u modes (except Mac OS X) or
if <b>tar</b> is run in x mode as root. On Mac OS X this
option translates extended ACLs to NFSv4 ACLs. To store
extended ACLs the <b>&minus;&minus;mac-metadata</b> option
is preferred.</p>

d230 6
a243 8
<p style="margin-top: 1em"><b>&minus;&minus;fflags</b></p>

<p style="margin-left:17%;">(c, r, u, x modes only) Archive
or extract file flags. This is the reverse of
<b>&minus;&minus;no-fflags</b> and the default behavior in
c, r, and u modes or if <b>tar</b> is run in x mode as
root.</p>

d249 4
a252 4
include &lsquo;&lsquo;cpio&rsquo;&rsquo;,
&lsquo;&lsquo;pax&rsquo;&rsquo;,
&lsquo;&lsquo;shar&rsquo;&rsquo;, and
&lsquo;&lsquo;ustar&rsquo;&rsquo;. Other formats may also be
d293 1
a293 1
<p style="margin-left:17%; margin-top: 1em">(c and r modes
d300 1
a300 1
<p style="margin-left:17%; margin-top: 1em">(c and r modes
d315 3
a317 3
<p style="margin-left:17%;">(x mode only) Mac OS X specific
(v10.6 or later). Compress extracted regular files with HFS+
compression.</p>
d343 1
a343 1
<i>old.tgz</i> containing the string &lsquo;foo&rsquo;.</p>
d382 1
a382 1
<p style="margin-left:17%;">(c and r modes only) All
a429 10

<p style="margin-top: 1em"><b>&minus;&minus;mac-metadata</b></p>

<p style="margin-left:17%;">(c, r, u and x mode only) Mac
OS X specific. Archive or extract extended ACLs and extended
attributes using copyfile(3) in AppleDouble format. This is
the reverse of <b>&minus;&minus;no-mac-metadata</b>. and the
default behavior in c, r, and u modes or if <b>tar</b> is
run in x mode as root.</p>

a489 31
<p style="margin-top: 1em"><b>&minus;&minus;no-acls</b></p>

<p style="margin-left:17%;">(c, r, u, x modes only) Do not
archive or extract POSIX.1e or NFSv4 ACLs. This is the
reverse of <b>&minus;&minus;acls</b> and the default
behavior if <b>tar</b> is run as non-root in x mode (on Mac
OS X also in c, r and u modes).</p>


<p style="margin-top: 1em"><b>&minus;&minus;no-fflags</b></p>

<p style="margin-left:17%;">(c, r, u, x modes only) Do not
archive or extract file flags. This is the reverse of
<b>&minus;&minus;fflags</b> and the default behavior if
<b>tar</b> is run as non-root in x mode.</p>


<p style="margin-top: 1em"><b>&minus;&minus;no-mac-metadata</b></p>

<p style="margin-left:17%;">(x mode only) Mac OS X
specific. Do not archive or extract ACLs and extended
attributes using copyfile(3) in AppleDouble format. This is
the reverse of <b>&minus;&minus;mac-metadata</b>. and the
default behavior if <b>tar</b> is run as non-root in x
mode.</p>

<p style="margin-top: 1em"><b>&minus;n</b>,
<b>&minus;&minus;norecurse</b>,
<b>&minus;&minus;no-recursion</b></p>


d504 1
a504 13
run as non-root and can be overridden by also specifying
<b>&minus;&minus;acls</b>, <b>&minus;&minus;fflags</b>,
<b>&minus;&minus;mac-metadata, &minus;&minus;same-owner</b>,
<b>&minus;&minus;same-permissions</b> and
<b>&minus;&minus;xattrs</b>.</p>


<p style="margin-top: 1em"><b>&minus;&minus;no-xattrs</b></p>

<p style="margin-left:17%;">(c, r, u, x modes only) Do not
archive or extract extended attributes. This is the reverse
of <b>&minus;&minus;xattrs</b> and the default behavior if
<b>tar</b> is run as non-root in x mode.</p>
d695 1
a695 1
&lsquo;&lsquo;device, flags, gid, gname, link, mode, nlink,
d762 6
a767 10
including owner, file modes, ACLs, extended atributes and
extended file flags, if available, for each item extracted
from the archive. This is the default, if <b>tar</b> is
being run by root and can be overridden by also specifying
<b>&minus;&minus;no-acls</b>,
<b>&minus;&minus;no-fflags</b>,
<b>&minus;&minus;no-mac-metadata,
&minus;&minus;no-same-owner</b>,
<b>&minus;&minus;no-same-permissions</b> and
<b>&minus;&minus;no-xattrs</b>.</p>
d855 1
a855 1
&lsquo;&lsquo;-C&rsquo;&rsquo; on a line by itself will
d860 1
a860 1
handling of lines containing &lsquo;&lsquo;-C&rsquo;&rsquo;.
d866 1
a866 1
<p style="margin-left:17%;">(c, r, u modes only) After
a939 8
<p style="margin-top: 1em"><b>&minus;&minus;xattrs</b></p>

<p style="margin-left:17%;">(c, r, u, x modes only) Archive
or extract extended attributes. This is the reverse of
<b>&minus;&minus;no-xattrs</b> and the default behavior in
c, r, and u modes or if <b>tar</b> is run in x mode as
root.</p>

d1083 4
a1086 4
&lsquo;&lsquo;12 Mar 2005 7:14:29pm&rsquo;&rsquo;,
&lsquo;&lsquo;2005-03-12 19:14&rsquo;&rsquo;,
&lsquo;&lsquo;5 minutes ago&rsquo;&rsquo;, and
&lsquo;&lsquo;19:14 PST May 1&rsquo;&rsquo;.</p>
d1216 1
a1216 1
9945-1:1996 (&lsquo;&lsquo;POSIX.1&rsquo;&rsquo;) but was
d1218 1
a1218 1
(&lsquo;&lsquo;POSIX.1&rsquo;&rsquo;). The options supported
d1226 1
a1226 1
1003.1-2001 (&lsquo;&lsquo;POSIX.1&rsquo;&rsquo;) for the
d1248 1
a1248 1
9945-1:1996 (&lsquo;&lsquo;POSIX.1&rsquo;&rsquo;) for the
d1317 1
a1317 1
February&nbsp;24, 2017 BSD</p>
@


1.1.1.7
log
@Import libarchive-3.3.2 + 9de5f3 + f9dacbf:
- Support NFS4 ACLs on Linux
- Bugfixes
@
text
@d2 1
a2 1
<!-- CreationDate: Mon Jul 10 02:32:58 2017 -->
d39 1
a39 1
<p style="margin-left:12%;"><b>tar</b> {<b>-c</b>}
d42 2
a43 2
tar</b> {<b>-r&nbsp;</b>|&nbsp;<b>-u</b>} <b>-f</b>
<i>archive-file</i> [<i>options</i>]
d45 2
a46 2
tar</b> {<b>-t&nbsp;</b>|&nbsp;<b>-x</b>} [<i>options</i>]
[<i>patterns</i>]</p>
d57 1
a57 1
synopsis form shows a &rsquo;&rsquo;bundled&rsquo;&rsquo;
d66 1
a66 1
<p><b>-c</b></p>
d70 1
a70 1
is <b>--create</b>.</p>
d72 1
a72 1
<p><b>-r</b></p>
d74 6
a79 5
<p style="margin-left:17%; margin-top: 1em">Like <b>-c</b>,
but new entries are appended to the archive. Note that this
only works on uncompressed archives stored in regular files.
The <b>-f</b> option is required. The long option form is
<b>--append</b>.</p>
d81 1
a81 1
<p><b>-t</b></p>
d85 1
a85 1
<b>--list</b>.</p>
d87 1
a87 1
<p><b>-u</b></p>
d89 7
a95 6
<p style="margin-left:17%; margin-top: 1em">Like <b>-r</b>,
but new entries are added only if they have a modification
date newer than the corresponding entry in the archive. Note
that this only works on uncompressed archives stored in
regular files. The <b>-f</b> option is required. The long
form is <b>--update</b>.</p>
d97 1
a97 1
<p><b>-x</b></p>
d103 1
a103 1
long option form is <b>--extract</b>.</p>
d105 5
a109 5
<p style="margin-left:6%; margin-top: 1em">In <b>-c</b>,
<b>-r</b>, or <b>-u</b> mode, each specified file or
directory is added to the archive in the order specified on
the command line. By default, the contents of each directory
are also archived.</p>
d130 2
a131 2
<p style="margin-left:24%;"><b>tar -c -f</b> <i>-
newfile</i> <b>@@</b><i>original.tar</i></p>
d137 2
a138 2
<p style="margin-left:24%;"><b>tar -c -f</b> <i>- newfile
original.tar</i></p>
d143 2
a144 2
<p style="margin-left:24%;"><b>tar -czf</b> <i>-</i>
<b>--format pax @@</b><i>-</i></p>
d152 2
a153 2
<p style="margin-top: 1em"><b>-a</b>,
<b>--auto-compress</b></p>
d159 1
a159 1
<p style="margin-left:24%;"><b>tar -a -cf</b>
d165 1
a165 1
<p style="margin-left:24%;"><b>tar -a -cf</b>
d172 1
a172 1
<p style="margin-left:24%;"><b>tar -a -cf</b>
d178 1
a178 1
<p style="margin-left:24%;"><b>tar -a -jcf</b>
d182 1
a182 1
&rsquo;&rsquo;-j&rsquo;&rsquo; option, and creates a new
d185 1
a185 1
<p style="margin-left:24%;"><b>tar -a -jcf</b>
d192 1
a192 1
<p style="margin-top: 1em"><b>--acls</b></p>
d196 6
a201 5
is the reverse of <b>--no-acls</b> and the default behavior
in c, r, and u modes (except on Mac OS X) or if <b>tar</b>
is run in x mode as root. On Mac OS X this option translates
extended ACLs to NFSv4 ACLs. To store extended ACLs the
<b>--mac-metadata</b> option is preferred.</p>
d203 2
a204 2
<p style="margin-top: 1em"><b>-B</b>,
<b>--read-full-blocks</b></p>
d209 3
a211 2
<p style="margin-top: 1em"><b>-b</b> <i>blocksize</i>,
<b>--block-size</b> <i>blocksize</i></p>
d219 3
a221 3
<p style="margin-top: 1em"><b>-C</b> <i>directory</i>,
<b>--cd</b> <i>directory</i>, <b>--directory</b>
<i>directory</i></p>
d228 1
a228 1
<p style="margin-top: 1em"><b>--chroot</b></p>
d231 2
a232 2
to the current directory after processing any <b>-C</b>
options and before extracting any files.</p>
d235 1
a235 1
<p style="margin-top: 1em"><b>--clear-nochange-fflags</b></p>
d241 1
a241 1
<p style="margin-top: 1em"><b>--exclude</b>
d249 1
a249 1
<p style="margin-top: 1em"><b>--fflags</b></p>
d253 3
a255 2
<b>--no-fflags</b> and the default behavior in c, r, and u
modes or if <b>tar</b> is run in x mode as root.</p>
d257 1
a257 1
<p style="margin-top: 1em"><b>--format</b>
d262 4
a265 4
include &rsquo;&rsquo;cpio&rsquo;&rsquo;,
&rsquo;&rsquo;pax&rsquo;&rsquo;,
&rsquo;&rsquo;shar&rsquo;&rsquo;, and
&rsquo;&rsquo;ustar&rsquo;&rsquo;. Other formats may also be
d272 2
a273 2
<p style="margin-top: 1em"><b>-f</b> <i>file</i>,
<b>--file</b> <i>file</i></p>
d282 2
a283 1
<p style="margin-top: 1em"><b>--gid</b> <i>id</i></p>
d289 2
a290 2
<b>--gname</b> is not also specified, the group name will be
set to match the group id.</p>
d292 2
a293 1
<p style="margin-top: 1em"><b>--gname</b> <i>name</i></p>
d298 5
a302 4
group id (from the archive or from the <b>--gid</b> option)
will be used instead. On create, this sets the group name
that will be stored in the archive; the name will not be
verified against the system group database.</p>
d304 1
a304 1
<p style="margin-top: 1em"><b>-H</b></p>
d311 1
a311 1
<p style="margin-top: 1em"><b>-h</b></p>
d314 1
a314 1
only) Synonym for <b>-L</b>.</p>
d316 1
a316 1
<p style="margin-top: 1em"><b>-I</b></p>
d319 1
a319 1
<b>-T</b>.</p>
d321 1
a321 1
<p style="margin-top: 1em"><b>--help</b></p>
d325 2
a326 1
<p style="margin-top: 1em"><b>--hfsCompression</b></p>
a331 1
<p style="margin-top: 1em"><b>--ignore-zeros</b></p>
d333 5
a337 3
<p style="margin-left:17%;">An alias of <b>--options
read_concatenated_archives</b> for compatibility with GNU
tar.</p>
d339 1
a339 1
<p style="margin-top: 1em"><b>--include</b>
d344 9
a352 8
exclusions specified with <b>--exclude</b> take precedence
over inclusions. If no inclusions are explicitly specified,
all entries are processed by default. The <b>--include</b>
option is especially useful when filtering archives. For
example, the command</p>

<p style="margin-left:24%;"><b>tar -c -f</b> <i>new.tar</i>
<b>--include=&rsquo;*foo*&rsquo; @@</b><i>old.tgz</i></p>
d356 1
a356 1
<i>old.tgz</i> containing the string &rsquo;foo&rsquo;.</p>
d358 2
a359 1
<p style="margin-top: 1em"><b>-J</b>, <b>--xz</b></p>
d367 3
a369 2
<p style="margin-top: 1em"><b>-j</b>, <b>--bzip</b>,
<b>--bzip2</b>, <b>--bunzip2</b></p>
d377 2
a378 2
<p style="margin-top: 1em"><b>-k</b>,
<b>--keep-old-files</b></p>
d385 2
a386 1
<p style="margin-top: 1em"><b>--keep-newer-files</b></p>
d392 2
a393 2
<p style="margin-top: 1em"><b>-L</b>,
<b>--dereference</b></p>
d400 2
a401 2
<p style="margin-top: 1em"><b>-l</b>,
<b>--check-links</b></p>
d407 1
a407 1
<p style="margin-top: 1em"><b>--lrzip</b></p>
d413 1
a413 1
<p style="margin-top: 1em"><b>--lz4</b></p>
d420 1
a420 1
<p style="margin-top: 1em"><b>--lzma</b></p>
d425 4
a428 4
archives should be created with <b>--xz</b> instead. Note
that, unlike other <b>tar</b> implementations, this
implementation recognizes LZMA compression automatically
when reading archives.</p>
d430 1
a430 1
<p style="margin-top: 1em"><b>--lzop</b></p>
d436 2
a437 2
<p style="margin-top: 1em"><b>-m</b>,
<b>--modification-time</b></p>
d443 2
a444 1
<p style="margin-top: 1em"><b>--mac-metadata</b></p>
d449 7
a455 6
the reverse of <b>--no-mac-metadata</b>. and the default
behavior in c, r, and u modes or if <b>tar</b> is run in x
mode as root.</p>

<p style="margin-top: 1em"><b>-n</b>, <b>--norecurse</b>,
<b>--no-recursion</b></p>
d460 2
a461 1
<p style="margin-top: 1em"><b>--newer</b> <i>date</i></p>
d467 2
a468 1
<p style="margin-top: 1em"><b>--newer-mtime</b>
d472 2
a473 2
<b>--newer</b>, except it compares mtime entries instead of
ctime entries.</p>
d475 1
a475 1
<p style="margin-top: 1em"><b>--newer-than</b>
d482 2
a483 1
<p style="margin-top: 1em"><b>--newer-mtime-than</b>
d487 2
a488 2
<b>--newer-than</b>, except it compares mtime entries
instead of ctime entries.</p>
d490 1
a490 1
<p style="margin-top: 1em"><b>--nodump</b></p>
d496 1
a496 1
<p style="margin-top: 1em"><b>--nopreserveHFSCompression</b></p>
d498 5
a502 5
<p style="margin-left:17%;">(x mode only) Mac OS X specific
(v10.6 or later). Do not compress extracted regular files
which were compressed with HFS+ compression before archived.
By default, compress the regular files again with HFS+
compression.</p>
d504 1
a504 1
<p style="margin-top: 1em"><b>--null</b></p>
d507 5
a511 4
<b>-I</b> or <b>-T</b>) Filenames or patterns are separated
by null characters, not by newlines. This is often used to
read filenames output by the <b>-print0</b> option to
find(1).</p>
d513 1
a513 1
<p style="margin-top: 1em"><b>--no-acls</b></p>
d517 3
a519 3
reverse of <b>--acls</b> and the default behavior if
<b>tar</b> is run as non-root in x mode (on Mac OS X as any
user in c, r, u and x modes).</p>
d521 2
a522 1
<p style="margin-top: 1em"><b>--no-fflags</b></p>
d526 3
a528 2
<b>--fflags</b> and the default behavior if <b>tar</b> is
run as non-root in x mode.</p>
d530 1
a530 1
<p style="margin-top: 1em"><b>--no-mac-metadata</b></p>
d535 3
a537 2
the reverse of <b>--mac-metadata</b>. and the default
behavior if <b>tar</b> is run as non-root in x mode.</p>
d539 3
a541 2
<p style="margin-top: 1em"><b>-n</b>, <b>--norecurse</b>,
<b>--no-recursion</b></p>
d543 2
a544 1
<p style="margin-top: 1em"><b>--no-same-owner</b></p>
d548 2
a549 2
<b>--same-owner</b> and the default behavior if <b>tar</b>
is run as non-root.</p>
d552 1
a552 1
<p style="margin-top: 1em"><b>--no-same-permissions</b></p>
d557 7
a563 2
<b>-p</b> and the default behavior if <b>tar</b> is run as
non-root.</p>
d565 1
a565 1
<p style="margin-top: 1em"><b>--no-xattrs</b></p>
d569 2
a570 2
of <b>--xattrs</b> and the default behavior if <b>tar</b> is
run as non-root in x mode.</p>
d572 2
a573 1
<p style="margin-top: 1em"><b>--numeric-owner</b></p>
d576 6
a581 5
<b>--uname</b> &quot;&quot; <b>--gname</b> &quot;&quot;. On
extract, it causes user and group names in the archive to be
ignored in favor of the numeric user and group ids. On
create, it causes user and group names to not be stored in
the archive.</p>
d583 2
a584 2
<p style="margin-top: 1em"><b>-O</b>,
<b>--to-stdout</b></p>
d591 1
a591 1
<p style="margin-top: 1em"><b>-o</b></p>
d596 5
a600 4
significance unless <b>-p</b> is specified, and the program
is being run by the root user. In this case, the file modes
and flags from the archive will be restored, but ACLs or
owner information in the archive will be discarded.</p>
d602 1
a602 1
<p style="margin-top: 1em"><b>-o</b></p>
d605 1
a605 1
A synonym for <b>--format</b> <i>ustar</i></p>
d607 2
a608 1
<p style="margin-top: 1em"><b>--older</b> <i>date</i></p>
d614 2
a615 1
<p style="margin-top: 1em"><b>--older-mtime</b>
d619 2
a620 2
<b>--older</b>, except it compares mtime entries instead of
ctime entries.</p>
d622 1
a622 1
<p style="margin-top: 1em"><b>--older-than</b>
d629 2
a630 1
<p style="margin-top: 1em"><b>--older-mtime-than</b>
d634 3
a636 2
<b>--older-than</b>, except it compares mtime entries
instead of ctime entries.</p>
d638 1
a638 1
<p style="margin-top: 1em"><b>--one-file-system</b></p>
d643 1
a643 1
<p style="margin-top: 1em"><b>--options</b>
d761 1
a761 1
&rsquo;&rsquo;device, flags, gid, gname, link, mode, nlink,
d805 2
a806 2
This option is comparable to the <b>-i</b>,
<b>--ignore-zeros</b> option of GNU tar.</p>
d811 2
a812 2
<p style="margin-top: 1em"><b>-P</b>,
<b>--absolute-paths</b></p>
d822 3
a824 2
<p style="margin-top: 1em"><b>-p</b>, <b>--insecure</b>,
<b>--preserve-permissions</b></p>
d828 1
a828 1
including owner, file modes, ACLs, extended attributes and
d830 8
a837 5
from the archive. This is te reverse of
<b>--no-same-permissions</b> and the default if <b>tar</b>
is being run by root and can be partially overridden by also
specifying <b>--no-acls</b>, <b>--no-fflags</b>,
<b>--no-mac-metadata</b> or <b>--no-xattrs</b>.</p>
d839 1
a839 1
<p style="margin-top: 1em"><b>--passphrase</b>
d848 1
a848 1
<p style="margin-top: 1em"><b>--posix</b></p>
d851 1
a851 1
<b>--format</b> <i>pax</i></p>
d853 2
a854 2
<p style="margin-top: 1em"><b>-q</b>,
<b>--fast-read</b></p>
d865 1
a865 1
<p style="margin-top: 1em"><b>-S</b></p>
d873 2
a874 1
<p style="margin-top: 1em"><b>-s</b> <i>pattern</i></p>
d900 2
a901 1
<p style="margin-top: 1em"><b>--same-owner</b></p>
d904 4
a907 2
group IDs. This is the reverse of <b>--no-same-owner</b> and
the default behavior if <b>tar</b> is run as root.</p>
d909 1
a909 1
<p style="margin-top: 1em"><b>--strip-components</b>
d918 2
a919 2
<p style="margin-top: 1em"><b>-T</b> <i>filename</i>,
<b>--files-from</b> <i>filename</i></p>
d925 1
a925 1
&rsquo;&rsquo;-C&rsquo;&rsquo; on a line by itself will
d928 5
a932 5
newlines unless <b>--null</b> is specified. Note that
<b>--null</b> also disables the special handling of lines
containing &rsquo;&rsquo;-C&rsquo;&rsquo;. Note: If you are
generating lists of files using find(1), you probably want
to use <b>-n</b> as well.</p>
d934 1
a934 1
<p style="margin-top: 1em"><b>--totals</b></p>
d939 3
a941 2
<p style="margin-top: 1em"><b>-U</b>, <b>--unlink</b>,
<b>--unlink-first</b></p>
d951 2
a952 1
<p style="margin-top: 1em"><b>--uid</b> <i>id</i></p>
d956 2
a957 2
<b>--uname</b> is not also specified, the user name will be
set to match the user id.</p>
d959 2
a960 1
<p style="margin-top: 1em"><b>--uname</b> <i>name</i></p>
d966 4
a969 3
<b>--uid</b> option) will be used instead. On create, this
sets the user name that will be stored in the archive; the
name is not verified against the system user database.</p>
d971 2
a972 1
<p style="margin-top: 1em"><b>--use-compress-program</b>
d979 2
a980 1
<p style="margin-top: 1em"><b>-v</b>, <b>--verbose</b></p>
d986 3
a988 2
ls(1). An additional <b>-v</b> option will also provide
ls-like details in create and extract mode.</p>
d990 1
a990 1
<p style="margin-top: 1em"><b>--version</b></p>
d995 3
a997 2
<p style="margin-top: 1em"><b>-w</b>,
<b>--confirmation</b>, <b>--interactive</b></p>
d1002 2
a1003 2
<p style="margin-top: 1em"><b>-X</b> <i>filename</i>,
<b>--exclude-from</b> <i>filename</i></p>
d1006 3
a1008 2
patterns from the specified file. See <b>--exclude</b> for
more information about the handling of exclusions.</p>
d1010 1
a1010 1
<p style="margin-top: 1em"><b>--xattrs</b></p>
d1014 3
a1016 2
<b>--no-xattrs</b> and the default behavior in c, r, and u
modes or if <b>tar</b> is run in x mode as root.</p>
d1018 1
a1018 1
<p style="margin-top: 1em"><b>-y</b></p>
d1026 3
a1028 2
<p style="margin-top: 1em"><b>-Z</b>, <b>--compress</b>,
<b>--uncompress</b></p>
d1037 2
a1038 2
<p style="margin-top: 1em"><b>-z</b>, <b>--gunzip</b>,
<b>--gzip</b></p>
d1054 2
a1055 2
readers and compression readers. The <b>--options</b> option
overrides this.</p>
d1060 2
a1061 2
writers and compression writers. The <b>--options</b> option
overrides this.</p>
d1071 3
a1073 3
device. The <b>-f</b> option overrides this. Please see the
description of the <b>-f</b> option above for more
details.</p>
d1093 2
a1094 2
<p style="margin-left:14%;"><b>tar -czf</b> <i>file.tar.gz
source.c source.h</i></p>
d1099 1
a1099 1
<p style="margin-left:14%;"><b>tar -tvf</b>
d1105 1
a1105 1
<p style="margin-left:14%;"><b>tar -x</b></p>
d1110 1
a1110 1
<p style="margin-left:14%;"><b>tar -tf</b>
d1116 3
a1118 3
<p style="margin-left:14%;"><b>tar -cf</b> <i>-</i>
<b>-C</b> <i>srcdir&nbsp;.</i> | <b>tar -xpf</b> <i>-</i>
<b>-C</b> <i>destdir</i></p>
d1122 3
a1124 3
<p style="margin-left:14%;">cd srcdir ; <b>tar -cf</b>
<i>-&nbsp;.</i> | (<i>cd destdir ;</i> <b>tar -xpf</b>
<i>-</i>)</p>
d1133 2
a1134 2
<p style="margin-left:14%;"><b>tar -c -f</b> <i>new.tar
foo1</i> <b>@@</b><i>old.tgz</i> <b>-C</b><i>/tmp
d1158 7
a1164 6
<b>--newer</b> and <b>--newer-mtime</b> switches accept a
variety of common date and time specifications, including
&rsquo;&rsquo;12 Mar 2005 7:14:29pm&rsquo;&rsquo;,
&rsquo;&rsquo;2005-03-12 19:14&rsquo;&rsquo;,
&rsquo;&rsquo;5 minutes ago&rsquo;&rsquo;, and
&rsquo;&rsquo;19:14 PST May 1&rsquo;&rsquo;.</p>
d1167 8
a1174 8
<b>--options</b> argument can be used to control various
details of archive generation or reading. For example, you
can generate mtree output which only contains <b>type</b>,
<b>time</b>, and <b>uid</b> keywords:</p>

<p style="margin-left:14%;"><b>tar -cf</b> <i>file.tar</i>
<b>--format=mtree
--options=&rsquo;!all,type,time,uid&rsquo;</b>
d1180 3
a1182 2
<p style="margin-left:14%;"><b>tar -czf</b> <i>file.tar</i>
<b>--options=&rsquo;compression-level=9&rsquo;</b>.</p>
d1261 4
a1264 4
<b>-U</b> is specified, any intermediate symlink will also
be unconditionally removed. If neither <b>-U</b> nor
<b>-P</b> is specified, <b>tar</b> will refuse to extract
the entry.</p>
d1270 1
a1270 1
<p style="margin-left:14%;"><b>tar -tf</b>
d1274 9
a1282 8
use the <b>-k</b> option to ensure that <b>tar</b> will not
overwrite any existing files or the <b>-U</b> option to
remove any pre-existing files. You should generally not
extract archives while running with super-user privileges.
Note that the <b>-P</b> option to <b>tar</b> disables the
security checks above and allows you to extract an archive
while preserving any absolute pathnames, <i>..</i>
components, or symlinks to other directories.</p>
d1294 1
a1294 1
9945-1:1996 (&rsquo;&rsquo;POSIX.1&rsquo;&rsquo;) but was
d1296 1
a1296 1
(&rsquo;&rsquo;POSIX.1&rsquo;&rsquo;). The options supported
d1304 1
a1304 1
1003.1-2001 (&rsquo;&rsquo;POSIX.1&rsquo;&rsquo;) for the
d1326 4
a1329 4
9945-1:1996 (&rsquo;&rsquo;POSIX.1&rsquo;&rsquo;) for the
definition of the <b>-l</b> option. Note that GNU tar prior
to version 1.15 treated <b>-l</b> as a synonym for the
<b>--one-file-system</b> option.</p>
d1331 2
a1332 2
<p style="margin-left:6%; margin-top: 1em">The <b>-C</b>
<i>dir</i> option may differ from historic
d1354 1
a1354 1
<p style="margin-left:14%;"><b>tar -czf</b> <i>-
d1359 2
a1360 2
<p style="margin-left:14%;"><b>tar -cf</b> <i>- file</i> |
<b>gzip</b></p>
d1378 1
a1378 1
stripped unless the <b>-P</b> option is specified.</p>
d1395 1
a1395 1
February&nbsp;25, 2017 BSD</p>
@


1.1.1.8
log
@Import libarchive-3.3.3 as should have done originally.
@
text
@d2 1
a2 1
<!-- CreationDate: Mon Sep  3 22:55:11 2018 -->
d351 3
a353 3
option is ignored. Note that this <b>tar</b> implementation
recognizes XZ compression automatically when reading
archives.</p>
d360 3
a362 3
this option is ignored. Note that this <b>tar</b>
implementation recognizes bzip2 compression automatically
when reading archives.</p>
d397 1
a397 3
this option is ignored. Note that this <b>tar</b>
implementation recognizes lrzip compression automatically
when reading archives.</p>
d403 2
a404 11
writing it. In extract or list modes, this option is
ignored. Note that this <b>tar</b> implementation recognizes
lz4 compression automatically when reading archives.</p>

<p style="margin-top: 1em"><b>--zstd</b></p>

<p style="margin-left:17%; margin-top: 1em">(c mode only)
Compress the archive with zstd-compatible compression before
writing it. In extract or list modes, this option is
ignored. Note that this <b>tar</b> implementation recognizes
zstd compression automatically when reading archives.</p>
d410 3
a412 3
algorithm. In extract or list modes, this option is ignored.
Use of this option is discouraged and new archives should be
created with <b>--xz</b> instead. Note that this <b>tar</b>
d420 1
a420 3
list modes, this option is ignored. Note that this
<b>tar</b> implementation recognizes LZO compression
automatically when reading archives.</p>
a703 5
<p><b>zstd:compression-level</b></p>

<p style="margin-left:27%;">A decimal integer from 1 to 22
specifying the zstd compression level.</p>

d967 3
a969 3
list modes, this option is ignored. Note that this
<b>tar</b> implementation recognizes bzip2 compression
automatically when reading archives.</p>
d976 4
a979 3
modes, this option is ignored. Note that this <b>tar</b>
implementation recognizes compress compression automatically
when reading archives.</p>
d986 3
a988 3
this option is ignored. Note that this <b>tar</b>
implementation recognizes gzip compression automatically
when reading archives.</p>
d1336 1
a1336 1
October&nbsp;1, 2017 BSD</p>
@


1.1.1.9
log
@Import libarchive 3.4.0
@
text
@d1 2
a2 2
<!-- Creator     : groff version 1.22.4 -->
<!-- CreationDate: Wed Jun 12 21:10:19 2019 -->
d57 4
a60 3
synopsis form shows a &ldquo;bundled&rdquo; option word.
This usage is provided for compatibility with historical
implementations. See COMPATIBILITY below for details.</p>
d179 3
a181 3
<p style="margin-left:17%;">ignores the &ldquo;-j&rdquo;
option, and creates a new archive with restricted pax format
and gzip compression,</p>
d235 1
a235 2
file attributes or file flags that might prevent
removal.</p>
a244 8
<p style="margin-top: 1em"><b>--exclude-vcs</b></p>

<p style="margin-left:17%;">Do not process files or
directories internally used by the version control systems
&rsquo;CVS&rsquo;, &rsquo;RCS&rsquo;, &rsquo;SCCS&rsquo;,
&rsquo;SVN&rsquo;, &rsquo;Arch&rsquo;, &rsquo;Bazaar&rsquo;,
&rsquo;Mercurial&rsquo; and &rsquo;Darcs&rsquo;.</p>

d248 3
a250 4
or extract platform-specific file attributes or file flags.
This is the reverse of <b>--no-fflags</b> and the default
behavior in c, r, and u modes or if <b>tar</b> is run in x
mode as root.</p>
d257 9
a265 7
include &ldquo;cpio&rdquo;, &ldquo;pax&rdquo;,
&ldquo;shar&rdquo;, and &ldquo;ustar&rdquo;. Other formats
may also be supported; see libarchive-formats(5) for more
information about currently-supported formats. In r and u
modes, when extending an existing archive, the format
specified here must be compatible with the format of the
existing archive on disk.</p>
d446 4
a449 4
file attributes using copyfile(3) in AppleDouble format.
This is the reverse of <b>--no-mac-metadata</b>. and the
default behavior in c, r, and u modes or if <b>tar</b> is
run in x mode as root.</p>
d454 2
a455 2
<p style="margin-left:17%;">Do not operate recursively on
the content of directories.</p>
d517 3
a519 3
archive or extract file attributes or file flags. This is
the reverse of <b>--fflags</b> and the default behavior if
<b>tar</b> is run as non-root in x mode.</p>
d524 1
a524 1
specific. Do not archive or extract ACLs and extended file
d529 3
d543 4
a546 4
full permissions (SGID, SUID, sticky bit, file attributes or
file flags, extended file attributes and ACLs). This is the
reverse of <b>-p</b> and the default behavior if <b>tar</b>
is run as non-root.</p>
d551 3
a553 3
archive or extract extended file attributes. This is the
reverse of <b>--xattrs</b> and the default behavior if
<b>tar</b> is run as non-root in x mode.</p>
d742 2
a743 2
&ldquo;device, flags, gid, gname, link, mode, nlink, size,
time, type, uid, uname&rdquo;.</p>
d808 3
a810 3
including file modes, file attributes or file flags,
extended file attributes and ACLs, if available, for each
item extracted from the archive. This is the reverse of
d812 1
a812 1
is being run as root. It can be partially overridden by also
d897 7
a903 6
<i>filename</i>. The special name &ldquo;-C&rdquo; on a line
by itself will cause the current directory to be changed to
the directory specified on the following line. Names are
terminated by newlines unless <b>--null</b> is specified.
Note that <b>--null</b> also disables the special handling
of lines containing &ldquo;-C&rdquo;. Note: If you are
d977 1
a977 1
or extract extended file attributes. This is the reverse of
d1121 4
a1124 3
&ldquo;12 Mar 2005 7:14:29pm&rdquo;, &ldquo;2005-03-12
19:14&rdquo;, &ldquo;5 minutes ago&rdquo;, and &ldquo;19:14
PST May 1&rdquo;.</p>
d1252 7
a1258 6
9945-1:1996 (&ldquo;POSIX.1&rdquo;) but was dropped from
IEEE Std 1003.1-2001 (&ldquo;POSIX.1&rdquo;). The options
supported by this implementation were developed by surveying
a number of existing tar implementations as well as the old
POSIX specification for tar and the current POSIX
specification for pax.</p>
d1262 2
a1263 1
1003.1-2001 (&ldquo;POSIX.1&rdquo;) for the pax command.</p>
d1284 3
a1286 3
9945-1:1996 (&ldquo;POSIX.1&rdquo;) for the definition of
the <b>-l</b> option. Note that GNU tar prior to version
1.15 treated <b>-l</b> as a synonym for the
d1352 2
a1353 2
<p style="margin-left:6%; margin-top: 1em">BSD June&nbsp;3,
2019 BSD</p>
@


1.1.1.10
log
@Import libarchive 3.7.2
@
text
@d2 1
a2 1
<!-- CreationDate: Mon Sep 11 22:06:22 2023 -->
d249 3
a251 4
&rsquo;Arch&rsquo;, &rsquo;Bazaar&rsquo;, &rsquo;CVS&rsquo;,
&rsquo;Darcs&rsquo;, &rsquo;Mercurial&rsquo;,
&rsquo;RCS&rsquo;, &rsquo;SCCS&rsquo;, &rsquo;SVN&rsquo; and
&rsquo;git&rsquo;.</p>
a535 12
<p style="margin-top: 1em"><b>--no-read-sparse</b></p>

<p style="margin-left:17%;">(c, r, u modes only) Do not
read sparse file information from disk. This is the reverse
of <b>--read-sparse</b>.</p>

<p style="margin-top: 1em"><b>--no-safe-writes</b></p>

<p style="margin-left:17%;">(x mode only) Do not create
temporary files and use rename(2) to replace the original
ones. This is the reverse of <b>--safe-writes</b>.</p>

d657 2
a658 7
<p style="margin-left:17%; margin-top: 1em">The complete
list of supported modules and keys for create and append
modes is in archive_write_set_options(3) and for extract and
list modes in archive_read_set_options(3).</p>

<p style="margin-left:17%; margin-top: 1em">Examples of
supported options:</p>
d723 2
a724 27
<p style="margin-left:27%;">A decimal integer specifying
the zstd compression level. Supported values depend on the
library version, common values are from 1 to 22.</p>

<p><b>zstd:threads</b></p>

<p style="margin-left:27%;">Specify the number of worker
threads to use. Setting threads to a special value 0 makes
zstd(1) use as many threads as there are CPU cores on the
system.</p>

<p><b>zstd:frame-per-file</b></p>

<p style="margin-left:27%;">Start a new compression frame
at the beginning of each file in the archive.</p>

<p><b>zstd:min-frame-size</b>=<i>N</i></p>

<p style="margin-left:27%;">In combination with
<b>zstd:frame-per-file</b>, do not start a new compression
frame unless the current frame is at least <i>N</i>
bytes.</p>

<p><b>zstd:max-frame-size</b>=<i>N</i></p>

<p style="margin-left:27%;">Start a new compression frame
as soon as the current frame exceeds <i>N</i> bytes.</p>
a735 7
<p><b>xz:threads</b></p>

<p style="margin-left:27%;">Specify the number of worker
threads to use. Setting threads to a special value 0 makes
xz(1) use as many threads as there are CPU cores on the
system.</p>

a845 6
<p style="margin-top: 1em"><b>--read-sparse</b></p>

<p style="margin-left:17%;">(c, r, u modes only) Read
sparse file information from disk. This is the reverse of
<b>--no-read-sparse</b> and the default behavior.</p>

a879 16
<p style="margin-top: 1em"><b>--safe-writes</b></p>

<p style="margin-left:17%;">(x mode only) Extract files
atomically. By default <b>tar</b> unlinks the original file
with the same name as the extracted file (if it exists), and
then creates it immediately under the same name and writes
to it. For a short period of time, applications trying to
access the file might not find it, or see incomplete
results. If <b>--safe-writes</b> is enabled, <b>tar</b>
first creates a unique temporary file, then writes the new
contents to the temporary file, and finally renames the
temporary file to its final name atomically using rename(2).
This guarantees that an application accessing the file, will
either see the old contents or the new contents at all
times.</p>

d1017 1
a1017 1
<p style="margin-left:17%;">The default options for format
d1023 1
a1023 1
<p style="margin-left:17%;">The default options for format
d1029 1
a1029 1
<p style="margin-left:17%; margin-top: 1em">The locale to
d1034 1
a1034 1
<p style="margin-left:17%; margin-top: 1em">The default
d1041 1
a1041 1
<p style="margin-left:17%; margin-top: 1em">The timezone to
d1081 1
a1081 1
<b>-C</b> <i>srcdir .</i> | <b>tar -xpf</b> <i>-</i>
d1086 3
a1088 2
<p style="margin-left:14%;">cd srcdir ; <b>tar -cf</b> <i>-
.</i> | (<i>cd destdir ;</i> <b>tar -xpf</b> <i>-</i>)</p>
d1352 2
a1353 2
<p style="margin-left:6%; margin-top: 1em">BSD
December&nbsp;1, 2022 BSD</p>
@


1.1.1.11
log
@libarchive: import version 3.7.3
@
text
@d2 1
a2 1
<!-- CreationDate: Sun Apr  7 22:36:28 2024 -->
a303 8
<p style="margin-top: 1em"><b>--group</b>
<i>name</i>[:<i>gid</i>]</p>

<p style="margin-left:17%;">Use the provided group, if
<i>gid</i> is not provided, <i>name</i> can be either a
group name or numeric id. See the <b>--gname</b> option for
details.</p>

d457 1
a457 3
run in x mode as root. Currently supported only for pax
formats (including &quot;pax restricted&quot;, the default
tar format for bsdtar.)</p>
d757 1
a757 11
<p><b>zstd:min-frame-in</b>=<i>N</i></p>

<p style="margin-left:27%;">In combination with
<b>zstd:frame-per-file</b>, do not start a new compression
frame unless the uncompressed size of the current frame is
at least <i>N</i> bytes. The number may be followed by k /
kB, M / MB, or G / GB to indicate kilobytes, megabytes or
gigabytes respectively.</p>

<p><b>zstd:min-frame-out</b>=<i>N</i>,
<b>zstd:min-frame-size</b>=<i>N</i></p>
d761 2
a762 4
frame unless the compressed size of the current frame is at
least <i>N</i> bytes. The number may be followed by k / kB,
M / MB, or G / GB to indicate kilobytes, megabytes or
gigabytes respectively.</p>
d764 1
a764 2
<p><b>zstd:max-frame-in</b>=<i>N</i>,
<b>zstd:max-frame-size</b>=<i>N</i></p>
d767 1
a767 14
as soon as possible after the uncompressed size of the
current frame exceeds <i>N</i> bytes. The number may be
followed by k / kB, M / MB, or G / GB to indicate kilobytes,
megabytes or gigabytes respectively. Values less than 1,024
will be rejected.</p>

<p><b>zstd:max-frame-out</b>=<i>N</i></p>

<p style="margin-left:27%;">Start a new compression frame
as soon as possible after the compressed size of the current
frame exceeds <i>N</i> bytes. The number may be followed by
k / kB, M / MB, or G / GB to indicate kilobytes, megabytes
or gigabytes respectively. Values less than 1,024 will be
rejected.</p>
d914 1
a914 1
format <i>/old/new/</i>[bghHprRsS] where <i>old</i> is a
d926 9
a934 12
the new path name should be printed to standard error. The
optional trailing b specifies that the substitution should
be matched from the beginning of the string rather than from
right after the position at which the previous matching
substitution ended. Optional trailing H, R, or S characters
suppress substitutions for hardlink targets, regular
filenames, or symlink targets, respectively. Optional
trailing h, r, or s characters enable substitutions for
hardlink targets, regular filenames, or symlink targets,
respectively. The default is <i>hrs</i> which applies
substitutions to all names. In particular, it is never
necessary to specify h, r, or s.</p>
a1021 8
<p style="margin-top: 1em"><b>--owner</b>
<i>name</i>[:<i>uid</i>]</p>

<p style="margin-left:17%;">Use the provided user, if
<i>uid</i> is not provided, <i>name</i> can be either an
username or numeric id. See the <b>--uname</b> option for
details.</p>

d1424 1
a1424 1
March&nbsp;1, 2024 BSD</p>
@


1.1.1.12
log
@Libarchive 3.7.4 is a bugfix and security release

Security fixes:

rar: Fix OOB in rar e8 filter (CVE-2024-26256)
zip: Fix out of boundary access

Important bugfixes:

7zip: Limit amount of properties
bsdtar: Fix error handling around strtol() usages
passphrase: Improve newline handling on Windows
passphrase: Never allow empty passwords
rar: Fix "File CRC Error" when extracting specific rar4 archives
xar: Avoid infinite link loop
zip: Update AppleDouble support for directories
zstd: Implement core detection
@
text
@d2 1
a2 1
<!-- CreationDate: Fri Apr 26 09:23:48 2024 -->
d749 1
a749 1
<p><b>zstd:compression-level</b>=<i>N</i></p>
d755 1
a755 1
<p><b>zstd:threads</b>=<i>N</i></p>
d758 3
a760 2
threads to use, or 0 to use as many threads as there are CPU
cores in the system.</p>
d1471 1
a1471 1
April&nbsp;23, 2024 BSD</p>
@


1.1.1.13
log
@libarchive: imported version 3.7.5

Libarchive 3.7.5

Security fixes:

fix multiple vulnerabilities identified by SAST
cpio: ignore out-of-range gid/uid/size/ino and harden AFIO parsing
lzop: prevent integer overflow
rar4: protect copy_from_lzss_window_to_unp()
rar4: fix CVE-2024-26256
rar4: fix OOB in delta and audio filter
rar4: fix out of boundary access with large files
rar4: add boundary checks to rgb filter
rar4: fix OOB access with unicode filenames
rar5: clear 'data ready' cache on window buffer reallocs
rpm: calculate huge header sizes correctly
unzip: unify EOF handling
util: fix out of boundary access in mktemp functions
uu: stop processing if lines are too long

Important bugfixes:

7zip: fix issue when skipping first file in 7zip archive that is a multiple of 65536 bytes
ar: fix archive entries having no type
lha: do not allow negative file sizes
lha: fix integer truncation on 32-bit systems
shar: check strdup return value
rar5: don't try to read rediculously long names
xar: fix another infinite loop and expat error handling
many Windows fixes, cleanups and improvements
@
text
@d2 1
a2 1
<!-- CreationDate: Fri Sep 13 20:31:07 2024 -->
@


1.1.1.14
log
@libarchove: import version 3.7.7
@
text
@d1 2
a2 2
<!-- Creator     : groff version 1.23.0 -->
<!-- CreationDate: Sun Oct 13 08:12:11 2024 -->
d23 1
a23 1
<p><i>TAR</i>(1) General Commands Manual <i>TAR</i>(1)</p>
d27 2
a28 2
<p style="margin-left:9%;">tar &mdash; manipulate tape
archives</p>
d32 1
a32 1
<p style="margin-left:14%;"><b>tar</b>
d39 1
a39 1
<p style="margin-left:14%;"><b>tar</b> {<b>-c</b>}
d50 1
a50 1
<p style="margin-left:9%;"><b>tar</b> creates and
d56 1
a56 1
<p style="margin-left:9%; margin-top: 1em">The first
d61 1
a61 1
<p style="margin-left:9%; margin-top: 1em">The other
d67 1
a67 1
<p style="margin-left:19%; margin-top: 1em">Create a new
d73 1
a73 1
<p style="margin-left:19%; margin-top: 1em">Like <b>-c</b>,
d81 1
a81 1
<p style="margin-left:19%; margin-top: 1em">List archive
d87 1
a87 1
<p style="margin-left:19%; margin-top: 1em">Like <b>-r</b>,
d96 1
a96 1
<p style="margin-left:19%; margin-top: 1em">Extract to disk
d102 1
a102 1
<p style="margin-left:9%; margin-top: 1em">In <b>-c</b>,
d108 1
a108 1
<p style="margin-left:9%; margin-top: 1em">In extract or
d113 1
a113 1
documented in <i>tcsh</i>(1).</p>
d117 1
a117 1
<p style="margin-left:9%;">Unless specifically stated
d123 1
a123 1
<p style="margin-left:19%;">(c and r modes only) The
d127 1
a127 1
<p style="margin-left:27%;"><b>tar -c -f</b> <i>-
d130 1
a130 1
<p style="margin-left:19%;">writes a new archive to
d134 1
a134 1
<p style="margin-left:27%;"><b>tar -c -f</b> <i>- newfile
d137 1
a137 1
<p style="margin-left:19%;">creates a new archive with only
d140 1
a140 1
<p style="margin-left:27%;"><b>tar -czf</b> <i>-</i>
d143 1
a143 1
<p style="margin-left:19%;">reads an archive from standard
d152 1
a152 1
<p style="margin-left:19%;">(c mode only) Use the archive
d156 1
a156 1
<p style="margin-left:27%;"><b>tar -a -cf</b>
d159 1
a159 1
<p style="margin-left:19%;">creates a new archive with
d162 1
a162 1
<p style="margin-left:27%;"><b>tar -a -cf</b>
d165 1
a165 1
<p style="margin-left:19%;">creates a new archive with
d169 1
a169 1
<p style="margin-left:27%;"><b>tar -a -cf</b>
d172 1
a172 1
<p style="margin-left:19%;">creates a new archive with zip
d175 1
a175 1
<p style="margin-left:27%;"><b>tar -a -jcf</b>
d178 1
a178 1
<p style="margin-left:19%;">ignores the &ldquo;-j&rdquo;
d182 1
a182 1
<p style="margin-left:27%;"><b>tar -a -jcf</b>
d185 1
a185 1
<p style="margin-left:19%;">if it is unknown suffix or no
d191 1
a191 1
<p style="margin-left:19%; margin-top: 1em">(c, r, u, x
d202 2
a203 2
<p style="margin-left:19%;">Ignored for compatibility with
other <i>tar</i>(1) implementations.</p>
d208 1
a208 1
<p style="margin-left:19%;">Specify the block size, in
d218 1
a218 1
<p style="margin-left:19%;">In c and r mode, this changes
d225 1
a225 1
<p style="margin-left:19%;">(x mode only) <b>chroot</b>()
d232 1
a232 1
<p style="margin-left:19%;">(x mode only) Before removing
d240 1
a240 1
<p style="margin-left:19%;">Do not process files or
d247 1
a247 1
<p style="margin-left:19%;">Do not process files or
d249 4
a252 4
&lsquo;Arch&rsquo;, &lsquo;Bazaar&rsquo;, &lsquo;CVS&rsquo;,
&lsquo;Darcs&rsquo;, &lsquo;Mercurial&rsquo;,
&lsquo;RCS&rsquo;, &lsquo;SCCS&rsquo;, &lsquo;SVN&rsquo; and
&lsquo;git&rsquo;.</p>
d256 1
a256 1
<p style="margin-left:19%;">(c, r, u, x modes only) Archive
d265 1
a265 1
<p style="margin-left:19%;">(c, r, u mode only) Use the
d269 3
a271 3
may also be supported; see <i>libarchive-formats</i>(5) for
more information about currently-supported formats. In r and
u modes, when extending an existing archive, the format
d278 1
a278 1
<p style="margin-left:19%;">Read the archive from or write
d287 1
a287 1
<p style="margin-left:19%;">Use the provided group id
d296 1
a296 1
<p style="margin-left:19%;">Use the provided group name. On
d307 1
a307 1
<p style="margin-left:19%;">Use the provided group, if
d314 1
a314 1
<p style="margin-left:19%; margin-top: 1em">(c and r modes
d321 1
a321 1
<p style="margin-left:19%; margin-top: 1em">(c and r modes
d326 1
a326 1
<p style="margin-left:19%; margin-top: 1em">Synonym for
d331 1
a331 1
<p style="margin-left:19%; margin-top: 1em">Show usage.</p>
d335 1
a335 1
<p style="margin-left:19%;">(x mode only) Mac OS X specific
d341 1
a341 1
<p style="margin-left:19%;">An alias of <b>--options
d348 1
a348 1
<p style="margin-left:19%;">Process only files or
d356 1
a356 1
<p style="margin-left:27%;"><b>tar -c -f</b> <i>new.tar</i>
d359 1
a359 1
<p style="margin-left:19%;">creates a new archive
d361 1
a361 1
<i>old.tgz</i> containing the string &lsquo;foo&rsquo;.</p>
d365 5
a369 5
<p style="margin-left:19%;">(c mode only) Compress the
resulting archive with <i>xz</i>(1). In extract or list
modes, this option is ignored. Note that this <b>tar</b>
implementation recognizes XZ compression automatically when
reading archives.</p>
d374 3
a376 3
<p style="margin-left:19%;">(c mode only) Compress the
resulting archive with <i>bzip2</i>(1). In extract or list
modes, this option is ignored. Note that this <b>tar</b>
d383 1
a383 1
<p style="margin-left:19%;">(x mode only) Do not overwrite
d390 1
a390 1
<p style="margin-left:19%;">(x mode only) Do not overwrite
d397 1
a397 1
<p style="margin-left:19%;">(c and r modes only) All
d405 1
a405 1
<p style="margin-left:19%;">(c and r modes only) Issue a
d411 3
a413 3
<p style="margin-left:19%;">(c mode only) Compress the
resulting archive with <i>lrzip</i>(1). In extract or list
modes, this option is ignored. Note that this <b>tar</b>
d419 1
a419 1
<p style="margin-left:19%; margin-top: 1em">(c mode only)
d427 1
a427 1
<p style="margin-left:19%; margin-top: 1em">(c mode only)
d435 1
a435 1
<p style="margin-left:19%; margin-top: 1em">(c mode only)
d445 4
a448 4
<p style="margin-left:19%; margin-top: 1em">(c mode only)
Compress the resulting archive with <i>lzop</i>(1). In
extract or list modes, this option is ignored. Note that
this <b>tar</b> implementation recognizes LZO compression
d454 1
a454 1
<p style="margin-left:19%;">(x mode only) Do not extract
d460 1
a460 1
<p style="margin-left:19%;">(c, r, u and x mode only) Mac
d462 4
a465 4
file attributes using <i>copyfile</i>(3) in AppleDouble
format. This is the reverse of <b>--no-mac-metadata</b>. and
the default behavior in c, r, and u modes or if <b>tar</b>
is run in x mode as root. Currently supported only for pax
d472 1
a472 1
<p style="margin-left:19%;">Do not operate recursively on
d477 1
a477 1
<p style="margin-left:19%;">(c, r, u modes only) Only
d484 1
a484 1
<p style="margin-left:19%;">(c, r, u modes only) Like
d491 1
a491 1
<p style="margin-left:19%;">(c, r, u modes only) Only
d498 1
a498 1
<p style="margin-left:19%;">(c, r, u modes only) Like
d504 1
a504 1
<p style="margin-left:19%;">(c and r modes only) Honor the
d510 1
a510 1
<p style="margin-left:19%;">(x mode only) Mac OS X specific
d518 1
a518 1
<p style="margin-left:19%; margin-top: 1em">(use with
d522 1
a522 1
<i>find</i>(1).</p>
d526 1
a526 1
<p style="margin-left:19%;">(c, r, u, x modes only) Do not
d534 1
a534 1
<p style="margin-left:19%;">(c, r, u, x modes only) Do not
d541 1
a541 1
<p style="margin-left:19%;">(x mode only) Mac OS X
d543 3
a545 4
attributes using <i>copyfile</i>(3) in AppleDouble format.
This is the reverse of <b>--mac-metadata</b>. and the
default behavior if <b>tar</b> is run as non-root in x
mode.</p>
d549 1
a549 1
<p style="margin-left:19%;">(c, r, u modes only) Do not
d555 3
a557 4
<p style="margin-left:19%;">(x mode only) Do not create
temporary files and use <i>rename</i>(2) to replace the
original ones. This is the reverse of
<b>--safe-writes</b>.</p>
d561 1
a561 1
<p style="margin-left:19%;">(x mode only) Do not extract
d569 1
a569 1
<p style="margin-left:19%;">(x mode only) Do not extract
d577 1
a577 1
<p style="margin-left:19%;">(c, r, u, x modes only) Do not
d584 1
a584 1
<p style="margin-left:19%;">This is equivalent to
d594 1
a594 1
<p style="margin-left:19%;">(x, t modes only) In extract
d601 1
a601 1
<p style="margin-left:19%; margin-top: 1em">(x mode) Use
d611 1
a611 1
<p style="margin-left:19%; margin-top: 1em">(c, r, u mode)
d616 1
a616 1
<p style="margin-left:19%;">(c, r, u modes only) Only
d623 1
a623 1
<p style="margin-left:19%;">(c, r, u modes only) Like
d630 1
a630 1
<p style="margin-left:19%;">(c, r, u modes only) Only
d637 1
a637 1
<p style="margin-left:19%;">(c, r, u modes only) Like
d643 1
a643 1
<p style="margin-left:19%;">(c, r, and u modes) Do not
d649 1
a649 1
<p style="margin-left:19%;">Select optional behaviors for
d658 1
a658 1
<p style="margin-left:29%;">The key will be set to the
d664 1
a664 1
<p style="margin-left:29%; margin-top: 1em">The key will be
d670 1
a670 1
<p style="margin-left:29%; margin-top: 1em">The key will be
d676 1
a676 1
<p style="margin-left:29%;">As above, but the corresponding
d680 1
a680 1
<p style="margin-left:19%; margin-top: 1em">The complete
d682 2
a683 3
modes is in <i>archive_write_set_options</i>(3) and for
extract and list modes in
<i>archive_read_set_options</i>(3).</p>
d685 1
a685 1
<p style="margin-left:19%; margin-top: 1em">Examples of
d690 1
a690 1
<p style="margin-left:29%;">Support Joliet extensions. This
d696 1
a696 1
<p style="margin-left:29%;">Support Rock Ridge extensions.
d702 1
a702 1
<p style="margin-left:29%;">A decimal integer from 1 to 9
d707 1
a707 1
<p style="margin-left:29%;">Store timestamp. This is
d713 1
a713 1
<p style="margin-left:29%;">Use <i>type</i> as compression
d719 1
a719 1
<p style="margin-left:29%;">A decimal integer from 1 to 9
d724 1
a724 1
<p style="margin-left:29%;">A decimal integer from 1 to 9
d729 1
a729 1
<p style="margin-left:29%;">Enable stream checksum. This is
d734 1
a734 1
<p style="margin-left:29%;">Enable block checksum (Disabled
d739 1
a739 1
<p style="margin-left:29%;">A decimal integer from 4 to 7
d745 1
a745 1
<p style="margin-left:29%;">Use the previous block of the
d751 1
a751 1
<p style="margin-left:29%;">A decimal integer specifying
d757 1
a757 1
<p style="margin-left:29%;">Specify the number of worker
d763 1
a763 1
<p style="margin-left:29%;">Start a new compression frame
d768 1
a768 1
<p style="margin-left:29%;">In combination with
d771 3
a773 3
at least <i>N</i> bytes. The number may be followed by <b>k
/ kB</b>, <b>M / MB</b>, or <b>G / GB</b> to indicate
kilobytes, megabytes or gigabytes respectively.</p>
d778 1
a778 1
<p style="margin-left:29%;">In combination with
d781 3
a783 3
least <i>N</i> bytes. The number may be followed by <b>k /
kB</b>, <b>M / MB</b>, or <b>G / GB</b> to indicate
kilobytes, megabytes or gigabytes respectively.</p>
d788 1
a788 1
<p style="margin-left:29%;">Start a new compression frame
d791 3
a793 3
followed by <b>k / kB</b>, <b>M / MB</b>, or <b>G / GB</b>
to indicate kilobytes, megabytes or gigabytes respectively.
Values less than 1,024 will be rejected.</p>
d797 1
a797 1
<p style="margin-left:29%;">Start a new compression frame
d800 3
a802 3
<b>k / kB</b>, <b>M / MB</b>, or <b>G / GB</b> to indicate
kilobytes, megabytes or gigabytes respectively. Values less
than 1,024 will be rejected.</p>
d806 1
a806 1
<p style="margin-left:29%;">A decimal integer from 1 to 9
d811 1
a811 1
<p style="margin-left:29%;">A decimal integer from 0 to 9
d816 1
a816 1
<p style="margin-left:29%;">Specify the number of worker
d818 2
a819 2
<i>xz</i>(1) use as many threads as there are CPU cores on
the system.</p>
d823 1
a823 1
<p style="margin-left:29%;">The mtree writer module allows
d836 1
a836 1
<p style="margin-left:29%;">Enables all of the above
d842 1
a842 1
<p style="margin-left:29%;">Enable generation of
d847 1
a847 1
<p style="margin-left:29%;">Produce human-readable output
d853 1
a853 1
<p style="margin-left:29%;">Use <i>type</i> as compression
d859 1
a859 1
<p style="margin-left:29%;">Enable encryption using
d864 1
a864 1
<p style="margin-left:29%;">Use <i>type</i> as encryption
d871 1
a871 1
<p style="margin-left:29%;">Ignore zeroed blocks in the
d878 1
a878 1
<p style="margin-left:19%;">If a provided option is not
d884 1
a884 1
<p style="margin-left:19%;">Preserve pathnames. By default,
d895 1
a895 1
<p style="margin-left:19%;">(x mode only) Preserve file
d908 1
a908 1
<p style="margin-left:19%;">The <i>passphrase</i> is used
d916 1
a916 1
<p style="margin-left:19%;">(c, r, u mode only) Synonym for
d922 1
a922 1
<p style="margin-left:19%;">(x and t mode only) Extract or
d933 1
a933 1
<p style="margin-left:19%;">(c, r, u modes only) Read
d939 1
a939 1
<p style="margin-left:19%; margin-top: 1em">(x mode only)
d947 1
a947 1
<p style="margin-left:19%;">Modify file or archive member
d953 20
a972 20
is not matched, the pattern is skipped. Within <i>new</i>,
&#732; is substituted with the match, \1 to \9 with the
content of the corresponding captured group. The optional
trailing g specifies that matching should continue after the
matched part and stop on the first unmatched pattern. The
optional trailing s specifies that the pattern applies to
the value of symbolic links. The optional trailing p
specifies that after a successful substitution the original
path name and the new path name should be printed to
standard error. The optional trailing b specifies that the
substitution should be matched from the beginning of the
string rather than from right after the position at which
the previous matching substitution ended. Optional trailing
H, R, or S characters suppress substitutions for hardlink
targets, regular filenames, or symlink targets,
respectively. Optional trailing h, r, or s characters enable
substitutions for hardlink targets, regular filenames, or
symlink targets, respectively. The default is <i>hrs</i>
which applies substitutions to all names. In particular, it
is never necessary to specify h, r, or s.</p>
d976 1
a976 1
<p style="margin-left:19%;">(x mode only) Extract files
d985 4
a988 4
temporary file to its final name atomically using
<i>rename</i>(2). This guarantees that an application
accessing the file, will either see the old contents or the
new contents at all times.</p>
d992 1
a992 1
<p style="margin-left:19%;">(x mode only) Extract owner and
d999 1
a999 1
<p style="margin-left:19%;">Remove the specified number of
d1008 1
a1008 1
<p style="margin-left:19%;">In x or t mode, <b>tar</b> will
d1017 2
a1018 2
generating lists of files using <i>find</i>(1), you probably
want to use <b>-n</b> as well.</p>
d1022 1
a1022 1
<p style="margin-left:19%;">(c, r, u modes only) After
d1028 1
a1028 1
<p style="margin-left:19%;">(x mode only) Unlink files
d1038 1
a1038 1
<p style="margin-left:19%;">Use the provided user id number
d1045 1
a1045 1
<p style="margin-left:19%;">Use the provided user name. On
d1056 1
a1056 1
<p style="margin-left:19%;">Pipe the input (in x or t mode)
d1063 1
a1063 1
<p style="margin-left:19%;">Use the provided user, if
d1070 1
a1070 1
<p style="margin-left:19%;">Produce verbose output. In
d1074 2
a1075 2
<i>ls</i>(1). An additional <b>-v</b> option will also
provide ls-like details in create and extract mode.</p>
d1079 1
a1079 1
<p style="margin-left:19%;">Print version of <b>tar</b> and
d1085 1
a1085 1
<p style="margin-left:19%;">Ask for confirmation for every
d1091 1
a1091 1
<p style="margin-left:19%;">Read a list of exclusion
d1097 1
a1097 1
<p style="margin-left:19%;">(c, r, u, x modes only) Archive
d1104 4
a1107 4
<p style="margin-left:19%; margin-top: 1em">(c mode only)
Compress the resulting archive with <i>bzip2</i>(1). In
extract or list modes, this option is ignored. Note that
this <b>tar</b> implementation recognizes bzip2 compression
d1113 5
a1117 5
<p style="margin-left:19%;">(c mode only) Compress the
resulting archive with <i>compress</i>(1). In extract or
list modes, this option is ignored. Note that this
<b>tar</b> implementation recognizes compress compression
automatically when reading archives.</p>
d1122 3
a1124 3
<p style="margin-left:19%;">(c mode only) Compress the
resulting archive with <i>gzip</i>(1). In extract or list
modes, this option is ignored. Note that this <b>tar</b>
d1130 1
a1130 1
<p style="margin-left:9%;">The following environment
d1135 1
a1135 1
<p style="margin-left:19%;">The default options for format
d1141 1
a1141 1
<p style="margin-left:19%;">The default options for format
d1147 2
a1148 2
<p style="margin-left:19%; margin-top: 1em">The locale to
use. See <i>environ</i>(7) for more information.</p>
d1152 1
a1152 1
<p style="margin-left:19%; margin-top: 1em">The default
d1159 2
a1160 2
<p style="margin-left:19%; margin-top: 1em">The timezone to
use when displaying dates. See <i>environ</i>(7) for more
d1165 1
a1165 1
<p style="margin-left:9%;">The <b>tar</b> utility
d1171 1
a1171 1
<p style="margin-left:9%;">The following creates a new
d1175 1
a1175 1
<p style="margin-left:17%;"><b>tar -czf</b> <i>file.tar.gz
d1178 1
a1178 1
<p style="margin-left:9%; margin-top: 1em">To view a
d1181 1
a1181 1
<p style="margin-left:17%;"><b>tar -tvf</b>
d1184 1
a1184 1
<p style="margin-left:9%; margin-top: 1em">To extract all
d1187 1
a1187 1
<p style="margin-left:17%;"><b>tar -x</b></p>
d1189 1
a1189 1
<p style="margin-left:9%; margin-top: 1em">To examine the
d1192 1
a1192 1
<p style="margin-left:17%;"><b>tar -tf</b>
d1195 1
a1195 1
<p style="margin-left:9%; margin-top: 1em">To move file
d1198 1
a1198 1
<p style="margin-left:17%;"><b>tar -cf</b> <i>-</i>
d1202 1
a1202 1
<p style="margin-left:9%;">or more traditionally</p>
d1204 1
a1204 1
<p style="margin-left:17%;"><b>cd srcdir ; tar -cf</b> <i>-
d1207 1
a1207 1
<p style="margin-left:9%; margin-top: 1em">In create mode,
d1214 1
a1214 1
<p style="margin-left:17%;"><b>tar -c -f</b> <i>new.tar
d1218 1
a1218 1
<p style="margin-left:9%;">will create a new archive
d1226 4
a1229 4
<p style="margin-left:9%; margin-top: 1em">An input file in
<i>mtree</i>(5) format can be used to create an output
archive with arbitrary ownership, permissions, or names that
differ from existing data on disk:</p>
d1231 1
a1231 1
<p style="margin-left:17%; margin-top: 1em">$ cat
d1238 1
a1238 1
<p style="margin-left:9%; margin-top: 1em">The
d1245 1
a1245 1
<p style="margin-left:9%; margin-top: 1em">The
d1251 1
a1251 1
<p style="margin-left:17%;"><b>tar -cf</b> <i>file.tar</i>
d1256 1
a1256 1
<p style="margin-left:9%;">or you can set the compression
d1259 1
a1259 1
<p style="margin-left:17%;"><b>tar -czf</b> <i>file.tar</i>
d1262 1
a1262 1
<p style="margin-left:9%;">For more details, see the
d1265 1
a1265 2
described in <i>archive_read</i>(3) and
<i>archive_write</i>(3).</p>
d1269 1
a1269 1
<p style="margin-left:9%;">The bundled-arguments format is
d1277 1
a1277 1
<p style="margin-left:17%;"><b>tar tbf 32</b>
d1280 1
a1280 1
<p style="margin-left:9%;">specifies three flags <b>t</b>,
d1287 1
a1287 1
<p style="margin-left:9%; margin-top: 1em">The mode options
d1291 1
a1291 1
<p style="margin-left:9%; margin-top: 1em">For maximum
d1298 1
a1298 1
<p style="margin-left:9%; margin-top: 1em">Additional long
d1304 1
a1304 1
<p style="margin-left:9%;">Certain security issues are
d1318 1
a1318 1
<p style="margin-left:19%;">Archive entries can have
d1325 1
a1325 1
<p style="margin-left:19%;">Archive entries can have
d1332 1
a1332 1
<p style="margin-left:19%;">Archive entries can exploit
d1344 1
a1344 1
<p style="margin-left:9%;">To protect yourself, you should
d1348 1
a1348 1
<p style="margin-left:17%;"><b>tar -tf</b>
d1351 1
a1351 1
<p style="margin-left:9%;">before extraction. You should
d1363 3
a1365 5
<p style="margin-left:9%;"><i>bzip2</i>(1),
<i>compress</i>(1), <i>cpio</i>(1), <i>gzip</i>(1),
<i>mt</i>(1), <i>pax</i>(1), <i>shar</i>(1), <i>xz</i>(1),
<i>libarchive</i>(3), <i>libarchive-formats</i>(5),
<i>tar</i>(5)</p>
d1369 1
a1369 1
<p style="margin-left:9%;">There is no current POSIX
d1378 1
a1378 1
<p style="margin-left:9%; margin-top: 1em">The ustar and
d1384 1
a1384 1
<p style="margin-left:9%;">A <b>tar</b> command appeared in
d1393 2
a1394 2
<p style="margin-left:9%; margin-top: 1em">This is a
complete re-implementation based on the <i>libarchive</i>(3)
d1400 1
a1400 1
<p style="margin-left:9%;">This program follows ISO/IEC
d1406 1
a1406 1
<p style="margin-left:9%; margin-top: 1em">The <b>-C</b>
d1410 1
a1410 1
<p style="margin-left:9%; margin-top: 1em">All archive
d1419 4
a1422 4
padded. Many compressors, including <i>gzip</i>(1) and
<i>bzip2</i>(1), complain about the null padding when
decompressing an archive created by <b>tar</b>, although
they still extract it correctly.</p>
d1424 1
a1424 1
<p style="margin-left:9%; margin-top: 1em">The compression
d1429 1
a1429 1
<p style="margin-left:17%;"><b>tar -czf</b> <i>-
d1432 1
a1432 1
<p style="margin-left:9%;">and that generated by</p>
d1434 1
a1434 1
<p style="margin-left:17%;"><b>tar -cf</b> <i>- file</i> |
d1437 1
a1437 1
<p style="margin-left:9%; margin-top: 1em">The default
d1441 1
a1441 1
<p style="margin-left:9%; margin-top: 1em">The <b>r</b> and
d1447 1
a1447 1
<p style="margin-left:9%; margin-top: 1em">To archive a
d1451 1
a1451 1
<p style="margin-left:9%; margin-top: 1em">In create mode,
d1455 1
a1455 1
<p style="margin-left:9%; margin-top: 1em">There needs to
d1459 1
a1459 1
<p style="margin-left:9%; margin-top: 1em">There is not yet
d1462 1
a1462 1
<p style="margin-left:9%; margin-top: 1em">Converting
d1467 4
a1470 2
hardlink information.) Debian April 23, 2024
<i>TAR</i>(1)</p>
@


1.1.1.15
log
@libarchive: imported version 3.7.9
@
text
@d2 1
a2 1
<!-- CreationDate: Sun Mar 30 20:07:39 2025 -->
d52 3
a54 3
extract from tar, pax, cpio, zip, jar, ar, xar, rar, rpm,
7-zip, and ISO 9660 cdrom images and can create tar, pax,
cpio, ar, zip, 7-zip, and shar archives.</p>
d59 1
a59 2
implementations. See &ldquo;COMPATIBILITY&rdquo; below for
details.</p>
d65 1
a65 1
<p style="margin-top: 1em"><b>-c</b></p>
d127 2
a128 2
<p style="margin-left:27%; margin-top: 1em"><b>tar -c
-f</b> <i>- newfile</i> <b>@@</b><i>original.tar</i></p>
d130 18
a147 19
<p style="margin-left:19%; margin-top: 1em">writes a new
archive to standard output containing a file <i>newfile</i>
and all of the entries from <i>original.tar</i>. In
contrast,</p>

<p style="margin-left:27%; margin-top: 1em"><b>tar -c
-f</b> <i>- newfile original.tar</i></p>

<p style="margin-left:19%; margin-top: 1em">creates a new
archive with only two entries. Similarly,</p>

<p style="margin-left:27%; margin-top: 1em"><b>tar -czf</b>
<i>-</i> <b>--format pax @@</b><i>-</i></p>

<p style="margin-left:19%; margin-top: 1em">reads an
archive from standard input (whose format will be determined
automatically) and converts it into a gzip-compressed
pax-format archive on stdout. In this way, <b>tar</b> can be
used to convert archives from one format to another.</p>
d156 2
a157 2
<p style="margin-left:27%; margin-top: 1em"><b>tar -a
-cf</b> <i>archive.tgz source.c source.h</i></p>
d159 2
a160 2
<p style="margin-left:19%; margin-top: 1em">creates a new
archive with restricted pax format and gzip compression,</p>
d162 2
a163 2
<p style="margin-left:27%; margin-top: 1em"><b>tar -a
-cf</b> <i>archive.tar.bz2.uu source.c source.h</i></p>
d165 3
a167 3
<p style="margin-left:19%; margin-top: 1em">creates a new
archive with restricted pax format and bzip2 compression and
uuencode compression,</p>
d169 2
a170 2
<p style="margin-left:27%; margin-top: 1em"><b>tar -a
-cf</b> <i>archive.zip source.c source.h</i></p>
d172 2
a173 2
<p style="margin-left:19%; margin-top: 1em">creates a new
archive with zip format,</p>
d175 2
a176 2
<p style="margin-left:27%; margin-top: 1em"><b>tar -a
-jcf</b> <i>archive.tgz source.c source.h</i></p>
d178 3
a180 3
<p style="margin-left:19%; margin-top: 1em">ignores the
&ldquo;-j&rdquo; option, and creates a new archive with
restricted pax format and gzip compression,</p>
d182 2
a183 2
<p style="margin-left:27%; margin-top: 1em"><b>tar -a
-jcf</b> <i>archive.xxx source.c source.h</i></p>
d185 3
a187 3
<p style="margin-left:19%; margin-top: 1em">if it is
unknown suffix or no suffix, creates a new archive with
restricted pax format and bzip2 compression.</p>
d356 2
a357 3
<p style="margin-left:27%; margin-top: 1em"><b>tar -c
-f</b> <i>new.tar</i> <b>--include=&rsquo;*foo*&rsquo;
@@</b><i>old.tgz</i></p>
d359 2
a360 2
<p style="margin-left:19%; margin-top: 1em">creates a new
archive <i>new.tar</i> containing only the entries from
d466 2
a467 4
formats (</p>

<p>including pax restricted, the default tar format for
<b>bsdtar</b> )</p>
d658 1
a658 1
<p style="margin-top: 1em"><i>key=value</i></p>
d691 1
a691 1
<p style="margin-top: 1em"><b>iso9660:joliet</b></p>
d881 2
a882 3
<p style="margin-left:19%; margin-top: 1em">If a provided
option is not supported by any module, that is a fatal
error.</p>
d1036 2
a1037 2
symlinks instead of reporting an error. See the
&ldquo;SECURITY&rdquo; section below for more details.</p>
d1178 2
a1179 2
<p style="margin-left:17%; margin-top: 1em"><b>tar -czf</b>
<i>file.tar.gz source.c source.h</i></p>
d1184 1
a1184 1
<p style="margin-left:17%; margin-top: 1em"><b>tar -tvf</b>
d1190 1
a1190 2
<p style="margin-left:17%; margin-top: 1em"><b>tar
-x</b></p>
d1195 1
a1195 1
<p style="margin-left:17%; margin-top: 1em"><b>tar -tf</b>
d1201 8
a1208 10
<p style="margin-left:17%; margin-top: 1em"><b>tar -cf</b>
<i>-</i> <b>-C</b> <i>srcdir .</i> | <b>tar -xpf</b>
<i>-</i> <b>-C</b> <i>destdir</i></p>

<p style="margin-left:9%; margin-top: 1em">or more
traditionally</p>

<p style="margin-left:17%; margin-top: 1em"><b>cd srcdir ;
tar -cf</b> <i>- .</i> | (<i>cd destdir ;</i> <b>tar
-xpf</b> <i>-</i>)</p>
d1217 11
a1227 11
<p style="margin-left:17%; margin-top: 1em"><b>tar -c
-f</b> <i>new.tar foo1</i> <b>@@</b><i>old.tgz</i>
<b>-C</b><i>/tmp foo2</i></p>

<p style="margin-left:9%; margin-top: 1em">will create a
new archive <i>new.tar</i>. <b>tar</b> will read the file
<i>foo1</i> from the current directory and add it to the
output archive. It will then read each entry from
<i>old.tgz</i> and add those entries to the output archive.
Finally, it will switch to the <i>/tmp</i> directory and add
<i>foo2</i> to the output archive.</p>
d1254 2
a1255 2
<p style="margin-left:17%; margin-top: 1em"><b>tar -cf</b>
<i>file.tar</i> <b>--format=mtree
d1259 2
a1260 2
<p style="margin-left:9%; margin-top: 1em">or you can set
the compression level used by gzip or xz compression:</p>
d1262 1
a1262 2
<p style="margin-left:17%; margin-top: 1em"><b>tar -czf</b>
<i>file.tar</i>
d1265 2
a1266 3
<p style="margin-left:9%; margin-top: 1em">For more
details, see the explanation of the
<b>archive_read_set_options</b>() and
d1281 2
a1282 2
<p style="margin-left:17%; margin-top: 1em"><b>tar tbf
32</b> <i>file.tar</i></p>
d1284 6
a1289 6
<p style="margin-left:9%; margin-top: 1em">specifies three
flags <b>t</b>, <b>b</b>, and <b>f</b>. The <b>b</b> and
<b>f</b> flags both require arguments, so there must be two
additional items on the command line. The <i>32</i> is the
argument to the <b>b</b> flag, and <i>file.tar</i> is the
argument to the <b>f</b> flag.</p>
d1348 3
a1350 4
<p style="margin-left:9%; margin-top: 1em">To protect
yourself, you should be wary of any archives that come from
untrusted sources. You should examine the contents of an
archive with</p>
d1352 1
a1352 1
<p style="margin-left:17%; margin-top: 1em"><b>tar -tf</b>
d1355 9
a1363 10
<p style="margin-left:9%; margin-top: 1em">before
extraction. You should use the <b>-k</b> option to ensure
that <b>tar</b> will not overwrite any existing files or the
<b>-U</b> option to remove any pre-existing files. You
should generally not extract archives while running with
super-user privileges. Note that the <b>-P</b> option to
<b>tar</b> disables the security checks above and allows you
to extract an archive while preserving any absolute
pathnames, <i>..</i> components, or symlinks to other
directories.</p>
d1435 2
a1436 2
<p style="margin-left:17%; margin-top: 1em"><b>tar -czf</b>
<i>- file</i></p>
d1438 1
a1438 2
<p style="margin-left:9%; margin-top: 1em">and that
generated by</p>
d1440 2
a1441 2
<p style="margin-left:17%; margin-top: 1em"><b>tar -cf</b>
<i>- file</i> | <b>gzip</b></p>
d1471 1
a1471 1
information to be lost. This is a consequence of the
d1473 1
a1473 1
hardlink information. Debian April 23, 2024
@


1.1.1.16
log
@libarchive: import version 3.8.0

Libarchive 3.8.0 is a feature and bugfix release.

New features:
bsdtar: support --mtime and --clamp-mtime
lib: mbedtls 3.x compatibility
7-zip reader: improve self-extracting archive detection
xar: xmllite support for the XAR reader and writer
zip writer: added XZ, LZMA, ZSTD and BZIP2 support
zip writer: added LZMA + RISCV BCJ filter

Notable security fixes:
rar: do not skip past EOF while reading
rar: fix double free with over 4 billion nodes
rar: fix heap-buffer-overflow
warc: prevent signed integer overflow
tar: fix overflow in build_ustar_entry

Notable bugfixes:
bsdtar: don't hardlink negative inode files together
gz: allow setting the original filename for gzip compressed files
lib: improve lseek handling
lib: support @@-prefixed Unix epoch timestamps as date strings
rar: support large headers on 32 bit systems
tar reader: Improve LFS support on 32 bit systems
@
text
@d2 1
a2 1
<!-- CreationDate: Tue May 20 09:02:20 2025 -->
a230 6
<p style="margin-top: 1em"><b>--clamp-mtime</b></p>

<p style="margin-left:19%;">(use with <b>--mtime</b>) Only
set the modification time if the file is newer than the date
specified in <b>--mtime</b>.</p>

a473 5
<p style="margin-top: 1em"><b>--mtime</b> <i>date</i></p>

<p style="margin-left:19%;">(c, r, u modes only) Set the
modification times of added files to the specified date.</p>

d546 5
a550 5
<p style="margin-left:19%;">(c, r, u and x mode only) Mac
OS X specific. Do not archive or extract ACLs and extended
file attributes using <i>copyfile</i>(3) in AppleDouble
format. This is the reverse of <b>--mac-metadata</b>. and
the default behavior if <b>tar</b> is run as non-root in x
@


1.1.1.17
log
@libarchive: import version 3.8.1
@
text
@d2 1
a2 1
<!-- CreationDate: Sun Jun  1 19:29:41 2025 -->
@


1.1.1.18
log
@libarchive: imported version 3.8.2
@
text
@d2 1
a2 1
<!-- CreationDate: Wed Oct 15 21:49:47 2025 -->
@


1.1.1.19
log
@libarchive: import version 3.8.3
@
text
@d2 1
a2 1
<!-- CreationDate: Mon Nov 17 22:19:03 2025 -->
@


1.1.1.20
log
@libarchive: import 3.8.4
@
text
@d2 1
a2 1
<!-- CreationDate: Mon Dec  1 12:42:39 2025 -->
@


1.1.1.21
log
@libarchive: import version 3.8.5
@
text
@d2 1
a2 1
<!-- CreationDate: Mon Jan  5 10:42:46 2026 -->
@


1.1.1.22
log
@libarchive: imported version 3.8.6
@
text
@d2 1
a2 1
<!-- CreationDate: Tue Mar 10 09:57:30 2026 -->
@


1.1.1.23
log
@libarchive: imported version 3.8.7
@
text
@d2 1
a2 1
<!-- CreationDate: Mon Apr 13 12:57:35 2026 -->
@


