head	1.23;
access;
symbols
	libarchive-3-8-8:1.1.1.24
	pkgsrc-2026Q2:1.22.0.2
	pkgsrc-2026Q2-base:1.22
	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.23
date	2026.06.24.06.29.52;	author adam;	state Exp;
branches;
next	1.22;
commitid	keXVOnvWIwV061LG;

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.29;	author joerg;	state Exp;
branches;
next	1.1.1.3;

1.1.1.3
date	2010.03.16.17.07.08;	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.52;	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	1.1.1.24;
commitid	enlkxxj5Vxhi42CG;

1.1.1.24
date	2026.06.24.05.39.01;	author adam;	state Exp;
branches;
next	;
commitid	zmhI9f4umm2AO0LG;


desc
@@


1.23
log
@libarchive: updated to 3.8.8

Libarchive 3.8.8 is a security, bugfix and minor feature release.

New features:

add support for reading encrypted zipx formats (bzip2, lzma, ppmd, xz, zstd)

Fix overview:
https://github.com/libarchive/libarchive/releases/tag/v3.8.8
@
text
@<!-- Creator     : groff version 1.23.0 -->
<!-- CreationDate: Tue Jun 23 09:58:15 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>CPIO</i>(1) General Commands Manual
<i>CPIO</i>(1)</p>

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

<p style="margin-left:9%;">cpio &mdash; copy files to and
from archives</p>

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

<p style="margin-left:15%;"><b>cpio -i</b> [<i>options</i>]
[<i>pattern&nbsp;...</i>] [<i>&lt;&nbsp;archive</i>] <b><br>
cpio -o</b> [<i>options</i>] <i>&lt; name-list</i>
[<i>&gt;&nbsp;archive</i>] <b><br>
cpio -p</b> [<i>options</i>] <i>dest-dir &lt;
name-list</i></p>

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

<p style="margin-left:9%;"><b>cpio</b> copies files between
archives and directories. 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:9%; margin-top: 1em">The first option
to <b>cpio</b> is a mode indicator from the following
list:</p>

<p><b>-i</b></p>

<p style="margin-left:19%; margin-top: 1em">Input. Read an
archive from standard input (unless overridden) and extract
the contents to disk or (if the <b>-t</b> option is
specified) list the contents to standard output. If one or
more file patterns are specified, only files matching one of
the patterns will be extracted.</p>

<p><b>-o</b></p>

<p style="margin-left:19%; margin-top: 1em">Output. Read a
list of filenames from standard input and produce a new
archive on standard output (unless overridden) containing
the specified items.</p>

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

<p style="margin-left:19%; margin-top: 1em">Pass-through.
Read a list of filenames from standard input and copy the
files to the specified directory.</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>-0</b>, <b>--null</b></p>

<p style="margin-left:19%;">Read filenames separated by NUL
characters instead of newlines. This is necessary if any of
the filenames being read might contain newlines.</p>

<p style="margin-top: 1em"><b>-6</b>, <b>--pwb</b></p>

<p style="margin-left:19%;">When reading a binary format
archive, assume it&rsquo;s the earlier one, from the PWB
variant of 6th Edition UNIX. When writing a cpio archive,
use the PWB format.</p>

<p style="margin-top: 1em"><b>-7</b>, <b>--binary</b></p>

<p style="margin-left:19%;">(o mode only) When writing a
cpio archive, use the (newer, non-PWB) binary format.</p>

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

<p style="margin-left:19%; margin-top: 1em">(o mode only)
Append to the specified archive. (Not yet implemented.)</p>

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

<p style="margin-left:19%; margin-top: 1em">(o and p modes)
Reset access times on files after they are read.</p>

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

<p style="margin-left:19%; margin-top: 1em">(o mode only)
Block output to records of 5120 bytes.</p>

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

<p style="margin-left:19%;">(o mode only) Block output to
records of <i>size</i> bytes.</p>

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

<p style="margin-left:19%; margin-top: 1em">(o mode only)
Use the old POSIX portable character format. Equivalent to
<b>--format</b> <i>odc</i>.</p>

<p style="margin-top: 1em"><b>-d</b>,
<b>--make-directories</b></p>

<p style="margin-left:19%;">(i and p modes) Create
directories as necessary.</p>

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

<p style="margin-left:19%;">(i mode only) Read list of file
name patterns from <i>file</i> to list and extract.</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 archive from or write
archive to <i>file</i>.</p>

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

<p style="margin-left:19%;">(i mode only) Ignore files that
match <i>pattern</i>.</p>

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

<p style="margin-left:19%;">(o mode only) Produce the
output archive in the specified format. Supported formats
include:</p>

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

<p style="margin-left:31%; margin-top: 1em">Synonym for
<i>odc</i>.</p>

<p><i>newc</i></p>

<p style="margin-left:31%; margin-top: 1em">The SVR4
portable cpio format.</p>

<p><i>odc</i></p>

<p style="margin-left:31%; margin-top: 1em">The old POSIX.1
portable octet-oriented cpio format.</p>

<p><i>pax</i></p>

<p style="margin-left:31%; margin-top: 1em">The POSIX.1 pax
format, an extension of the ustar format.</p>

<p><i>ustar</i></p>

<p style="margin-left:31%; margin-top: 1em">The POSIX.1 tar
format.</p>

<p style="margin-left:19%; margin-top: 1em">The default
format is <i>odc</i>. See <i>libarchive-formats</i>(5) for
more complete information about the formats currently
supported by the underlying <i>libarchive</i>(3)
library.</p>

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

<p style="margin-left:19%;">Print usage information.</p>

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

<p style="margin-left:19%;">Read archive from
<i>file</i>.</p>

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

<p style="margin-left:19%;">Input mode. See above for
description.</p>

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

<p style="margin-left:19%;">(i and p mode only) Disable
security checks during extraction or copying. This allows
extraction via symbolic links, absolute paths, and path
names containing &lsquo;..&rsquo; in the name.</p>

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

<p style="margin-left:19%;">(o mode only) Compress the file
with xz-compatible compression before writing it. In input
mode, this option is ignored; xz compression is recognized
automatically on input.</p>

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

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

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

<p style="margin-left:19%; margin-top: 1em">(o and p modes)
All symbolic links will be followed. Normally, symbolic
links are archived and copied as symbolic links. With this
option, the target of the link will be archived or copied
instead.</p>

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

<p style="margin-left:19%;">(p mode only) Create links from
the target directory to the original files, instead of
copying.</p>

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

<p style="margin-left:19%;">(o mode only) Compress the
resulting archive with <i>lrzip</i>(1). In input mode, this
option is ignored.</p>

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

<p style="margin-left:19%; margin-top: 1em">(o 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>--zstd</b></p>

<p style="margin-left:19%; margin-top: 1em">(o mode only)
Compress the archive with zstd-compatible compression before
writing it. In input mode, this option is ignored; zstd
compression is recognized automatically on input.</p>

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

<p style="margin-left:19%; margin-top: 1em">(o mode only)
Compress the file with lzma-compatible compression before
writing it. In input mode, this option is ignored; lzma
compression is recognized automatically on input.</p>

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

<p style="margin-left:19%; margin-top: 1em">(o mode only)
Compress the resulting archive with <i>lzop</i>(1). In input
mode, this option is ignored.</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
only a format that <b>cpio</b> can handle encrypted
archives. You shouldn&rsquo;t use this option unless you
realize how insecure use of this option is.</p>

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

<p style="margin-left:19%;">(i and p modes) Set file
modification time on created files to match those in the
source.</p>

<p style="margin-top: 1em"><b>-n</b>,
<b>--numeric-uid-gid</b></p>

<p style="margin-left:19%;">(i mode, only with <b>-t</b>)
Display numeric uid and gid. By default, <b>cpio</b>
displays the user and group names when they are provided in
the archive, or looks up the user and group names in the
system password database.</p>

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

<p style="margin-left:19%;">(i mode only) Do not attempt to
restore file ownership. This is the default when run by
non-root users.</p>

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

<p style="margin-left:19%;">Write archive to
<i>file</i>.</p>

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

<p style="margin-left:19%;">Output mode. See above for
description.</p>

<p style="margin-top: 1em"><b>-p</b>,
<b>--pass-through</b></p>

<p style="margin-left:19%;">Pass-through mode. See above
for description.</p>

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

<p style="margin-left:19%;">(i mode only) Restore file
ownership. This is the default when run by the root
user.</p>

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

<p style="margin-left:19%;">Suppress unnecessary
messages.</p>

<p style="margin-top: 1em"><b>-R</b> [ <br>
user][ <br>
:][ <br>
group], <b>--owner</b> [ <br>
user][ <br>
:][ <br>
group]</p>

<p style="margin-left:19%;">Set the owner and/or group on
files in the output. If group is specified with no user (for
example, <b>-R</b> <i>:wheel</i>) then the group will be set
but not the user. If the user is specified with a trailing
colon and no group (for example, <b>-R</b> <i>root:</i>)
then the group will be set to the user&rsquo;s default
group. If the user is specified with no trailing colon, then
the user will be set but not the group. In <b>-i</b> and
<b>-p</b> modes, this option can only be used by the
super-user. (For compatibility, a period can be used in
place of the colon.)</p>

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

<p style="margin-left:19%; margin-top: 1em">(All modes.)
Rename files interactively. For each file, a prompt is
written to <i>/dev/tty</i> containing the name of the file
and a line is read from <i>/dev/tty</i>. If the line read is
blank, the file is skipped. If the line contains a single
period, the file is processed normally. Otherwise, the line
is taken to be the new name of the file.</p>

<p style="margin-top: 1em"><b>-t</b>, <b>--list</b></p>

<p style="margin-left:19%;">(i mode only) List the contents
of the archive to stdout; do not restore the contents to
disk.</p>

<p style="margin-top: 1em"><b>-u</b>,
<b>--unconditional</b></p>

<p style="margin-left:19%;">(i and p modes) Unconditionally
overwrite existing files. Ordinarily, an older file will not
overwrite a newer file on disk.</p>

<p style="margin-top: 1em"><b>-V</b>, <b>--dot</b></p>

<p style="margin-left:19%;">Print a dot to stderr for each
file as it is processed. Superseded by <b>-v</b>.</p>

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

<p style="margin-left:19%;">Print the name of each file to
stderr as it is processed. With <b>-t</b>, provide a
detailed listing of each file.</p>

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

<p style="margin-left:19%;">Print the program version
information and exit.</p>

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

<p style="margin-left:19%; margin-top: 1em">(o mode only)
Compress the archive with bzip2-compatible compression
before writing it. In input mode, this option is ignored;
bzip2 compression is recognized automatically on input.</p>

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

<p style="margin-left:19%; margin-top: 1em">(o mode only)
Compress the archive with compress-compatible compression
before writing it. In input mode, this option is ignored;
compression is recognized automatically on input.</p>

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

<p style="margin-left:19%; margin-top: 1em">(o mode only)
Compress the archive with gzip-compatible compression before
writing it. In input mode, this option is ignored; gzip
compression is recognized automatically on input.</p>

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

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

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

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

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

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

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

<p style="margin-left:23%; 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>EXAMPLES</b></p>

<p style="margin-left:9%;">The <b>cpio</b> command is
traditionally used to copy file hierarchies in conjunction
with the <i>find</i>(1) command. The first example here
simply copies all files from <i>src</i> to <i>dest</i>:</p>

<p style="margin-left:17%;"><b>find</b> <i>src</i> |
<b>cpio -pmud</b> <i>dest</i></p>

<p style="margin-left:9%; margin-top: 1em">By carefully
selecting options to the <i>find</i>(1) command and
combining it with other standard utilities, it is possible
to exercise very fine control over which files are copied.
This next example copies files from <i>src</i> to
<i>dest</i> that are more than 2 days old and whose names
match a particular pattern:</p>

<p style="margin-left:17%;"><b>find</b> <i>src</i>
<b>-mtime</b> <i>+2</i> | <b>grep foo[bar]</b> | <b>cpio
-pdmu</b> <i>dest</i></p>

<p style="margin-left:9%; margin-top: 1em">This example
copies files from <i>src</i> to <i>dest</i> that are more
than 2 days old and which contain the word &ldquo;</p>

<p>foobar &rdquo;:</p>

<p style="margin-left:17%;"><b>find</b> <i>src</i>
<b>-mtime</b> <i>+2</i> | <b>xargs grep -l foobar</b> |
<b>cpio -pdmu</b> <i>dest</i></p>

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

<p style="margin-left:9%;">The mode options i, o, and p and
the options a, B, c, d, f, l, m, r, t, u, and v comply with
SUSv2.</p>

<p style="margin-left:9%; margin-top: 1em">The old POSIX.1
standard specified that only <b>-i</b>, <b>-o</b>, and
<b>-p</b> were interpreted as command-line options. Each
took a single argument of a list of modifier characters. For
example, the standard syntax allows <b>-imu</b> but does not
support <b>-miu</b> or <b>-i -m -u</b>, since <i>m</i> and
<i>u</i> are only modifiers to <b>-i</b>, they are not
command-line options in their own right. The syntax
supported by this implementation is backwards-compatible
with the standard. For best compatibility, scripts should
limit themselves to the standard syntax.</p>

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

<p style="margin-left:9%;"><i>bzip2</i>(1), <i>gzip</i>(1),
<i>mt</i>(1), <i>pax</i>(1), <i>tar</i>(1),
<i>libarchive</i>(3), <i>cpio</i>(5),
<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 cpio 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;).</p>

<p style="margin-left:9%; margin-top: 1em">The cpio, 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%;">The original <b>cpio</b> and
<b>find</b> utilities were written by Dick Haight while
working in AT&amp;T&rsquo;s Unix Support Group. They first
appeared in 1977 in PWB/UNIX 1.0, the
&ldquo;Programmer&rsquo;s Work Bench&rdquo; system developed
for use within AT&amp;T. They were first released outside of
AT&amp;T as part of System III Unix in 1981. As a result,
<b>cpio</b> actually predates <b>tar</b>, even though it was
not well-known outside of AT&amp;T until some time
later.</p>

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

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

<p style="margin-left:9%;">The cpio archive format has
several basic limitations: It does not store user and group
names, only numbers. As a result, it cannot be reliably used
to transfer files between systems with dissimilar user and
group numbering. Older cpio formats limit the user and group
numbers to 16 or 18 bits, which is insufficient for modern
systems. The cpio archive formats cannot support files over
4 gigabytes, except for the &ldquo;odc&rdquo; variant, which
can support files up to 8 gigabytes. Debian September 16,
2014 <i>CPIO</i>(1)</p>
<hr>
</body>
</html>
@


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
@d2 1
a2 1
<!-- CreationDate: Mon Apr 13 12:57:35 2026 -->
@


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:21 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 -->
@


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 -->
@


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 2
a24 1
<p>CPIO(1) BSD General Commands Manual CPIO(1)</p>
d28 2
a29 2
<p style="margin-left:6%;"><b>cpio</b> &mdash; copy files
to and from archives</p>
d33 1
a33 1
<p style="margin-left:13%;"><b>cpio -i</b> [<i>options</i>]
d42 1
a42 1
<p style="margin-left:6%;"><b>cpio</b> copies files between
d47 1
a47 1
<p style="margin-left:6%; margin-top: 1em">The first option
d53 1
a53 1
<p style="margin-left:17%; margin-top: 1em">Input. Read an
d62 1
a62 1
<p style="margin-left:17%; margin-top: 1em">Output. Read a
d69 1
a69 1
<p style="margin-left:17%; margin-top: 1em">Pass-through.
d75 1
a75 1
<p style="margin-left:6%;">Unless specifically stated
d81 1
a81 1
<p style="margin-left:17%;">Read filenames separated by NUL
d87 1
a87 1
<p style="margin-left:17%;">When reading a binary format
d94 1
a94 1
<p style="margin-left:17%;">(o mode only) When writing a
d99 1
a99 1
<p style="margin-left:17%; margin-top: 1em">(o mode only)
d104 1
a104 1
<p style="margin-left:17%; margin-top: 1em">(o and p modes)
d109 1
a109 1
<p style="margin-left:17%; margin-top: 1em">(o mode only)
d114 1
a114 1
<p style="margin-left:17%;">(o mode only) Block output to
d119 1
a119 1
<p style="margin-left:17%; margin-top: 1em">(o mode only)
d126 1
a126 1
<p style="margin-left:17%;">(i and p modes) Create
d131 1
a131 1
<p style="margin-left:17%;">(i mode only) Read list of file
d137 1
a137 1
<p style="margin-left:17%;">Read archive from or write
d142 1
a142 1
<p style="margin-left:17%;">(i mode only) Ignore files that
d148 1
a148 1
<p style="margin-left:17%;">(o mode only) Produce the
d154 1
a154 1
<p style="margin-left:28%; margin-top: 1em">Synonym for
d159 1
a159 1
<p style="margin-left:28%; margin-top: 1em">The SVR4
d164 1
a164 1
<p style="margin-left:28%; margin-top: 1em">The old POSIX.1
d169 1
a169 1
<p style="margin-left:28%; margin-top: 1em">The POSIX.1 pax
d174 1
a174 1
<p style="margin-left:28%; margin-top: 1em">The POSIX.1 tar
d177 5
a181 4
<p style="margin-left:17%; margin-top: 1em">The default
format is <i>odc</i>. See libarchive-formats(5) for more
complete information about the formats currently supported
by the underlying libarchive(3) library.</p>
d185 1
a185 1
<p style="margin-left:17%;">Print usage information.</p>
d189 1
a189 1
<p style="margin-left:17%;">Read archive from
d194 1
a194 1
<p style="margin-left:17%;">Input mode. See above for
d199 1
a199 1
<p style="margin-left:17%;">(i and p mode only) Disable
d202 1
a202 1
names containing &rsquo;..&rsquo; in the name.</p>
d206 1
a206 1
<p style="margin-left:17%;">(o mode only) Compress the file
d213 1
a213 1
<p style="margin-left:17%; margin-top: 1em">Synonym for
d218 1
a218 1
<p style="margin-left:17%; margin-top: 1em">(o and p modes)
d226 1
a226 1
<p style="margin-left:17%;">(p mode only) Create links from
d232 3
a234 3
<p style="margin-left:17%;">(o mode only) Compress the
resulting archive with lrzip(1). In input mode, this option
is ignored.</p>
d238 1
a238 1
<p style="margin-left:17%; margin-top: 1em">(o mode only)
d245 1
a245 1
<p style="margin-left:17%; margin-top: 1em">(o mode only)
d252 1
a252 1
<p style="margin-left:17%; margin-top: 1em">(o mode only)
d259 3
a261 3
<p style="margin-left:17%; margin-top: 1em">(o mode only)
Compress the resulting archive with lzop(1). In input mode,
this option is ignored.</p>
d266 1
a266 1
<p style="margin-left:17%;">The <i>passphrase</i> is used
d275 1
a275 1
<p style="margin-left:17%;">(i and p modes) Set file
d282 1
a282 1
<p style="margin-left:17%;">(i mode, only with <b>-t</b>)
d290 1
a290 1
<p style="margin-left:17%;">(i mode only) Do not attempt to
d296 1
a296 1
<p style="margin-left:17%;">Write archive to
d301 1
a301 1
<p style="margin-left:17%;">Output mode. See above for
d307 1
a307 1
<p style="margin-left:17%;">Pass-through mode. See above
d312 1
a312 1
<p style="margin-left:17%;">(i mode only) Restore file
d318 1
a318 1
<p style="margin-left:17%;">Suppress unnecessary
d329 1
a329 1
<p style="margin-left:17%;">Set the owner and/or group on
d343 1
a343 1
<p style="margin-left:17%; margin-top: 1em">(All modes.)
d353 1
a353 1
<p style="margin-left:17%;">(i mode only) List the contents
d360 1
a360 1
<p style="margin-left:17%;">(i and p modes) Unconditionally
d366 1
a366 1
<p style="margin-left:17%;">Print a dot to stderr for each
d371 1
a371 1
<p style="margin-left:17%;">Print the name of each file to
d377 1
a377 1
<p style="margin-left:17%;">Print the program version
d382 1
a382 1
<p style="margin-left:17%; margin-top: 1em">(o mode only)
d389 1
a389 1
<p style="margin-left:17%; margin-top: 1em">(o mode only)
d396 1
a396 1
<p style="margin-left:17%; margin-top: 1em">(o mode only)
d403 1
a403 1
<p style="margin-left:6%;">The <b>cpio</b> utility
d409 1
a409 1
<p style="margin-left:6%;">The following environment
d414 2
a415 2
<p style="margin-left:21%; margin-top: 1em">The locale to
use. See environ(7) for more information.</p>
d419 2
a420 2
<p style="margin-left:21%; margin-top: 1em">The timezone to
use when displaying dates. See environ(7) for more
d425 1
a425 1
<p style="margin-left:6%;">The <b>cpio</b> command is
d427 2
a428 2
with the find(1) command. The first example here simply
copies all files from <i>src</i> to <i>dest</i>:</p>
d430 1
a430 1
<p style="margin-left:14%;"><b>find</b> <i>src</i> |
d433 7
a439 7
<p style="margin-left:6%; margin-top: 1em">By carefully
selecting options to the find(1) command and combining it
with other standard utilities, it is possible to exercise
very fine control over which files are copied. This next
example copies files from <i>src</i> to <i>dest</i> that are
more than 2 days old and whose names match a particular
pattern:</p>
d441 1
a441 1
<p style="margin-left:14%;"><b>find</b> <i>src</i>
d445 1
a445 1
<p style="margin-left:6%; margin-top: 1em">This example
d451 1
a451 1
<p style="margin-left:14%;"><b>find</b> <i>src</i>
d457 1
a457 1
<p style="margin-left:6%;">The mode options i, o, and p and
d461 1
a461 1
<p style="margin-left:6%; margin-top: 1em">The old POSIX.1
d475 4
a478 3
<p style="margin-left:6%;">bzip2(1), gzip(1), mt(1),
pax(1), tar(1), libarchive(3), cpio(5),
libarchive-formats(5), tar(5)</p>
d482 1
a482 1
<p style="margin-left:6%;">There is no current POSIX
d487 1
a487 1
<p style="margin-left:6%; margin-top: 1em">The cpio, ustar,
d493 1
a493 1
<p style="margin-left:6%;">The original <b>cpio</b> and
d504 2
a505 2
<p style="margin-left:6%; margin-top: 1em">This is a
complete re-implementation based on the libarchive(3)
d510 1
a510 1
<p style="margin-left:6%;">The cpio archive format has
d518 2
a519 4
can support files up to 8 gigabytes.</p>

<p style="margin-left:6%; margin-top: 1em">BSD
September&nbsp;16, 2014 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 -->
@


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 -->
@


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 -->
d84 12
d445 1
a445 2
than 2 days old and which contain the word
&rsquo;&rsquo;</p>
d447 1
a447 1
<p>foobar &rsquo;&rsquo;:</p>
d481 2
a482 3
9945-1:1996 (&rsquo;&rsquo;POSIX.1&rsquo;&rsquo;) but was
dropped from IEEE Std 1003.1-2001
(&rsquo;&rsquo;POSIX.1&rsquo;&rsquo;).</p>
d486 1
a486 2
1003.1-2001 (&rsquo;&rsquo;POSIX.1&rsquo;&rsquo;) for the
pax command.</p>
d494 6
a499 6
&rsquo;&rsquo;Programmer&rsquo;s Work Bench&rsquo;&rsquo;
system developed for use within AT&amp;T. They were first
released outside of AT&amp;T as part of System III Unix in
1981. As a result, <b>cpio</b> actually predates <b>tar</b>,
even though it was not well-known outside of AT&amp;T until
some time later.</p>
d514 2
a515 2
4 gigabytes, except for the &rsquo;&rsquo;odc&rsquo;&rsquo;
variant, which can support files up to 8 gigabytes.</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 -->
d433 2
a434 1
than 2 days old and which contain the word &ldquo;</p>
d436 1
a436 1
<p>foobar &rdquo;:</p>
d462 2
a463 2
<p style="margin-left:6%;">bzip2(1), tar(1), gzip(1),
mt(1), pax(1), libarchive(3), cpio(5),
d470 3
a472 2
9945-1:1996 (&ldquo;POSIX.1&rdquo;) but was dropped from
IEEE Std 1003.1-2001 (&ldquo;POSIX.1&rdquo;).</p>
d476 2
a477 1
1003.1-2001 (&ldquo;POSIX.1&rdquo;) for the pax command.</p>
d485 6
a490 6
&ldquo;Programmer&rsquo;s Work Bench&rdquo; system developed
for use within AT&amp;T. They were first released outside of
AT&amp;T as part of System III Unix in 1981. As a result,
<b>cpio</b> actually predates <b>tar</b>, even though it was
not well-known outside of AT&amp;T until some time
later.</p>
d505 2
a506 2
4 gigabytes, except for the &ldquo;odc&rdquo; variant, which
can support files up to 8 gigabytes.</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 -->
d433 1
a433 2
than 2 days old and which contain the word
&rsquo;&rsquo;</p>
d435 1
a435 1
<p>foobar &rsquo;&rsquo;:</p>
d469 2
a470 3
9945-1:1996 (&rsquo;&rsquo;POSIX.1&rsquo;&rsquo;) but was
dropped from IEEE Std 1003.1-2001
(&rsquo;&rsquo;POSIX.1&rsquo;&rsquo;).</p>
d474 1
a474 2
1003.1-2001 (&rsquo;&rsquo;POSIX.1&rsquo;&rsquo;) for the
pax command.</p>
d482 6
a487 6
&rsquo;&rsquo;Programmer&rsquo;s Work Bench&rsquo;&rsquo;
system developed for use within AT&amp;T. They were first
released outside of AT&amp;T as part of System III Unix in
1981. As a result, <b>cpio</b> actually predates <b>tar</b>,
even though it was not well-known outside of AT&amp;T until
some time later.</p>
d502 2
a503 2
4 gigabytes, except for the &rsquo;&rsquo;odc&rsquo;&rsquo;
variant, which can support files up to 8 gigabytes.</p>
@


1.5
log
@Merge for libarchive-3.3.2.
@
text
@d2 1
a2 1
<!-- CreationDate: Mon Jul 10 02:32:58 2017 -->
d229 7
@


1.4
log
@Merge libarchive-3.3.1.
@
text
@d2 1
a2 1
<!-- CreationDate: Sat Feb 25 11:22:08 2017 -->
d32 3
a34 4
<p style="margin-left:13%;"><b>cpio &minus;i</b>
[<i>options</i>] [<i>pattern&nbsp;...</i>]
[<i>&lt;&nbsp;archive</i>] <b><br>
cpio &minus;o</b> [<i>options</i>] <i>&lt; name-list</i>
d36 1
a36 1
cpio &minus;p</b> [<i>options</i>] <i>dest-dir &lt;
d50 1
a50 1
<p><b>&minus;i</b></p>
d54 1
a54 1
the contents to disk or (if the <b>&minus;t</b> option is
d59 1
a59 1
<p><b>&minus;o</b></p>
d66 1
a66 1
<p><b>&minus;p</b></p>
d78 1
a78 2
<p style="margin-top: 1em"><b>&minus;0</b>,
<b>&minus;&minus;null</b></p>
d84 1
a84 1
<p style="margin-top: 1em"><b>&minus;A</b></p>
d89 1
a89 1
<p style="margin-top: 1em"><b>&minus;a</b></p>
d94 1
a94 1
<p style="margin-top: 1em"><b>&minus;B</b></p>
d99 1
a99 1
<p style="margin-top: 1em"><b>&minus;C</b> <i>size</i></p>
d104 1
a104 1
<p style="margin-top: 1em"><b>&minus;c</b></p>
d108 1
a108 1
<b>&minus;&minus;format</b> <i>odc</i>.</p>
d110 2
a111 2
<p style="margin-top: 1em"><b>&minus;d</b>,
<b>&minus;&minus;make-directories</b></p>
d116 1
a116 1
<p style="margin-top: 1em"><b>&minus;E</b> <i>file</i></p>
d121 2
a122 2
<p style="margin-top: 1em"><b>&minus;F</b> <i>file</i>,
<b>&minus;&minus;file</b> <i>file</i></p>
d127 1
a127 2
<p style="margin-top: 1em"><b>&minus;f</b>
<i>pattern</i></p>
d132 2
a133 2
<p style="margin-top: 1em"><b>&minus;H</b> <i>format</i>,
<b>&minus;&minus;format</b> <i>format</i></p>
d169 1
a169 2
<p style="margin-top: 1em"><b>&minus;h</b>,
<b>&minus;&minus;help</b></p>
d173 1
a173 1
<p style="margin-top: 1em"><b>&minus;I</b> <i>file</i></p>
d178 1
a178 2
<p style="margin-top: 1em"><b>&minus;i</b>,
<b>&minus;&minus;extract</b></p>
d183 1
a183 2

<p style="margin-top: 1em"><b>&minus;&minus;insecure</b></p>
d188 1
a188 1
names containing &lsquo;..&rsquo; in the name.</p>
d190 1
a190 2
<p style="margin-top: 1em"><b>&minus;J</b>,
<b>&minus;&minus;xz</b></p>
d197 1
a197 1
<p style="margin-top: 1em"><b>&minus;j</b></p>
d200 1
a200 1
<b>&minus;y</b>.</p>
d202 1
a202 1
<p style="margin-top: 1em"><b>&minus;L</b></p>
d210 1
a210 2
<p style="margin-top: 1em"><b>&minus;l</b>,
<b>&minus;&minus;link</b></p>
d216 1
a216 1
<p style="margin-top: 1em"><b>&minus;&minus;lrzip</b></p>
d222 1
a222 1
<p style="margin-top: 1em"><b>&minus;&minus;lz4</b></p>
d229 1
a229 1
<p style="margin-top: 1em"><b>&minus;&minus;lzma</b></p>
d236 1
a236 1
<p style="margin-top: 1em"><b>&minus;&minus;lzop</b></p>
d242 1
a242 1
<p style="margin-top: 1em"><b>&minus;&minus;passphrase</b>
d251 2
a252 2
<p style="margin-top: 1em"><b>&minus;m</b>,
<b>&minus;&minus;preserve-modification-time</b></p>
d258 2
a259 8
<p style="margin-top: 1em"><b>&minus;n</b>,
<b>&minus;&minus;numeric-uid-gid</b></p>

<p style="margin-left:17%;">(i mode, only with
<b>&minus;t</b>) Display numeric uid and gid. By default,
<b>cpio</b> displays the user and group names when they are
provided in the archive, or looks up the user and group
names in the system password database.</p>
d261 5
d267 1
a267 1
<p style="margin-top: 1em"><b>&minus;&minus;no-preserve-owner</b></p>
d273 1
a273 1
<p style="margin-top: 1em"><b>&minus;O</b> <i>file</i></p>
d278 1
a278 2
<p style="margin-top: 1em"><b>&minus;o</b>,
<b>&minus;&minus;create</b></p>
d283 2
a284 2
<p style="margin-top: 1em"><b>&minus;p</b>,
<b>&minus;&minus;pass-through</b></p>
d289 1
a289 2

<p style="margin-top: 1em"><b>&minus;&minus;preserve-owner</b></p>
d295 1
a295 1
<p style="margin-top: 1em"><b>&minus;&minus;quiet</b></p>
d300 1
a300 1
<p style="margin-top: 1em"><b>&minus;R</b> [ <br>
d303 1
a303 1
group], <b>&minus;&minus;owner</b> [ <br>
d310 9
a318 9
example, <b>&minus;R</b> <i>:wheel</i>) then the group will
be set but not the user. If the user is specified with a
trailing colon and no group (for example, <b>&minus;R</b>
<i>root:</i>) then the group will be set to the user&rsquo;s
default group. If the user is specified with no trailing
colon, then the user will be set but not the group. In
<b>&minus;i</b> and <b>&minus;p</b> modes, this option can
only be used by the super-user. (For compatibility, a period
can be used in place of the colon.)</p>
d320 1
a320 1
<p style="margin-top: 1em"><b>&minus;r</b></p>
d330 1
a330 2
<p style="margin-top: 1em"><b>&minus;t</b>,
<b>&minus;&minus;list</b></p>
d336 2
a337 2
<p style="margin-top: 1em"><b>&minus;u</b>,
<b>&minus;&minus;unconditional</b></p>
d343 1
a343 2
<p style="margin-top: 1em"><b>&minus;V</b>,
<b>&minus;&minus;dot</b></p>
d346 1
a346 1
file as it is processed. Superseded by <b>&minus;v</b>.</p>
d348 1
a348 2
<p style="margin-top: 1em"><b>&minus;v</b>,
<b>&minus;&minus;verbose</b></p>
d351 1
a351 1
stderr as it is processed. With <b>&minus;t</b>, provide a
d354 1
a354 2

<p style="margin-top: 1em"><b>&minus;&minus;version</b></p>
d359 1
a359 1
<p style="margin-top: 1em"><b>&minus;y</b></p>
d366 1
a366 1
<p style="margin-top: 1em"><b>&minus;Z</b></p>
d373 1
a373 1
<p style="margin-top: 1em"><b>&minus;z</b></p>
d410 1
a410 1
<b>cpio &minus;pmud</b> <i>dest</i></p>
d421 2
a422 2
<b>&minus;mtime</b> <i>+2</i> | <b>grep foo[bar]</b> |
<b>cpio &minus;pdmu</b> <i>dest</i></p>
d427 1
a427 1
&lsquo;&lsquo;</p>
d432 2
a433 2
<b>&minus;mtime</b> <i>+2</i> | <b>xargs grep -l foobar</b>
| <b>cpio &minus;pdmu</b> <i>dest</i></p>
d442 10
a451 12
standard specified that only <b>&minus;i</b>,
<b>&minus;o</b>, and <b>&minus;p</b> were interpreted as
command-line options. Each took a single argument of a list
of modifier characters. For example, the standard syntax
allows <b>&minus;imu</b> but does not support
<b>&minus;miu</b> or <b>&minus;i &minus;m &minus;u</b>,
since <i>m</i> and <i>u</i> are only modifiers to
<b>&minus;i</b>, they are not command-line options in their
own right. The syntax supported by this implementation is
backwards-compatible with the standard. For best
compatibility, scripts should limit themselves to the
standard syntax.</p>
d463 1
a463 1
9945-1:1996 (&lsquo;&lsquo;POSIX.1&rsquo;&rsquo;) but was
d465 1
a465 1
(&lsquo;&lsquo;POSIX.1&rsquo;&rsquo;).</p>
d469 1
a469 1
1003.1-2001 (&lsquo;&lsquo;POSIX.1&rsquo;&rsquo;) for the
d478 1
a478 1
&lsquo;&lsquo;Programmer&rsquo;s Work Bench&rsquo;&rsquo;
d498 1
a498 1
4 gigabytes, except for the &lsquo;&lsquo;odc&rsquo;&rsquo;
@


1.3
log
@Update for libarchive 3.2.1.
@
text
@d2 1
a2 1
<!-- CreationDate: Sun Jun 19 19:54:10 2016 -->
d194 1
a194 1
names containing &rsquo;..&rsquo; in the name.</p>
d442 1
a442 1
&rsquo;&rsquo;</p>
d480 1
a480 1
9945-1:1996 (&rsquo;&rsquo;POSIX.1&rsquo;&rsquo;) but was
d482 1
a482 1
(&rsquo;&rsquo;POSIX.1&rsquo;&rsquo;).</p>
d486 1
a486 1
1003.1-2001 (&rsquo;&rsquo;POSIX.1&rsquo;&rsquo;) for the
d495 1
a495 1
&rsquo;&rsquo;Programmer&rsquo;s Work Bench&rsquo;&rsquo;
d515 1
a515 1
4 gigabytes, except for the &rsquo;&rsquo;odc&rsquo;&rsquo;
@


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 -->
d32 1
a32 1
<p style="margin-left:13%;"><b>cpio</b> {<b>&minus;i</b>}
d35 3
a37 3
cpio</b> {<b>&minus;o</b>} [<i>options</i>] <i>&lt;
name-list</i> [<i>&gt;&nbsp;archive</i>] <b><br>
cpio</b> {<b>&minus;p</b>} [<i>options</i>] <i>dest-dir &lt;
d193 2
a194 2
extraction via symbolic links and path names containing
&rsquo;..&rsquo; in the name.</p>
d230 7
d250 9
d519 1
a519 1
October&nbsp;7, 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:41 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">BSDCPIO(1) FreeBSD General Commands Manual
BSDCPIO(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>cpio</b> &mdash; copy files
d30 1
d32 1
a32 3
<p style="margin-top: 1em" valign="top"><b>SYNOPSIS</b></p>

<p style="margin-left:15%;"><b>cpio</b> {<b>&minus;i</b>}
d40 1
d42 1
a42 3
<p style="margin-top: 1em" valign="top"><b>DESCRIPTION</b></p>

<p style="margin-left:8%;"><b>cpio</b> copies files between
d47 1
a47 1
<p style="margin-left:8%; margin-top: 1em">The first option
d51 1
a51 1
<p valign="top"><b>&minus;i</b></p>
d53 2
a54 2
<p style="margin-left:20%; margin-top: 1em">Input. Read an
archive from standard input (unless overriden) and extract
d60 1
a60 1
<p valign="top"><b>&minus;o</b></p>
d62 1
a62 1
<p style="margin-left:20%; margin-top: 1em">Output. Read a
d64 2
a65 2
archive on standard output (unless overriden) containing the
specified items.</p>
d67 1
a67 1
<p valign="top"><b>&minus;p</b></p>
d69 1
a69 1
<p style="margin-left:20%; margin-top: 1em">Pass-through.
d73 1
a73 1
<p style="margin-top: 1em" valign="top"><b>OPTIONS</b></p>
d75 1
a75 1
<p style="margin-left:8%;">Unless specifically stated
d79 2
d82 3
a84 6
<p style="margin-top: 1em" valign="top"><b>&minus;0</b></p>

<p style="margin-left:20%; margin-top: 1em">Read filenames
separated by NUL characters instead of newlines. This is
necessary if any of the filenames being read might contain
newlines.</p>
d86 1
d88 1
a88 3
<p style="margin-top: 1em" valign="top"><b>&minus;A</b></p>

<p style="margin-left:20%; margin-top: 1em">(o mode only)
d91 1
d93 1
a93 3
<p style="margin-top: 1em" valign="top"><b>&minus;a</b></p>

<p style="margin-left:20%; margin-top: 1em">(o and p modes)
d96 1
d98 1
a98 3
<p style="margin-top: 1em" valign="top"><b>&minus;B</b></p>

<p style="margin-left:20%; margin-top: 1em">(o mode only)
d101 1
a101 2
<p style="margin-top: 1em" valign="top"><b>&minus;C</b>
<i>size</i></p>
d103 1
a103 1
<p style="margin-left:20%;">(o mode only) Block output to
d106 1
d108 1
a108 3
<p style="margin-top: 1em" valign="top"><b>&minus;c</b></p>

<p style="margin-left:20%; margin-top: 1em">(o mode only)
d110 1
a110 2
<b>&minus;-format</b> <i>odc</i>.</p>

d112 2
a113 1
<p style="margin-top: 1em" valign="top"><b>&minus;d</b></p>
d115 2
a116 2
<p style="margin-left:20%; margin-top: 1em">(i and p modes)
Create directories as necessary.</p>
d118 1
a118 2
<p style="margin-top: 1em" valign="top"><b>&minus;E</b>
<i>file</i></p>
d120 1
a120 1
<p style="margin-left:20%;">(i mode only) Read list of file
d123 2
a124 2
<p style="margin-top: 1em" valign="top"><b>&minus;F</b>
<i>file</i></p>
d126 1
a126 1
<p style="margin-left:20%;">Read archive from or write
d129 1
a129 1
<p style="margin-top: 1em" valign="top"><b>&minus;f</b>
d132 1
a132 1
<p style="margin-left:20%;">(i mode only) Ignore files that
d135 2
d138 1
a138 4
<p style="margin-top: 1em" valign="top"><b>&minus;-format</b>
<i>format</i></p>

<p style="margin-left:20%;">(o mode only) Produce the
d142 1
a142 1
<p style="margin-top: 1em" valign="top"><i>cpio</i></p>
d144 1
a144 1
<p style="margin-left:34%; margin-top: 1em">Synonym for
d147 1
a147 1
<p valign="top"><i>newc</i></p>
d149 1
a149 1
<p style="margin-left:34%; margin-top: 1em">The SVR4
d152 1
a152 1
<p valign="top"><i>odc</i></p>
d154 1
a154 1
<p style="margin-left:34%; margin-top: 1em">The old POSIX.1
d157 1
a157 1
<p valign="top"><i>pax</i></p>
d159 1
a159 1
<p style="margin-left:34%; margin-top: 1em">The POSIX.1 pax
d162 1
a162 1
<p valign="top"><i>ustar</i></p>
d164 1
a164 1
<p style="margin-left:34%; margin-top: 1em">The POSIX.1 tar
d167 2
a168 2
<p style="margin-left:20%; margin-top: 1em">The default
format is <i>odc</i>. See libarchive_formats(5) for more
d172 2
a173 5
<p style="margin-top: 1em" valign="top"><b>&minus;H</b>
<i>format</i></p>

<p style="margin-left:20%;">Synonym for
<b>&minus;-format</b>.</p>
d175 1
a175 2
<p style="margin-top: 1em" valign="top"><b>&minus;h</b>,
<b>&minus;-help</b></p>
d177 1
a177 1
<p style="margin-left:20%;">Print usage information.</p>
d179 1
a179 4
<p style="margin-top: 1em" valign="top"><b>&minus;I</b>
<i>file</i></p>

<p style="margin-left:20%;">Read archive from
d182 2
d185 2
a186 4
<p style="margin-top: 1em" valign="top"><b>&minus;i</b></p>

<p style="margin-left:20%; margin-top: 1em">Input mode. See
above for description.</p>
d189 1
a189 1
<p style="margin-top: 1em" valign="top"><b>&minus;-insecure</b></p>
d191 1
a191 1
<p style="margin-left:20%;">(i and p mode only) Disable
d194 1
a194 2
&lsquo;..&rsquo; in the name.</p>

d196 2
a197 6
<p style="margin-top: 1em" valign="top"><b>&minus;J</b></p>

<p style="margin-left:20%; margin-top: 1em">(o mode only)
Compress the file with xz-compatible compression before
writing it. In input mode, this option is ignored; xz
compression is recognized automatically on input.</p>
d199 4
d204 1
a204 1
<p style="margin-top: 1em" valign="top"><b>&minus;j</b></p>
d206 1
a206 1
<p style="margin-left:20%; margin-top: 1em">Synonym for
d209 1
d211 1
a211 3
<p style="margin-top: 1em" valign="top"><b>&minus;L</b></p>

<p style="margin-left:20%; margin-top: 1em">(o and p modes)
d217 2
d220 3
a222 1
<p style="margin-top: 1em" valign="top"><b>&minus;l</b></p>
d224 1
a224 3
<p style="margin-left:20%; margin-top: 1em">(p mode only)
Create links from the target directory to the original
files, instead of copying.</p>
d226 3
d230 1
a230 1
<p style="margin-top: 1em" valign="top"><b>&minus;lzma</b></p>
d232 1
a232 1
<p style="margin-left:20%; margin-top: 1em">(o mode only)
d237 1
d239 3
a241 1
<p style="margin-top: 1em" valign="top"><b>&minus;m</b></p>
d243 2
a244 3
<p style="margin-left:20%; margin-top: 1em">(i and p modes)
Set file modification time on created files to match those
in the source.</p>
d246 3
d250 2
a251 1
<p style="margin-top: 1em" valign="top"><b>&minus;n</b></p>
d253 5
a257 5
<p style="margin-left:20%; margin-top: 1em">(i mode, only
with <b>&minus;t</b>) Display numeric uid and gid. By
default, <b>cpio</b> displays the user and group names when
they are provided in the archive, or looks up the user and
group names in the system password database.</p>
d260 1
a260 1
<p style="margin-top: 1em" valign="top"><b>&minus;no-preserve-owner</b></p>
d262 1
a262 1
<p style="margin-left:20%;">(i mode only) Do not attempt to
d266 1
a266 2
<p style="margin-top: 1em" valign="top"><b>&minus;O</b>
<i>file</i></p>
d268 1
a268 1
<p style="margin-left:20%;">Write archive to
d271 2
d274 2
a275 4
<p style="margin-top: 1em" valign="top"><b>&minus;o</b></p>

<p style="margin-left:20%; margin-top: 1em">Output mode.
See above for description.</p>
d277 2
d280 2
a281 1
<p style="margin-top: 1em" valign="top"><b>&minus;p</b></p>
a282 2
<p style="margin-left:20%; margin-top: 1em">Pass-through
mode. See above for description.</p>
d284 1
d286 1
a286 3
<p style="margin-top: 1em" valign="top"><b>&minus;preserve-owner</b></p>

<p style="margin-left:20%;">(i mode only) Restore file
d290 1
d292 1
a292 3
<p style="margin-top: 1em" valign="top"><b>&minus;-quiet</b></p>

<p style="margin-left:20%;">Suppress unnecessary
d295 4
a298 2
<p style="margin-top: 1em" valign="top"><b>&minus;R</b> [
<br>
d303 1
a303 1
<p style="margin-left:20%;">Set the owner and/or group on
d315 1
d317 1
a317 3
<p style="margin-top: 1em" valign="top"><b>&minus;r</b></p>

<p style="margin-left:20%; margin-top: 1em">(All modes.)
d325 2
d328 3
a330 1
<p style="margin-top: 1em" valign="top"><b>&minus;t</b></p>
d332 2
a333 3
<p style="margin-left:20%; margin-top: 1em">(i mode only)
List the contents of the archive to stdout; do not restore
the contents to disk.</p>
d335 3
d339 2
a340 1
<p style="margin-top: 1em" valign="top"><b>&minus;u</b></p>
d342 2
a343 3
<p style="margin-left:20%; margin-top: 1em">(i and p modes)
Unconditionally overwrite existing files. Ordinarily, an
older file will not overwrite a newer file on disk.</p>
d345 2
d348 3
a350 1
<p style="margin-top: 1em" valign="top"><b>&minus;v</b></p>
a351 4
<p style="margin-left:20%; margin-top: 1em">Print the name
of each file to stderr as it is processed. With
<b>&minus;t</b>, provide a detailed listing of each
file.</p>
d353 1
d355 1
a355 3
<p style="margin-top: 1em" valign="top"><b>&minus;-version</b></p>

<p style="margin-left:20%;">Print the program version
d358 1
d360 1
a360 3
<p style="margin-top: 1em" valign="top"><b>&minus;y</b></p>

<p style="margin-left:20%; margin-top: 1em">(o mode only)
d365 1
d367 1
a367 3
<p style="margin-top: 1em" valign="top"><b>&minus;Z</b></p>

<p style="margin-left:20%; margin-top: 1em">(o mode only)
d372 1
d374 1
a374 3
<p style="margin-top: 1em" valign="top"><b>&minus;z</b></p>

<p style="margin-left:20%; margin-top: 1em">(o mode only)
d379 5
d385 1
a385 1
<p style="margin-top: 1em" valign="top"><b>ENVIRONMENT</b></p>
d387 1
a387 1
<p style="margin-left:8%;">The following environment
d390 1
a390 1
<p style="margin-top: 1em" valign="top">LANG</p>
d392 1
a392 1
<p style="margin-left:25%; margin-top: 1em">The locale to
d395 1
a395 1
<p style="margin-top: 1em" valign="top">TZ</p>
d397 1
a397 1
<p style="margin-left:25%; margin-top: 1em">The timezone to
d401 1
a401 7
<p style="margin-top: 1em" valign="top"><b>EXIT
STATUS</b></p>

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

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

<p style="margin-left:8%;">The <b>cpio</b> command is
traditionally used to copy file heirarchies in conjunction
d408 1
a408 1
<p style="margin-left:17%;"><b>find</b> <i>src</i> |
d411 1
a411 1
<p style="margin-left:8%; margin-top: 1em">By carefully
d419 1
a419 1
<p style="margin-left:17%;"><b>find</b> <i>src</i>
d423 1
a423 1
<p style="margin-left:8%; margin-top: 1em">This example
d426 1
a426 1
&lsquo;&lsquo;</p>
d428 1
a428 1
<p valign="top">foobar &rsquo;&rsquo;:</p>
d430 1
a430 1
<p style="margin-left:17%;"><b>find</b> <i>src</i>
d434 1
d436 1
a436 3
<p style="margin-top: 1em" valign="top"><b>COMPATIBILITY</b></p>

<p style="margin-left:8%;">The mode options i, o, and p and
d440 1
a440 1
<p style="margin-left:8%; margin-top: 1em">The old POSIX.1
d454 1
a454 1
<p style="margin-top: 1em" valign="top"><b>SEE ALSO</b></p>
d456 1
a456 1
<p style="margin-left:8%;">bzip2(1), tar(1), gzip(1),
d460 1
d462 1
a462 3
<p style="margin-top: 1em" valign="top"><b>STANDARDS</b></p>

<p style="margin-left:8%;">There is no current POSIX
d464 1
a464 1
9945-1:1996 (&lsquo;&lsquo;POSIX.1&rsquo;&rsquo;) but was
d466 1
a466 1
(&lsquo;&lsquo;POSIX.1&rsquo;&rsquo;).</p>
d468 1
a468 1
<p style="margin-left:8%; margin-top: 1em">The cpio, ustar,
d470 1
a470 1
1003.1-2001 (&lsquo;&lsquo;POSIX.1&rsquo;&rsquo;) for the
d473 1
a473 1
<p style="margin-top: 1em" valign="top"><b>HISTORY</b></p>
d475 1
a475 1
<p style="margin-left:8%;">The original <b>cpio</b> and
d479 1
a479 1
&lsquo;&lsquo;Programmer&rsquo;s Work Bench&rsquo;&rsquo;
d486 1
a486 1
<p style="margin-left:8%; margin-top: 1em">This is a
d490 1
a490 1
<p style="margin-top: 1em" valign="top"><b>BUGS</b></p>
d492 1
a492 1
<p style="margin-left:8%;">The cpio archive format has
d499 1
a499 1
4 gigabytes, except for the &lsquo;&lsquo;odc&rsquo;&rsquo;
d502 2
a503 3

<p style="margin-left:8%; margin-top: 1em">FreeBSD&nbsp;8.0
December&nbsp;21, 2007 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 519
a519 890
%!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: 72
%%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
(December 21, 2007 BSDCPIO 1)74.5 48 Q(</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>cpio</b>)0 48 Q 2.5(-c)0 60 S(op)-2.5 E 2.5
<798c>-.1 G(les to and from 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>cpio</b>)0 36
Q({<b>\255</b><b>i</b>})0 48 Q([<i></i><i>options</i>])0 60 Q
([<i></i><i>pattern</i><i> ...</i>])0 72 Q 0 Cg EP
%%Page: 6 6
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF([<i></i><i><</i><i> archi)0 12 Q -.15(ve)-.25 G
(</i>]).15 E(<b>cpio</b>)0 24 Q({<b>\255</b><b>o</b>})0 36 Q
([<i></i><i>options</i>])0 48 Q(<i></i><i><</i><i> name-list</i>)0 60 Q
([<i></i><i>></i><i> archi)0 72 Q -.15(ve)-.25 G(</i>]).15 E 0 Cg EP
%%Page: 7 7
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(<b>cpio</b>)0 12 Q({<b>\255</b><b>p</b>})0 24 Q
([<i></i><i>options</i>])0 36 Q(<i></i><i>dest-dir</i>)0 48 Q
(<i></i><i><</i><i> name-list</i>)0 60 Q(<h3 id="DESCRIPTION">)36 72 Q 0
Cg EP
%%Page: 8 8
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(DESCRIPTION)36 12 Q(</h3>)36 24 Q(<b>cpio</b>)0
36 Q(copies \214les between archi)0 48 Q -.15(ve)-.25 G 2.5(sa).15 G
(nd directories.)-2.5 E(This implementation can e)0 60 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(and ISO 9660 cdrom images and can create tar)0 72 Q
2.5(,p)-.4 G(ax, cpio, ar)-2.5 E(,)-.4 E 0 Cg EP
%%Page: 9 9
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(and shar archi)0 12 Q -.15(ve)-.25 G(s.).15 E
(<p>)36 24 Q(The \214rst option to)0 36 Q(<b>cpio</b>)0 48 Q
(is a mode indicator from the follo)0 60 Q(wing list:)-.25 E
(<dl compact>)0 72 Q 0 Cg EP
%%Page: 10 10
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(<dt><b>\255</b><b>i</b><dd>)0 12 Q(Input.)0 24 Q
(Read an archi)0 36 Q .3 -.15(ve f)-.25 H(rom standard input \(unless o)
.15 E -.15(ve)-.15 G(rriden\) and e).15 E(xtract the)-.15 E
(contents to disk or \(if the)0 48 Q(<b>\255</b><b>t</b>)0 60 Q
(option is speci\214ed\))0 72 Q 0 Cg EP
%%Page: 11 11
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(list the contents to standard output.)0 12 Q
(If one or more \214le patterns are speci\214ed, only \214les matching)0
24 Q(one of the patterns will be e)0 36 Q(xtracted.)-.15 E
(<dt><b>\255</b><b>o</b><dd>)0 48 Q(Output.)0 60 Q
(Read a list of \214lenames from standard input and produce a ne)0 72 Q
2.5(wa)-.25 G(rchi)-2.5 E -.15(ve)-.25 G 0 Cg EP
%%Page: 12 12
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(on standard output \(unless o)0 12 Q -.15(ve)
-.15 G(rriden\) containing the speci\214ed items.).15 E
(<dt><b>\255</b><b>p</b><dd>)0 24 Q -.15(Pa)0 36 S(ss-through.).15 E
(Read a list of \214lenames from standard input and cop)0 48 Q 2.5(yt)
-.1 G(he \214les to the)-2.5 E(speci\214ed directory)0 60 Q(.)-.65 E
(</dl>)0 72 Q 0 Cg EP
%%Page: 13 13
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(<p>)36 12 Q(<h3 id="OPTIONS">)36 24 Q(OPTIONS)36
36 Q(</h3>)36 48 Q
(Unless speci\214cally stated otherwise, options are applicable in)0 60
Q(all operating modes.)0 72 Q 0 Cg EP
%%Page: 14 14
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(<dl compact>)0 12 Q
(<p><dt><b>\255</b><b>0</b><dd>)0 24 Q
(Read \214lenames separated by NUL characters instead of ne)0 36 Q
(wlines.)-.25 E(This is necessary if an)0 48 Q 2.5(yo)-.15 G 2.5(ft)-2.5
G(he \214lenames being read might contain ne)-2.5 E(wlines.)-.25 E
(<p><dt><b>\255</b><b>A</b><dd>)0 60 Q(\(o mode only\))0 72 Q 0 Cg EP
%%Page: 15 15
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(Append to the speci\214ed archi)0 12 Q -.15(ve)
-.25 G(.).15 E(\(Not yet implemented.\))0 24 Q
(<p><dt><b>\255</b><b>a</b><dd>)0 36 Q(\(o and p modes\))0 48 Q
(Reset access times on \214les after the)0 60 Q 2.5(ya)-.15 G(re read.)
-2.5 E(<p><dt><b>\255</b><b>B</b><dd>)0 72 Q 0 Cg EP
%%Page: 16 16
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(\(o mode only\))0 12 Q
(Block output to records of 5120 bytes.)0 24 Q
(<p><dt><b>\255</b><b>C</b><i></i><i> size</i><dd>)0 36 Q
(\(o mode only\))0 48 Q(Block output to records of)0 60 Q
(<i></i><i>size</i>)0 72 Q 0 Cg EP
%%Page: 17 17
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(bytes.)0 12 Q(<p><dt><b>\255</b><b>c</b><dd>)0
24 Q(\(o mode only\))0 36 Q
(Use the old POSIX portable character format.)0 48 Q(Equi)0 60 Q -.25
(va)-.25 G(lent to).25 E(<b>\255</b><b>-format</b><i></i><i> odc</i>.)0
72 Q 0 Cg EP
%%Page: 18 18
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(<p><dt><b>\255</b><b>d</b><dd>)0 12 Q
(\(i and p modes\))0 24 Q(Create directories as necessary)0 36 Q(.)-.65
E(<p><dt><b>\255</b><b>E</b><i></i><i> \214le</i><dd>)0 48 Q
(\(i mode only\))0 60 Q(Read list of \214le name patterns from)0 72 Q 0
Cg EP
%%Page: 19 19
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(<i></i><i>\214le</i>)0 12 Q(to list and e)0 24 Q
(xtract.)-.15 E(<p><dt><b>\255</b><b>F</b><i></i><i> \214le</i><dd>)0 36
Q(Read archi)0 48 Q .3 -.15(ve f)-.25 H(rom or write archi).15 E .3 -.15
(ve t)-.25 H(o).15 E(<i></i><i>\214le</i>.)0 60 Q
(<p><dt><b>\255</b><b>f</b><i></i><i> pattern</i><dd>)0 72 Q 0 Cg EP
%%Page: 20 20
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(\(i mode only\))0 12 Q
(Ignore \214les that match)0 24 Q(<i></i><i>pattern</i>.)0 36 Q
(<p><dt><b>\255</b><b>-format</b><i></i><i> format</i><dd>)0 48 Q
(\(o mode only\))0 60 Q(Produce the output archi)0 72 Q .3 -.15(ve i)
-.25 H 2.5(nt).15 G(he speci\214ed format.)-2.5 E 0 Cg EP
%%Page: 21 21
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(Supported formats include:)0 12 Q(<p>)36 24 Q
(<dl compact>)0 36 Q(<dt><i></i><i>cpio</i><dd>)0 48 Q(Synon)0 60 Q
(ym for)-.15 E(<i></i><i>odc</i>.)0 72 Q 0 Cg EP
%%Page: 22 22
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(<dt><i></i><i>ne)0 12 Q(wc</i><dd>)-.25 E
(The SVR4 portable cpio format.)0 24 Q(<dt><i></i><i>odc</i><dd>)0 36 Q
(The old POSIX.1 portable octet-oriented cpio format.)0 48 Q
(<dt><i></i><i>pax</i><dd>)0 60 Q(The POSIX.1 pax format, an e)0 72 Q
(xtension of the ustar format.)-.15 E 0 Cg EP
%%Page: 23 23
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(<dt><i></i><i>ustar</i><dd>)0 12 Q
(The POSIX.1 tar format.)0 24 Q(</dl>)0 36 Q(<p>)36 48 Q(The def)0 60 Q
(ault format is)-.1 E(<i></i><i>odc</i>.)0 72 Q 0 Cg EP
%%Page: 24 24
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(See)0 12 Q(<a href="../html5/libarchi)0 24 Q
-.15(ve)-.25 G(_formats.html">libarchi).15 E -.15(ve)-.25 G
(_formats\(5\)</a>).15 E(for more complete information about the)0 36 Q
(formats currently supported by the underlying)0 48 Q
(<a href="../html3/libarchi)0 60 Q -.15(ve)-.25 G(.html">libarchi).15 E
-.15(ve)-.25 G(\(3\)</a>).15 E(library)0 72 Q(.)-.65 E 0 Cg EP
%%Page: 25 25
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF
(<p><dt><b>\255</b><b>H</b><i></i><i> format</i><dd>)0 12 Q(Synon)0 24 Q
(ym for)-.15 E(<b>\255</b><b>-format</b>.)0 36 Q
(<p><dt><b>\255</b><b>h</b><b> \255</b>,<b>-help</b><dd>)0 48 Q
(Print usage information.)0 60 Q
(<p><dt><b>\255</b><b>I</b><i></i><i> \214le</i><dd>)0 72 Q 0 Cg EP
%%Page: 26 26
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(Read archi)0 12 Q .3 -.15(ve f)-.25 H(rom).15 E
(<i></i><i>\214le</i>.)0 24 Q(<p><dt><b>\255</b><b>i</b><dd>)0 36 Q
(Input mode.)0 48 Q(See abo)0 60 Q .3 -.15(ve f)-.15 H(or description.)
.15 E(<p><dt><b>\255</b><b>-insecure</b><dd>)0 72 Q 0 Cg EP
%%Page: 27 27
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(\(i and p mode only\))0 12 Q
(Disable security checks during e)0 24 Q(xtraction or cop)-.15 E(ying.)
-.1 E(This allo)0 36 Q(ws e)-.25 E
(xtraction via symbolic links and path names containing)-.15 E(`..)0 48
Q(')-.7 E(in the name.)0 60 Q(<p><dt><b>\255</b><b>J</b><dd>)0 72 Q 0 Cg
EP
%%Page: 28 28
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(\(o mode only\))0 12 Q
(Compress the \214le with xz-compatible compression before writing it.)0
24 Q
(In input mode, this option is ignored; xz compression is recognized)0
36 Q(automatically on input.)0 48 Q(<p><dt><b>\255</b><b>j</b><dd>)0 60
Q(Synon)0 72 Q(ym for)-.15 E 0 Cg EP
%%Page: 29 29
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(<b>\255</b><b>y</b>.)0 12 Q
(<p><dt><b>\255</b><b>L</b><dd>)0 24 Q(\(o and p modes\))0 36 Q
(All symbolic links will be follo)0 48 Q(wed.)-.25 E(Normally)0 60 Q 2.5
(,s)-.65 G(ymbolic links are archi)-2.5 E -.15(ve)-.25 G 2.5(da).15 G
(nd copied as symbolic links.)-2.5 E -.4(Wi)0 72 S
(th this option, the tar).4 E(get of the link will be archi)-.18 E -.15
(ve)-.25 G 2.5(do).15 G 2.5(rc)-2.5 G(opied instead.)-2.5 E 0 Cg EP
%%Page: 30 30
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(<p><dt><b>\255</b><b>l</b><dd>)0 12 Q
(\(p mode only\))0 24 Q(Create links from the tar)0 36 Q
(get directory to the original \214les,)-.18 E(instead of cop)0 48 Q
(ying.)-.1 E(<p><dt><b>\255</b><b>lzma</b><dd>)0 60 Q(\(o mode only\))0
72 Q 0 Cg EP
%%Page: 31 31
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(Compress the \214le with lzma-compatible compre\
ssion before writing it.)0 12 Q
(In input mode, this option is ignored; lzma compression is recognized)0
24 Q(automatically on input.)0 36 Q(<p><dt><b>\255</b><b>m</b><dd>)0 48
Q(\(i and p modes\))0 60 Q
(Set \214le modi\214cation time on created \214les to match)0 72 Q 0 Cg
EP
%%Page: 32 32
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(those in the source.)0 12 Q
(<p><dt><b>\255</b><b>n</b><dd>)0 24 Q(\(i mode, only with)0 36 Q
(<b>\255</b><b>t</b>\))0 48 Q(Display numeric uid and gid.)0 60 Q
(By def)0 72 Q(ault,)-.1 E 0 Cg EP
%%Page: 33 33
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(<b>cpio</b>)0 12 Q
(displays the user and group names when the)0 24 Q 2.5(ya)-.15 G(re pro)
-2.5 E(vided in the)-.15 E(archi)0 36 Q -.15(ve)-.25 G 2.5(,o).15 G 2.5
(rl)-2.5 G(ooks up the user and group names in the system)-2.5 E(passw)0
48 Q(ord database.)-.1 E(<p><dt><b>\255</b><b>no-preserv)0 60 Q(e-o)-.15
E(wner</b><dd>)-.25 E(\(i mode only\))0 72 Q 0 Cg EP
%%Page: 34 34
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(Do not attempt to restore \214le o)0 12 Q
(wnership.)-.25 E(This is the def)0 24 Q
(ault when run by non-root users.)-.1 E
(<p><dt><b>\255</b><b>O</b><i></i><i> \214le</i><dd>)0 36 Q(Write archi)
0 48 Q .3 -.15(ve t)-.25 H(o).15 E(<i></i><i>\214le</i>.)0 60 Q
(<p><dt><b>\255</b><b>o</b><dd>)0 72 Q 0 Cg EP
%%Page: 35 35
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(Output mode.)0 12 Q(See abo)0 24 Q .3 -.15(ve f)
-.15 H(or description.).15 E(<p><dt><b>\255</b><b>p</b><dd>)0 36 Q -.15
(Pa)0 48 S(ss-through mode.).15 E(See abo)0 60 Q .3 -.15(ve f)-.15 H
(or description.).15 E(<p><dt><b>\255</b><b>preserv)0 72 Q(e-o)-.15 E
(wner</b><dd>)-.25 E 0 Cg EP
%%Page: 36 36
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(\(i mode only\))0 12 Q(Restore \214le o)0 24 Q
(wnership.)-.25 E(This is the def)0 36 Q(ault when run by the root user)
-.1 E(.)-.55 E(<p><dt><b>\255</b><b>-quiet</b><dd>)0 48 Q
(Suppress unnecessary messages.)0 60 Q(<p><dt><b>\255</b><b>R </b><b>us\
er[.blm Pp</b>[.blm Pp:group[.blm Pp<dd>]]])0 72 Q 0 Cg EP
%%Page: 37 37
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(Set the o)0 12 Q
(wner and/or group on \214les in the output.)-.25 E
(If group is speci\214ed with no user)0 24 Q(\(for e)0 36 Q(xample,)-.15
E(<b>\255</b><b>R</b><i></i><i> :wheel</i>\))0 48 Q
(then the group will be set b)0 60 Q(ut not the user)-.2 E(.)-.55 E
(If the user is speci\214ed with a trailing colon and no group)0 72 Q 0
Cg EP
%%Page: 38 38
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(\(for e)0 12 Q(xample,)-.15 E
(<b>\255</b><b>R</b><i></i><i> root:</i>\))0 24 Q
(then the group will be set to the user')0 36 Q 2.5(sd)-.55 G(ef)-2.5 E
(ault group.)-.1 E
(If the user is speci\214ed with no trailing colon, then)0 48 Q
(the user will be set b)0 60 Q(ut not the group.)-.2 E(In)0 72 Q 0 Cg EP
%%Page: 39 39
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(<b>\255</b><b>i</b>)0 12 Q(and)0 24 Q
(<b>\255</b><b>p</b>)0 36 Q
(modes, this option can only be used by the super)0 48 Q(-user)-.2 E(.)
-.55 E(\(F)0 60 Q(or compatibility)-.15 E 2.5(,ap)-.65 G
(eriod can be used in place of the colon.\))-2.5 E
(<p><dt><b>\255</b><b>r</b><dd>)0 72 Q 0 Cg EP
%%Page: 40 40
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(\(All modes.\))0 12 Q(Rename \214les interacti)0
24 Q -.15(ve)-.25 G(ly).15 E(.)-.65 E -.15(Fo)0 36 S 2.5(re).15 G
(ach \214le, a prompt is written to)-2.5 E(<code></code><code>/de)0 48 Q
(v/tty</code>)-.25 E
(containing the name of the \214le and a line is read from)0 60 Q
(<code></code><code>/de)0 72 Q(v/tty</code>.)-.25 E 0 Cg EP
%%Page: 41 41
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF
(If the line read is blank, the \214le is skipped.)0 12 Q
(If the line contains a single period, the \214le is processed normally)
0 24 Q(.)-.65 E(Otherwise, the line is tak)0 36 Q(en to be the ne)-.1 E
2.5(wn)-.25 G(ame of the \214le.)-2.5 E(<p><dt><b>\255</b><b>t</b><dd>)0
48 Q(\(i mode only\))0 60 Q(List the contents of the archi)0 72 Q .3
-.15(ve t)-.25 H 2.5(os).15 G(tdout;)-2.5 E 0 Cg EP
%%Page: 42 42
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(do not restore the contents to disk.)0 12 Q
(<p><dt><b>\255</b><b>u</b><dd>)0 24 Q(\(i and p modes\))0 36 Q
(Unconditionally o)0 48 Q -.15(ve)-.15 G(rwrite e).15 E
(xisting \214les.)-.15 E(Ordinarily)0 60 Q 2.5(,a)-.65 G 2.5(no)-2.5 G
(lder \214le will not o)-2.5 E -.15(ve)-.15 G(rwrite a ne).15 E
(wer \214le on disk.)-.25 E(<p><dt><b>\255</b><b>v</b><dd>)0 72 Q 0 Cg
EP
%%Page: 43 43
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF
(Print the name of each \214le to stderr as it is processed.)0 12 Q -.4
(Wi)0 24 S(th).4 E(<b>\255</b><b>t</b>,)0 36 Q(pro)0 48 Q
(vide a detailed listing of each \214le.)-.15 E(<p><dt><b>\255</b><b>-v)
0 60 Q(ersion</b><dd>)-.15 E(Print the program v)0 72 Q
(ersion information and e)-.15 E(xit.)-.15 E 0 Cg EP
%%Page: 44 44
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(<p><dt><b>\255</b><b>y</b><dd>)0 12 Q
(\(o mode only\))0 24 Q(Compress the archi)0 36 Q .3 -.15(ve w)-.25 H
(ith bzip2-compatible compression before writing it.).15 E
(In input mode, this option is ignored;)0 48 Q
(bzip2 compression is recognized automatically on input.)0 60 Q
(<p><dt><b>\255</b><b>Z</b><dd>)0 72 Q 0 Cg EP
%%Page: 45 45
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(\(o mode only\))0 12 Q(Compress the archi)0 24 Q
.3 -.15(ve w)-.25 H
(ith compress-compatible compression before writing it.).15 E
(In input mode, this option is ignored;)0 36 Q
(compression is recognized automatically on input.)0 48 Q
(<p><dt><b>\255</b><b>z</b><dd>)0 60 Q(\(o mode only\))0 72 Q 0 Cg EP
%%Page: 46 46
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(Compress the archi)0 12 Q .3 -.15(ve w)-.25 H
(ith gzip-compatible compression before writing it.).15 E
(In input mode, this option is ignored;)0 24 Q
(gzip compression is recognized automatically on input.)0 36 Q(</dl>)0
48 Q(<h3 id="ENVIR)36 60 Q(ONMENT">)-.4 E(ENVIR)36 72 Q(ONMENT)-.4 E 0
Cg EP
%%Page: 47 47
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(</h3>)36 12 Q(The follo)0 24 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 36 Q(<dl compact>)0 48 Q
(<p><dt><code></code><code>LANG</code><dd>)0 60 Q(The locale to use.)0
72 Q 0 Cg EP
%%Page: 48 48
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(See)0 12 Q(<a href="../html7/en)0 24 Q
(viron.html">en)-.4 E(viron\(7\)</a>)-.4 E(for more information.)0 36 Q
(<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: 49 49
%%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="EXIT ST)36 48 Q -1.11(AT)-.93 G(US">)1.11 E(EXIT ST)36 60 Q
-1.11(AT)-.93 G(US)1.11 E(</h3>)36 72 Q 0 Cg EP
%%Page: 50 50
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(<h3 id="EXAMPLES">)36 12 Q(EXAMPLES)36 24 Q
(</h3>)36 36 Q(The)0 48 Q(<b>cpio</b>)0 60 Q
(command is traditionally used to cop)0 72 Q 2.5<798c>-.1 G
(le heirarchies in conjunction)-2.5 E 0 Cg EP
%%Page: 51 51
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(with the)0 12 Q
(<a href="../html1/\214nd.html">\214nd\(1\)</a>)0 24 Q(command.)0 36 Q
(The \214rst e)0 48 Q(xample here simply copies all \214les from)-.15 E
(<code></code><code>src</code>)0 60 Q(to)0 72 Q 0 Cg EP
%%Page: 52 52
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(<code></code><code>dest</code>:)0 12 Q(<br>)0 24
Q(&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;)0 36 Q(<code></code><b>\214nd</b\
><code></code><code>src</code><code> |</code><b>Fl</b><b> pmud</b><code\
></code><code> dest</code>)0 48 Q(<br>)0 60 Q(<p>)36 72 Q 0 Cg EP
%%Page: 53 53
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(By carefully selecting options to the)0 12 Q
(<a href="../html1/\214nd.html">\214nd\(1\)</a>)0 24 Q
(command and combining it with other standard utilities,)0 36 Q
(it is possible to e)0 48 Q -.15(xe)-.15 G(rcise v).15 E
(ery \214ne control o)-.15 E -.15(ve)-.15 G 2.5(rw).15 G
(hich \214les are copied.)-2.5 E(This ne)0 60 Q(xt e)-.15 E
(xample copies \214les from)-.15 E(<code></code><code>src</code>)0 72 Q
0 Cg EP
%%Page: 54 54
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(to)0 12 Q(<code></code><code>dest</code>)0 24 Q
(that are more than 2 days old and whose names match a particular patte\
rn:)0 36 Q(<br>)0 48 Q(&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;)0 60 Q(<cod\
e></code><b>\214nd</b><code></code><code>src</code><b> \255</b><b>mtime\
</b><i></i><i> +2</i><i> |</i><b>grep</b><b> foo[bar]</b><b> |</b><b>Fl\
</b><b> pdmu</b><code></code><code> dest</code>)0 72 Q 0 Cg EP
%%Page: 55 55
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(<br>)0 12 Q(<p>)36 24 Q(This e)0 36 Q
(xample copies \214les from)-.15 E(<code></code><code>src</code>)0 48 Q
(to)0 60 Q(<code></code><code>dest</code>)0 72 Q 0 Cg EP
%%Page: 56 56
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF
(that are more than 2 days old and which contain the w)0 12 Q(ord)-.1 E
(foobar`)0 24 Q(`.blm Pp: ')-.74 E(')-.74 E(<br>)0 36 Q
(&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;)0 48 Q(<code></code><b>\214nd</b>\
<code></code><code>src</code><b> \255</b><b>mtime</b><i></i><i> +2</i><\
i> |</i><b>xar)0 60 Q(gs</b><b>grep</b><b> -l</b><b> foobar</b><b> |</b\
><b>Fl</b><b> pdmu</b><code></code><code> dest</code>)-.18 E(<br>)0 72 Q
0 Cg EP
%%Page: 57 57
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(<h3 id="COMP)36 12 Q -1.11(AT)-.92 G(IBILITY">)
1.11 E(COMP)36 24 Q -1.11(AT)-.92 G(IBILITY)1.11 E(</h3>)36 36 Q
(The mode options i, o, and p and the options)0 48 Q
(a, B, c, d, f, l, m, r)0 60 Q 2.5(,t)-.4 G 2.5(,u)-2.5 G 2.5(,a)-2.5 G
(nd v comply with SUSv2.)-2.5 E(<p>)36 72 Q 0 Cg EP
%%Page: 58 58
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(The old POSIX.1 standard speci\214ed that only)0
12 Q(<b>\255</b><b>i</b>,)0 24 Q(<b>\255</b><b>o</b>,)0 36 Q(and)0 48 Q
(<b>\255</b><b>p</b>)0 60 Q(were interpreted as command-line options.)0
72 Q 0 Cg EP
%%Page: 59 59
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(Each took a single ar)0 12 Q
(gument of a list of modi\214er)-.18 E(characters.)0 24 Q -.15(Fo)0 36 S
2.5(re).15 G(xample, the standard syntax allo)-2.65 E(ws)-.25 E
(<b>\255</b><b>imu</b>)0 48 Q -.2(bu)0 60 S 2.5(td).2 G(oes not support)
-2.5 E(<b>\255</b><b>miu</b>)0 72 Q 0 Cg EP
%%Page: 60 60
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(or)0 12 Q
(<b>\255</b><b>i</b><b> \255</b><b>m</b><b> \255</b><b>u</b>,)0 24 Q
(since)0 36 Q(<i></i><i>m</i>)0 48 Q(and)0 60 Q(<i></i><i>u</i>)0 72 Q 0
Cg EP
%%Page: 61 61
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(are only modi\214ers to)0 12 Q
(<b>\255</b><b>i</b>,)0 24 Q(the)0 36 Q 2.5(ya)-.15 G
(re not command-line options in their o)-2.5 E(wn right.)-.25 E
(The syntax supported by this implementation is backw)0 48 Q
(ards-compatible)-.1 E(with the standard.)0 60 Q -.15(Fo)0 72 S 2.5(rb)
.15 G(est compatibility)-2.5 E 2.5(,s)-.65 G
(cripts should limit themselv)-2.5 E(es to the)-.15 E 0 Cg EP
%%Page: 62 62
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(standard syntax.)0 12 Q(<h3 id="SEE ALSO">)36 24
Q(SEE ALSO)36 36 Q(</h3>)36 48 Q
(<a href="../html1/bzip2.html">bzip2\(1\)</a>,)0 60 Q
(<a href="../html1/tar)0 72 Q(.html">tar\(1\)</a>,)-.55 E 0 Cg EP
%%Page: 63 63
%%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="../html3/libarchi)0 48 Q -.15(ve)-.25 G(.html">libarchi).15 E
-.15(ve)-.25 G(\(3\)</a>,).15 E
(<a href="../html5/cpio.html">cpio\(5\)</a>,)0 60 Q
(<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: 64 64
%%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 cpio command; it appeared)0
60 Q(in)0 72 Q 0 Cg EP
%%Page: 65 65
%%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(<p>)36 48 Q
(The cpio, ustar)0 60 Q 2.5(,a)-.4 G
(nd pax interchange \214le formats are de\214ned by)-2.5 E
(IEEE Std 1003.1-2001 \(`)2.5 72 Q(`<font size="-1">POSIX</font>.1')-.74
E('\))-.74 E 0 Cg EP
%%Page: 66 66
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(for the pax command.)0 12 Q(<h3 id="HIST)36 24 Q
(OR)-.18 E(Y">)-.65 E(HIST)36 36 Q(OR)-.18 E(Y)-.65 E(</h3>)36 48 Q
(The original)0 60 Q(<b>cpio</b>)0 72 Q 0 Cg EP
%%Page: 67 67
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(and)0 12 Q(<b>\214nd</b>)0 24 Q
(utilities were written by Dick Haight)0 36 Q(while w)0 48 Q
(orking in A)-.1 E(T&T')-1.11 E 2.5(sU)-.55 G(nix Support Group.)-2.5 E
(The)0 60 Q 2.5<798c>-.15 G(rst appeared in 1977 in PWB/UNIX 1.0, the)
-2.5 E -.74(``)0 72 S(Programmer').74 E 2.5(sW)-.55 G(ork Bench')-3.3 E
(')-.74 E 0 Cg EP
%%Page: 68 68
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(system de)0 12 Q -.15(ve)-.25 G
(loped for use within A).15 E(T&T)-1.11 E(.)-.74 E(The)0 24 Q 2.5(yw)
-.15 G(ere \214rst released outside of A)-2.5 E
(T&T as part of System III Unix in 1981.)-1.11 E(As a result,)0 36 Q
(<b>cpio</b>)0 48 Q(actually predates)0 60 Q(<b>tar</b>,)0 72 Q 0 Cg EP
%%Page: 69 69
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF -2.15 -.25(ev e)0 12 T 2.5(nt).25 G(hough it w)
-2.5 E(as not well-kno)-.1 E(wn outside of A)-.25 E
(T&T until some time later)-1.11 E(.)-.55 E(<p>)36 24 Q
(This is a complete re-implementation based on the)0 36 Q
(<a href="../html3/libarchi)0 48 Q -.15(ve)-.25 G(.html">libarchi).15 E
-.15(ve)-.25 G(\(3\)</a>).15 E(library)0 60 Q(.)-.65 E(<h3 id="B)36 72 Q
(UGS">)-.1 E 0 Cg EP
%%Page: 70 70
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF -.1(BU)36 12 S(GS).1 E(</h3>)36 24 Q
(The cpio archi)0 36 Q .3 -.15(ve f)-.25 H(ormat has se).15 E -.15(ve)
-.25 G(ral basic limitations:).15 E
(It does not store user and group names, only numbers.)0 48 Q
(As a result, it cannot be reliably used to transfer)0 60 Q
(\214les between systems with dissimilar user and group numbering.)0 72
Q 0 Cg EP
%%Page: 71 71
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF
(Older cpio formats limit the user and group numbers to)0 12 Q
(16 or 18 bits, which is insuf)0 24 Q(\214cient for modern systems.)-.25
E(The cpio archi)0 36 Q .3 -.15(ve f)-.25 H
(ormats cannot support \214les o).15 E -.15(ve)-.15 G 2.5(r4g).15 G(ig)
-2.5 E(abytes,)-.05 E -.15(ex)0 48 S(cept for the).15 E -.74(``)0 60 S
(odc').74 E(')-.74 E -.25(va)0 72 S
(riant, which can support \214les up to 8 gig).25 E(abytes.)-.05 E 0 Cg
EP
%%Page: 72 72
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(</body>)0 12 Q(</html>)0 24 Q 0 Cg EP
%%Trailer
end
%%EOF
@


1.1.1.3
log
@libarchive-2.8.3: Build fix for Linux
@
text
@d1 890
a890 519
<!-- Creator     : groff version 1.19.2 -->
<!-- CreationDate: Sun Mar 14 19:50:40 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">BSDCPIO(1) FreeBSD General Commands Manual
BSDCPIO(1)</p>

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

<p style="margin-left:8%;"><b>cpio</b> &mdash; copy files
to and from archives</p>


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

<p style="margin-left:15%;"><b>cpio</b> {<b>&minus;i</b>}
[<i>options</i>] [<i>pattern&nbsp;...</i>]
[<i>&lt;&nbsp;archive</i>] <b><br>
cpio</b> {<b>&minus;o</b>} [<i>options</i>] <i>&lt;
name-list</i> [<i>&gt;&nbsp;archive</i>] <b><br>
cpio</b> {<b>&minus;p</b>} [<i>options</i>] <i>dest-dir &lt;
name-list</i></p>


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

<p style="margin-left:8%;"><b>cpio</b> copies files between
archives and directories. 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 option
to <b>cpio</b> is a mode indicator from the following
list:</p>

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

<p style="margin-left:20%; margin-top: 1em">Input. Read an
archive from standard input (unless overriden) and extract
the contents to disk or (if the <b>&minus;t</b> option is
specified) list the contents to standard output. If one or
more file patterns are specified, only files matching one of
the patterns will be extracted.</p>

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

<p style="margin-left:20%; margin-top: 1em">Output. Read a
list of filenames from standard input and produce a new
archive on standard output (unless overriden) containing the
specified items.</p>

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

<p style="margin-left:20%; margin-top: 1em">Pass-through.
Read a list of filenames from standard input and copy the
files to the specified directory.</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>&minus;0</b></p>

<p style="margin-left:20%; margin-top: 1em">Read filenames
separated by NUL characters instead of newlines. This is
necessary if any of the filenames being read might contain
newlines.</p>


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

<p style="margin-left:20%; margin-top: 1em">(o mode only)
Append to the specified archive. (Not yet implemented.)</p>


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

<p style="margin-left:20%; margin-top: 1em">(o and p modes)
Reset access times on files after they are read.</p>


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

<p style="margin-left:20%; margin-top: 1em">(o mode only)
Block output to records of 5120 bytes.</p>

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

<p style="margin-left:20%;">(o mode only) Block output to
records of <i>size</i> bytes.</p>


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

<p style="margin-left:20%; margin-top: 1em">(o mode only)
Use the old POSIX portable character format. Equivalent to
<b>&minus;-format</b> <i>odc</i>.</p>


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

<p style="margin-left:20%; margin-top: 1em">(i and p modes)
Create directories as necessary.</p>

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

<p style="margin-left:20%;">(i mode only) Read list of file
name patterns from <i>file</i> to list and extract.</p>

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

<p style="margin-left:20%;">Read archive from or write
archive to <i>file</i>.</p>

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

<p style="margin-left:20%;">(i mode only) Ignore files that
match <i>pattern</i>.</p>


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

<p style="margin-left:20%;">(o mode only) Produce the
output archive in the specified format. Supported formats
include:</p>

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

<p style="margin-left:34%; margin-top: 1em">Synonym for
<i>odc</i>.</p>

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

<p style="margin-left:34%; margin-top: 1em">The SVR4
portable cpio format.</p>

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

<p style="margin-left:34%; margin-top: 1em">The old POSIX.1
portable octet-oriented cpio format.</p>

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

<p style="margin-left:34%; margin-top: 1em">The POSIX.1 pax
format, an extension of the ustar format.</p>

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

<p style="margin-left:34%; margin-top: 1em">The POSIX.1 tar
format.</p>

<p style="margin-left:20%; margin-top: 1em">The default
format is <i>odc</i>. See libarchive_formats(5) for more
complete information about the formats currently supported
by the underlying libarchive(3) library.</p>

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

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

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

<p style="margin-left:20%;">Print usage information.</p>

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

<p style="margin-left:20%;">Read archive from
<i>file</i>.</p>


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

<p style="margin-left:20%; margin-top: 1em">Input mode. See
above for description.</p>


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

<p style="margin-left:20%;">(i and p mode only) Disable
security checks during extraction or copying. This allows
extraction via symbolic links and path names containing
&lsquo;..&rsquo; in the name.</p>


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

<p style="margin-left:20%; margin-top: 1em">(o mode only)
Compress the file with xz-compatible compression before
writing it. In input mode, this option is ignored; xz
compression is recognized automatically on input.</p>


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

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


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

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


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

<p style="margin-left:20%; margin-top: 1em">(p mode only)
Create links from the target directory to the original
files, instead of copying.</p>


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

<p style="margin-left:20%; margin-top: 1em">(o mode only)
Compress the file with lzma-compatible compression before
writing it. In input mode, this option is ignored; lzma
compression is recognized automatically on input.</p>


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

<p style="margin-left:20%; margin-top: 1em">(i and p modes)
Set file modification time on created files to match those
in the source.</p>


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

<p style="margin-left:20%; margin-top: 1em">(i mode, only
with <b>&minus;t</b>) Display numeric uid and gid. By
default, <b>cpio</b> displays the user and group names when
they are provided in the archive, or looks up the user and
group names in the system password database.</p>


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

<p style="margin-left:20%;">(i mode only) Do not attempt to
restore file ownership. This is the default when run by
non-root users.</p>

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

<p style="margin-left:20%;">Write archive to
<i>file</i>.</p>


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

<p style="margin-left:20%; margin-top: 1em">Output mode.
See above for description.</p>


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

<p style="margin-left:20%; margin-top: 1em">Pass-through
mode. See above for description.</p>


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

<p style="margin-left:20%;">(i mode only) Restore file
ownership. This is the default when run by the root
user.</p>


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

<p style="margin-left:20%;">Suppress unnecessary
messages.</p>

<p style="margin-top: 1em" valign="top"><b>&minus;R</b> [
<br>
user][ <br>
:][ <br>
group]</p>

<p style="margin-left:20%;">Set the owner and/or group on
files in the output. If group is specified with no user (for
example, <b>&minus;R</b> <i>:wheel</i>) then the group will
be set but not the user. If the user is specified with a
trailing colon and no group (for example, <b>&minus;R</b>
<i>root:</i>) then the group will be set to the user&rsquo;s
default group. If the user is specified with no trailing
colon, then the user will be set but not the group. In
<b>&minus;i</b> and <b>&minus;p</b> modes, this option can
only be used by the super-user. (For compatibility, a period
can be used in place of the colon.)</p>


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

<p style="margin-left:20%; margin-top: 1em">(All modes.)
Rename files interactively. For each file, a prompt is
written to <i>/dev/tty</i> containing the name of the file
and a line is read from <i>/dev/tty</i>. If the line read is
blank, the file is skipped. If the line contains a single
period, the file is processed normally. Otherwise, the line
is taken to be the new name of the file.</p>


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

<p style="margin-left:20%; margin-top: 1em">(i mode only)
List the contents of the archive to stdout; do not restore
the contents to disk.</p>


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

<p style="margin-left:20%; margin-top: 1em">(i and p modes)
Unconditionally overwrite existing files. Ordinarily, an
older file will not overwrite a newer file on disk.</p>


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

<p style="margin-left:20%; margin-top: 1em">Print the name
of each file to stderr as it is processed. With
<b>&minus;t</b>, provide a detailed listing of each
file.</p>


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

<p style="margin-left:20%;">Print the program version
information and exit.</p>


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

<p style="margin-left:20%; margin-top: 1em">(o mode only)
Compress the archive with bzip2-compatible compression
before writing it. In input mode, this option is ignored;
bzip2 compression is recognized automatically on input.</p>


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

<p style="margin-left:20%; margin-top: 1em">(o mode only)
Compress the archive with compress-compatible compression
before writing it. In input mode, this option is ignored;
compression is recognized automatically on input.</p>


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

<p style="margin-left:20%; margin-top: 1em">(o mode only)
Compress the archive with gzip-compatible compression before
writing it. In input mode, this option is ignored; gzip
compression is recognized automatically on input.</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>cpio</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">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>EXIT
STATUS</b></p>

<p style="margin-left:8%;">The <b>cpio</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 <b>cpio</b> command is
traditionally used to copy file heirarchies in conjunction
with the find(1) command. The first example here simply
copies all files from <i>src</i> to <i>dest</i>:</p>

<p style="margin-left:17%;"><b>find</b> <i>src</i> |
<b>cpio &minus;pmud</b> <i>dest</i></p>

<p style="margin-left:8%; margin-top: 1em">By carefully
selecting options to the find(1) command and combining it
with other standard utilities, it is possible to exercise
very fine control over which files are copied. This next
example copies files from <i>src</i> to <i>dest</i> that are
more than 2 days old and whose names match a particular
pattern:</p>

<p style="margin-left:17%;"><b>find</b> <i>src</i>
<b>&minus;mtime</b> <i>+2</i> | <b>grep foo[bar]</b> |
<b>cpio &minus;pdmu</b> <i>dest</i></p>

<p style="margin-left:8%; margin-top: 1em">This example
copies files from <i>src</i> to <i>dest</i> that are more
than 2 days old and which contain the word
&lsquo;&lsquo;</p>

<p valign="top">foobar &rsquo;&rsquo;:</p>

<p style="margin-left:17%;"><b>find</b> <i>src</i>
<b>&minus;mtime</b> <i>+2</i> | <b>xargs grep -l foobar</b>
| <b>cpio &minus;pdmu</b> <i>dest</i></p>


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

<p style="margin-left:8%;">The mode options i, o, and p and
the options a, B, c, d, f, l, m, r, t, u, and v comply with
SUSv2.</p>

<p style="margin-left:8%; margin-top: 1em">The old POSIX.1
standard specified that only <b>&minus;i</b>,
<b>&minus;o</b>, and <b>&minus;p</b> were interpreted as
command-line options. Each took a single argument of a list
of modifier characters. For example, the standard syntax
allows <b>&minus;imu</b> but does not support
<b>&minus;miu</b> or <b>&minus;i &minus;m &minus;u</b>,
since <i>m</i> and <i>u</i> are only modifiers to
<b>&minus;i</b>, they are not command-line options in their
own right. The syntax supported by this implementation is
backwards-compatible with the standard. For best
compatibility, scripts should limit themselves to the
standard syntax.</p>

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

<p style="margin-left:8%;">bzip2(1), tar(1), gzip(1),
mt(1), pax(1), libarchive(3), cpio(5),
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 cpio 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;).</p>

<p style="margin-left:8%; margin-top: 1em">The cpio, 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%;">The original <b>cpio</b> and
<b>find</b> utilities were written by Dick Haight while
working in AT&amp;T&rsquo;s Unix Support Group. They first
appeared in 1977 in PWB/UNIX 1.0, the
&lsquo;&lsquo;Programmer&rsquo;s Work Bench&rsquo;&rsquo;
system developed for use within AT&amp;T. They were first
released outside of AT&amp;T as part of System III Unix in
1981. As a result, <b>cpio</b> actually predates <b>tar</b>,
even though it was not well-known outside of AT&amp;T until
some time later.</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%;">The cpio archive format has
several basic limitations: It does not store user and group
names, only numbers. As a result, it cannot be reliably used
to transfer files between systems with dissimilar user and
group numbering. Older cpio formats limit the user and group
numbers to 16 or 18 bits, which is insufficient for modern
systems. The cpio archive formats cannot support files over
4 gigabytes, except for the &lsquo;&lsquo;odc&rsquo;&rsquo;
variant, which can support files up to 8 gigabytes.</p>


<p style="margin-left:8%; margin-top: 1em">FreeBSD&nbsp;9.0
December&nbsp;21, 2007 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 519
a519 890
%!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: 72
%%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
(December 21, 2007 BSDCPIO 1)74.5 48 Q(</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>cpio</b>)0 48 Q 2.5(-c)0 60 S(op)-2.5 E 2.5
<798c>-.1 G(les to and from 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>cpio</b>)0 36
Q({<b>\255</b><b>i</b>})0 48 Q([<i></i><i>options</i>])0 60 Q
([<i></i><i>pattern</i><i> ...</i>])0 72 Q 0 Cg EP
%%Page: 6 6
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF([<i></i><i><</i><i> archi)0 12 Q -.15(ve)-.25 G
(</i>]).15 E(<b>cpio</b>)0 24 Q({<b>\255</b><b>o</b>})0 36 Q
([<i></i><i>options</i>])0 48 Q(<i></i><i><</i><i> name-list</i>)0 60 Q
([<i></i><i>></i><i> archi)0 72 Q -.15(ve)-.25 G(</i>]).15 E 0 Cg EP
%%Page: 7 7
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(<b>cpio</b>)0 12 Q({<b>\255</b><b>p</b>})0 24 Q
([<i></i><i>options</i>])0 36 Q(<i></i><i>dest-dir</i>)0 48 Q
(<i></i><i><</i><i> name-list</i>)0 60 Q(<h3 id="DESCRIPTION">)36 72 Q 0
Cg EP
%%Page: 8 8
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(DESCRIPTION)36 12 Q(</h3>)36 24 Q(<b>cpio</b>)0
36 Q(copies \214les between archi)0 48 Q -.15(ve)-.25 G 2.5(sa).15 G
(nd directories.)-2.5 E(This implementation can e)0 60 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(and ISO 9660 cdrom images and can create tar)0 72 Q
2.5(,p)-.4 G(ax, cpio, ar)-2.5 E(,)-.4 E 0 Cg EP
%%Page: 9 9
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(and shar archi)0 12 Q -.15(ve)-.25 G(s.).15 E
(<p>)36 24 Q(The \214rst option to)0 36 Q(<b>cpio</b>)0 48 Q
(is a mode indicator from the follo)0 60 Q(wing list:)-.25 E
(<dl compact>)0 72 Q 0 Cg EP
%%Page: 10 10
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(<dt><b>\255</b><b>i</b><dd>)0 12 Q(Input.)0 24 Q
(Read an archi)0 36 Q .3 -.15(ve f)-.25 H(rom standard input \(unless o)
.15 E -.15(ve)-.15 G(rriden\) and e).15 E(xtract the)-.15 E
(contents to disk or \(if the)0 48 Q(<b>\255</b><b>t</b>)0 60 Q
(option is speci\214ed\))0 72 Q 0 Cg EP
%%Page: 11 11
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(list the contents to standard output.)0 12 Q
(If one or more \214le patterns are speci\214ed, only \214les matching)0
24 Q(one of the patterns will be e)0 36 Q(xtracted.)-.15 E
(<dt><b>\255</b><b>o</b><dd>)0 48 Q(Output.)0 60 Q
(Read a list of \214lenames from standard input and produce a ne)0 72 Q
2.5(wa)-.25 G(rchi)-2.5 E -.15(ve)-.25 G 0 Cg EP
%%Page: 12 12
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(on standard output \(unless o)0 12 Q -.15(ve)
-.15 G(rriden\) containing the speci\214ed items.).15 E
(<dt><b>\255</b><b>p</b><dd>)0 24 Q -.15(Pa)0 36 S(ss-through.).15 E
(Read a list of \214lenames from standard input and cop)0 48 Q 2.5(yt)
-.1 G(he \214les to the)-2.5 E(speci\214ed directory)0 60 Q(.)-.65 E
(</dl>)0 72 Q 0 Cg EP
%%Page: 13 13
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(<p>)36 12 Q(<h3 id="OPTIONS">)36 24 Q(OPTIONS)36
36 Q(</h3>)36 48 Q
(Unless speci\214cally stated otherwise, options are applicable in)0 60
Q(all operating modes.)0 72 Q 0 Cg EP
%%Page: 14 14
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(<dl compact>)0 12 Q
(<p><dt><b>\255</b><b>0</b><dd>)0 24 Q
(Read \214lenames separated by NUL characters instead of ne)0 36 Q
(wlines.)-.25 E(This is necessary if an)0 48 Q 2.5(yo)-.15 G 2.5(ft)-2.5
G(he \214lenames being read might contain ne)-2.5 E(wlines.)-.25 E
(<p><dt><b>\255</b><b>A</b><dd>)0 60 Q(\(o mode only\))0 72 Q 0 Cg EP
%%Page: 15 15
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(Append to the speci\214ed archi)0 12 Q -.15(ve)
-.25 G(.).15 E(\(Not yet implemented.\))0 24 Q
(<p><dt><b>\255</b><b>a</b><dd>)0 36 Q(\(o and p modes\))0 48 Q
(Reset access times on \214les after the)0 60 Q 2.5(ya)-.15 G(re read.)
-2.5 E(<p><dt><b>\255</b><b>B</b><dd>)0 72 Q 0 Cg EP
%%Page: 16 16
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(\(o mode only\))0 12 Q
(Block output to records of 5120 bytes.)0 24 Q
(<p><dt><b>\255</b><b>C</b><i></i><i> size</i><dd>)0 36 Q
(\(o mode only\))0 48 Q(Block output to records of)0 60 Q
(<i></i><i>size</i>)0 72 Q 0 Cg EP
%%Page: 17 17
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(bytes.)0 12 Q(<p><dt><b>\255</b><b>c</b><dd>)0
24 Q(\(o mode only\))0 36 Q
(Use the old POSIX portable character format.)0 48 Q(Equi)0 60 Q -.25
(va)-.25 G(lent to).25 E(<b>\255</b><b>-format</b><i></i><i> odc</i>.)0
72 Q 0 Cg EP
%%Page: 18 18
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(<p><dt><b>\255</b><b>d</b><dd>)0 12 Q
(\(i and p modes\))0 24 Q(Create directories as necessary)0 36 Q(.)-.65
E(<p><dt><b>\255</b><b>E</b><i></i><i> \214le</i><dd>)0 48 Q
(\(i mode only\))0 60 Q(Read list of \214le name patterns from)0 72 Q 0
Cg EP
%%Page: 19 19
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(<i></i><i>\214le</i>)0 12 Q(to list and e)0 24 Q
(xtract.)-.15 E(<p><dt><b>\255</b><b>F</b><i></i><i> \214le</i><dd>)0 36
Q(Read archi)0 48 Q .3 -.15(ve f)-.25 H(rom or write archi).15 E .3 -.15
(ve t)-.25 H(o).15 E(<i></i><i>\214le</i>.)0 60 Q
(<p><dt><b>\255</b><b>f</b><i></i><i> pattern</i><dd>)0 72 Q 0 Cg EP
%%Page: 20 20
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(\(i mode only\))0 12 Q
(Ignore \214les that match)0 24 Q(<i></i><i>pattern</i>.)0 36 Q
(<p><dt><b>\255</b><b>-format</b><i></i><i> format</i><dd>)0 48 Q
(\(o mode only\))0 60 Q(Produce the output archi)0 72 Q .3 -.15(ve i)
-.25 H 2.5(nt).15 G(he speci\214ed format.)-2.5 E 0 Cg EP
%%Page: 21 21
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(Supported formats include:)0 12 Q(<p>)36 24 Q
(<dl compact>)0 36 Q(<dt><i></i><i>cpio</i><dd>)0 48 Q(Synon)0 60 Q
(ym for)-.15 E(<i></i><i>odc</i>.)0 72 Q 0 Cg EP
%%Page: 22 22
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(<dt><i></i><i>ne)0 12 Q(wc</i><dd>)-.25 E
(The SVR4 portable cpio format.)0 24 Q(<dt><i></i><i>odc</i><dd>)0 36 Q
(The old POSIX.1 portable octet-oriented cpio format.)0 48 Q
(<dt><i></i><i>pax</i><dd>)0 60 Q(The POSIX.1 pax format, an e)0 72 Q
(xtension of the ustar format.)-.15 E 0 Cg EP
%%Page: 23 23
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(<dt><i></i><i>ustar</i><dd>)0 12 Q
(The POSIX.1 tar format.)0 24 Q(</dl>)0 36 Q(<p>)36 48 Q(The def)0 60 Q
(ault format is)-.1 E(<i></i><i>odc</i>.)0 72 Q 0 Cg EP
%%Page: 24 24
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(See)0 12 Q(<a href="../html5/libarchi)0 24 Q
-.15(ve)-.25 G(_formats.html">libarchi).15 E -.15(ve)-.25 G
(_formats\(5\)</a>).15 E(for more complete information about the)0 36 Q
(formats currently supported by the underlying)0 48 Q
(<a href="../html3/libarchi)0 60 Q -.15(ve)-.25 G(.html">libarchi).15 E
-.15(ve)-.25 G(\(3\)</a>).15 E(library)0 72 Q(.)-.65 E 0 Cg EP
%%Page: 25 25
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF
(<p><dt><b>\255</b><b>H</b><i></i><i> format</i><dd>)0 12 Q(Synon)0 24 Q
(ym for)-.15 E(<b>\255</b><b>-format</b>.)0 36 Q
(<p><dt><b>\255</b><b>h</b><b> \255</b>,<b>-help</b><dd>)0 48 Q
(Print usage information.)0 60 Q
(<p><dt><b>\255</b><b>I</b><i></i><i> \214le</i><dd>)0 72 Q 0 Cg EP
%%Page: 26 26
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(Read archi)0 12 Q .3 -.15(ve f)-.25 H(rom).15 E
(<i></i><i>\214le</i>.)0 24 Q(<p><dt><b>\255</b><b>i</b><dd>)0 36 Q
(Input mode.)0 48 Q(See abo)0 60 Q .3 -.15(ve f)-.15 H(or description.)
.15 E(<p><dt><b>\255</b><b>-insecure</b><dd>)0 72 Q 0 Cg EP
%%Page: 27 27
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(\(i and p mode only\))0 12 Q
(Disable security checks during e)0 24 Q(xtraction or cop)-.15 E(ying.)
-.1 E(This allo)0 36 Q(ws e)-.25 E
(xtraction via symbolic links and path names containing)-.15 E(`..)0 48
Q(')-.7 E(in the name.)0 60 Q(<p><dt><b>\255</b><b>J</b><dd>)0 72 Q 0 Cg
EP
%%Page: 28 28
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(\(o mode only\))0 12 Q
(Compress the \214le with xz-compatible compression before writing it.)0
24 Q
(In input mode, this option is ignored; xz compression is recognized)0
36 Q(automatically on input.)0 48 Q(<p><dt><b>\255</b><b>j</b><dd>)0 60
Q(Synon)0 72 Q(ym for)-.15 E 0 Cg EP
%%Page: 29 29
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(<b>\255</b><b>y</b>.)0 12 Q
(<p><dt><b>\255</b><b>L</b><dd>)0 24 Q(\(o and p modes\))0 36 Q
(All symbolic links will be follo)0 48 Q(wed.)-.25 E(Normally)0 60 Q 2.5
(,s)-.65 G(ymbolic links are archi)-2.5 E -.15(ve)-.25 G 2.5(da).15 G
(nd copied as symbolic links.)-2.5 E -.4(Wi)0 72 S
(th this option, the tar).4 E(get of the link will be archi)-.18 E -.15
(ve)-.25 G 2.5(do).15 G 2.5(rc)-2.5 G(opied instead.)-2.5 E 0 Cg EP
%%Page: 30 30
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(<p><dt><b>\255</b><b>l</b><dd>)0 12 Q
(\(p mode only\))0 24 Q(Create links from the tar)0 36 Q
(get directory to the original \214les,)-.18 E(instead of cop)0 48 Q
(ying.)-.1 E(<p><dt><b>\255</b><b>lzma</b><dd>)0 60 Q(\(o mode only\))0
72 Q 0 Cg EP
%%Page: 31 31
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(Compress the \214le with lzma-compatible compre\
ssion before writing it.)0 12 Q
(In input mode, this option is ignored; lzma compression is recognized)0
24 Q(automatically on input.)0 36 Q(<p><dt><b>\255</b><b>m</b><dd>)0 48
Q(\(i and p modes\))0 60 Q
(Set \214le modi\214cation time on created \214les to match)0 72 Q 0 Cg
EP
%%Page: 32 32
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(those in the source.)0 12 Q
(<p><dt><b>\255</b><b>n</b><dd>)0 24 Q(\(i mode, only with)0 36 Q
(<b>\255</b><b>t</b>\))0 48 Q(Display numeric uid and gid.)0 60 Q
(By def)0 72 Q(ault,)-.1 E 0 Cg EP
%%Page: 33 33
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(<b>cpio</b>)0 12 Q
(displays the user and group names when the)0 24 Q 2.5(ya)-.15 G(re pro)
-2.5 E(vided in the)-.15 E(archi)0 36 Q -.15(ve)-.25 G 2.5(,o).15 G 2.5
(rl)-2.5 G(ooks up the user and group names in the system)-2.5 E(passw)0
48 Q(ord database.)-.1 E(<p><dt><b>\255</b><b>no-preserv)0 60 Q(e-o)-.15
E(wner</b><dd>)-.25 E(\(i mode only\))0 72 Q 0 Cg EP
%%Page: 34 34
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(Do not attempt to restore \214le o)0 12 Q
(wnership.)-.25 E(This is the def)0 24 Q
(ault when run by non-root users.)-.1 E
(<p><dt><b>\255</b><b>O</b><i></i><i> \214le</i><dd>)0 36 Q(Write archi)
0 48 Q .3 -.15(ve t)-.25 H(o).15 E(<i></i><i>\214le</i>.)0 60 Q
(<p><dt><b>\255</b><b>o</b><dd>)0 72 Q 0 Cg EP
%%Page: 35 35
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(Output mode.)0 12 Q(See abo)0 24 Q .3 -.15(ve f)
-.15 H(or description.).15 E(<p><dt><b>\255</b><b>p</b><dd>)0 36 Q -.15
(Pa)0 48 S(ss-through mode.).15 E(See abo)0 60 Q .3 -.15(ve f)-.15 H
(or description.).15 E(<p><dt><b>\255</b><b>preserv)0 72 Q(e-o)-.15 E
(wner</b><dd>)-.25 E 0 Cg EP
%%Page: 36 36
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(\(i mode only\))0 12 Q(Restore \214le o)0 24 Q
(wnership.)-.25 E(This is the def)0 36 Q(ault when run by the root user)
-.1 E(.)-.55 E(<p><dt><b>\255</b><b>-quiet</b><dd>)0 48 Q
(Suppress unnecessary messages.)0 60 Q(<p><dt><b>\255</b><b>R </b><b>us\
er[.blm Pp</b>[.blm Pp:group[.blm Pp<dd>]]])0 72 Q 0 Cg EP
%%Page: 37 37
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(Set the o)0 12 Q
(wner and/or group on \214les in the output.)-.25 E
(If group is speci\214ed with no user)0 24 Q(\(for e)0 36 Q(xample,)-.15
E(<b>\255</b><b>R</b><i></i><i> :wheel</i>\))0 48 Q
(then the group will be set b)0 60 Q(ut not the user)-.2 E(.)-.55 E
(If the user is speci\214ed with a trailing colon and no group)0 72 Q 0
Cg EP
%%Page: 38 38
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(\(for e)0 12 Q(xample,)-.15 E
(<b>\255</b><b>R</b><i></i><i> root:</i>\))0 24 Q
(then the group will be set to the user')0 36 Q 2.5(sd)-.55 G(ef)-2.5 E
(ault group.)-.1 E
(If the user is speci\214ed with no trailing colon, then)0 48 Q
(the user will be set b)0 60 Q(ut not the group.)-.2 E(In)0 72 Q 0 Cg EP
%%Page: 39 39
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(<b>\255</b><b>i</b>)0 12 Q(and)0 24 Q
(<b>\255</b><b>p</b>)0 36 Q
(modes, this option can only be used by the super)0 48 Q(-user)-.2 E(.)
-.55 E(\(F)0 60 Q(or compatibility)-.15 E 2.5(,ap)-.65 G
(eriod can be used in place of the colon.\))-2.5 E
(<p><dt><b>\255</b><b>r</b><dd>)0 72 Q 0 Cg EP
%%Page: 40 40
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(\(All modes.\))0 12 Q(Rename \214les interacti)0
24 Q -.15(ve)-.25 G(ly).15 E(.)-.65 E -.15(Fo)0 36 S 2.5(re).15 G
(ach \214le, a prompt is written to)-2.5 E(<code></code><code>/de)0 48 Q
(v/tty</code>)-.25 E
(containing the name of the \214le and a line is read from)0 60 Q
(<code></code><code>/de)0 72 Q(v/tty</code>.)-.25 E 0 Cg EP
%%Page: 41 41
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF
(If the line read is blank, the \214le is skipped.)0 12 Q
(If the line contains a single period, the \214le is processed normally)
0 24 Q(.)-.65 E(Otherwise, the line is tak)0 36 Q(en to be the ne)-.1 E
2.5(wn)-.25 G(ame of the \214le.)-2.5 E(<p><dt><b>\255</b><b>t</b><dd>)0
48 Q(\(i mode only\))0 60 Q(List the contents of the archi)0 72 Q .3
-.15(ve t)-.25 H 2.5(os).15 G(tdout;)-2.5 E 0 Cg EP
%%Page: 42 42
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(do not restore the contents to disk.)0 12 Q
(<p><dt><b>\255</b><b>u</b><dd>)0 24 Q(\(i and p modes\))0 36 Q
(Unconditionally o)0 48 Q -.15(ve)-.15 G(rwrite e).15 E
(xisting \214les.)-.15 E(Ordinarily)0 60 Q 2.5(,a)-.65 G 2.5(no)-2.5 G
(lder \214le will not o)-2.5 E -.15(ve)-.15 G(rwrite a ne).15 E
(wer \214le on disk.)-.25 E(<p><dt><b>\255</b><b>v</b><dd>)0 72 Q 0 Cg
EP
%%Page: 43 43
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF
(Print the name of each \214le to stderr as it is processed.)0 12 Q -.4
(Wi)0 24 S(th).4 E(<b>\255</b><b>t</b>,)0 36 Q(pro)0 48 Q
(vide a detailed listing of each \214le.)-.15 E(<p><dt><b>\255</b><b>-v)
0 60 Q(ersion</b><dd>)-.15 E(Print the program v)0 72 Q
(ersion information and e)-.15 E(xit.)-.15 E 0 Cg EP
%%Page: 44 44
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(<p><dt><b>\255</b><b>y</b><dd>)0 12 Q
(\(o mode only\))0 24 Q(Compress the archi)0 36 Q .3 -.15(ve w)-.25 H
(ith bzip2-compatible compression before writing it.).15 E
(In input mode, this option is ignored;)0 48 Q
(bzip2 compression is recognized automatically on input.)0 60 Q
(<p><dt><b>\255</b><b>Z</b><dd>)0 72 Q 0 Cg EP
%%Page: 45 45
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(\(o mode only\))0 12 Q(Compress the archi)0 24 Q
.3 -.15(ve w)-.25 H
(ith compress-compatible compression before writing it.).15 E
(In input mode, this option is ignored;)0 36 Q
(compression is recognized automatically on input.)0 48 Q
(<p><dt><b>\255</b><b>z</b><dd>)0 60 Q(\(o mode only\))0 72 Q 0 Cg EP
%%Page: 46 46
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(Compress the archi)0 12 Q .3 -.15(ve w)-.25 H
(ith gzip-compatible compression before writing it.).15 E
(In input mode, this option is ignored;)0 24 Q
(gzip compression is recognized automatically on input.)0 36 Q(</dl>)0
48 Q(<h3 id="ENVIR)36 60 Q(ONMENT">)-.4 E(ENVIR)36 72 Q(ONMENT)-.4 E 0
Cg EP
%%Page: 47 47
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(</h3>)36 12 Q(The follo)0 24 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 36 Q(<dl compact>)0 48 Q
(<p><dt><code></code><code>LANG</code><dd>)0 60 Q(The locale to use.)0
72 Q 0 Cg EP
%%Page: 48 48
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(See)0 12 Q(<a href="../html7/en)0 24 Q
(viron.html">en)-.4 E(viron\(7\)</a>)-.4 E(for more information.)0 36 Q
(<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: 49 49
%%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="EXIT ST)36 48 Q -1.11(AT)-.93 G(US">)1.11 E(EXIT ST)36 60 Q
-1.11(AT)-.93 G(US)1.11 E(</h3>)36 72 Q 0 Cg EP
%%Page: 50 50
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(<h3 id="EXAMPLES">)36 12 Q(EXAMPLES)36 24 Q
(</h3>)36 36 Q(The)0 48 Q(<b>cpio</b>)0 60 Q
(command is traditionally used to cop)0 72 Q 2.5<798c>-.1 G
(le heirarchies in conjunction)-2.5 E 0 Cg EP
%%Page: 51 51
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(with the)0 12 Q
(<a href="../html1/\214nd.html">\214nd\(1\)</a>)0 24 Q(command.)0 36 Q
(The \214rst e)0 48 Q(xample here simply copies all \214les from)-.15 E
(<code></code><code>src</code>)0 60 Q(to)0 72 Q 0 Cg EP
%%Page: 52 52
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(<code></code><code>dest</code>:)0 12 Q(<br>)0 24
Q(&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;)0 36 Q(<code></code><b>\214nd</b\
><code></code><code>src</code><code> |</code><b>Fl</b><b> pmud</b><code\
></code><code> dest</code>)0 48 Q(<br>)0 60 Q(<p>)36 72 Q 0 Cg EP
%%Page: 53 53
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(By carefully selecting options to the)0 12 Q
(<a href="../html1/\214nd.html">\214nd\(1\)</a>)0 24 Q
(command and combining it with other standard utilities,)0 36 Q
(it is possible to e)0 48 Q -.15(xe)-.15 G(rcise v).15 E
(ery \214ne control o)-.15 E -.15(ve)-.15 G 2.5(rw).15 G
(hich \214les are copied.)-2.5 E(This ne)0 60 Q(xt e)-.15 E
(xample copies \214les from)-.15 E(<code></code><code>src</code>)0 72 Q
0 Cg EP
%%Page: 54 54
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(to)0 12 Q(<code></code><code>dest</code>)0 24 Q
(that are more than 2 days old and whose names match a particular patte\
rn:)0 36 Q(<br>)0 48 Q(&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;)0 60 Q(<cod\
e></code><b>\214nd</b><code></code><code>src</code><b> \255</b><b>mtime\
</b><i></i><i> +2</i><i> |</i><b>grep</b><b> foo[bar]</b><b> |</b><b>Fl\
</b><b> pdmu</b><code></code><code> dest</code>)0 72 Q 0 Cg EP
%%Page: 55 55
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(<br>)0 12 Q(<p>)36 24 Q(This e)0 36 Q
(xample copies \214les from)-.15 E(<code></code><code>src</code>)0 48 Q
(to)0 60 Q(<code></code><code>dest</code>)0 72 Q 0 Cg EP
%%Page: 56 56
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF
(that are more than 2 days old and which contain the w)0 12 Q(ord)-.1 E
(foobar`)0 24 Q(`.blm Pp: ')-.74 E(')-.74 E(<br>)0 36 Q
(&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;)0 48 Q(<code></code><b>\214nd</b>\
<code></code><code>src</code><b> \255</b><b>mtime</b><i></i><i> +2</i><\
i> |</i><b>xar)0 60 Q(gs</b><b>grep</b><b> -l</b><b> foobar</b><b> |</b\
><b>Fl</b><b> pdmu</b><code></code><code> dest</code>)-.18 E(<br>)0 72 Q
0 Cg EP
%%Page: 57 57
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(<h3 id="COMP)36 12 Q -1.11(AT)-.92 G(IBILITY">)
1.11 E(COMP)36 24 Q -1.11(AT)-.92 G(IBILITY)1.11 E(</h3>)36 36 Q
(The mode options i, o, and p and the options)0 48 Q
(a, B, c, d, f, l, m, r)0 60 Q 2.5(,t)-.4 G 2.5(,u)-2.5 G 2.5(,a)-2.5 G
(nd v comply with SUSv2.)-2.5 E(<p>)36 72 Q 0 Cg EP
%%Page: 58 58
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(The old POSIX.1 standard speci\214ed that only)0
12 Q(<b>\255</b><b>i</b>,)0 24 Q(<b>\255</b><b>o</b>,)0 36 Q(and)0 48 Q
(<b>\255</b><b>p</b>)0 60 Q(were interpreted as command-line options.)0
72 Q 0 Cg EP
%%Page: 59 59
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(Each took a single ar)0 12 Q
(gument of a list of modi\214er)-.18 E(characters.)0 24 Q -.15(Fo)0 36 S
2.5(re).15 G(xample, the standard syntax allo)-2.65 E(ws)-.25 E
(<b>\255</b><b>imu</b>)0 48 Q -.2(bu)0 60 S 2.5(td).2 G(oes not support)
-2.5 E(<b>\255</b><b>miu</b>)0 72 Q 0 Cg EP
%%Page: 60 60
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(or)0 12 Q
(<b>\255</b><b>i</b><b> \255</b><b>m</b><b> \255</b><b>u</b>,)0 24 Q
(since)0 36 Q(<i></i><i>m</i>)0 48 Q(and)0 60 Q(<i></i><i>u</i>)0 72 Q 0
Cg EP
%%Page: 61 61
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(are only modi\214ers to)0 12 Q
(<b>\255</b><b>i</b>,)0 24 Q(the)0 36 Q 2.5(ya)-.15 G
(re not command-line options in their o)-2.5 E(wn right.)-.25 E
(The syntax supported by this implementation is backw)0 48 Q
(ards-compatible)-.1 E(with the standard.)0 60 Q -.15(Fo)0 72 S 2.5(rb)
.15 G(est compatibility)-2.5 E 2.5(,s)-.65 G
(cripts should limit themselv)-2.5 E(es to the)-.15 E 0 Cg EP
%%Page: 62 62
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(standard syntax.)0 12 Q(<h3 id="SEE ALSO">)36 24
Q(SEE ALSO)36 36 Q(</h3>)36 48 Q
(<a href="../html1/bzip2.html">bzip2\(1\)</a>,)0 60 Q
(<a href="../html1/tar)0 72 Q(.html">tar\(1\)</a>,)-.55 E 0 Cg EP
%%Page: 63 63
%%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="../html3/libarchi)0 48 Q -.15(ve)-.25 G(.html">libarchi).15 E
-.15(ve)-.25 G(\(3\)</a>,).15 E
(<a href="../html5/cpio.html">cpio\(5\)</a>,)0 60 Q
(<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: 64 64
%%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 cpio command; it appeared)0
60 Q(in)0 72 Q 0 Cg EP
%%Page: 65 65
%%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(<p>)36 48 Q
(The cpio, ustar)0 60 Q 2.5(,a)-.4 G
(nd pax interchange \214le formats are de\214ned by)-2.5 E
(IEEE Std 1003.1-2001 \(`)2.5 72 Q(`<font size="-1">POSIX</font>.1')-.74
E('\))-.74 E 0 Cg EP
%%Page: 66 66
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(for the pax command.)0 12 Q(<h3 id="HIST)36 24 Q
(OR)-.18 E(Y">)-.65 E(HIST)36 36 Q(OR)-.18 E(Y)-.65 E(</h3>)36 48 Q
(The original)0 60 Q(<b>cpio</b>)0 72 Q 0 Cg EP
%%Page: 67 67
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(and)0 12 Q(<b>\214nd</b>)0 24 Q
(utilities were written by Dick Haight)0 36 Q(while w)0 48 Q
(orking in A)-.1 E(T&T')-1.11 E 2.5(sU)-.55 G(nix Support Group.)-2.5 E
(The)0 60 Q 2.5<798c>-.15 G(rst appeared in 1977 in PWB/UNIX 1.0, the)
-2.5 E -.74(``)0 72 S(Programmer').74 E 2.5(sW)-.55 G(ork Bench')-3.3 E
(')-.74 E 0 Cg EP
%%Page: 68 68
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(system de)0 12 Q -.15(ve)-.25 G
(loped for use within A).15 E(T&T)-1.11 E(.)-.74 E(The)0 24 Q 2.5(yw)
-.15 G(ere \214rst released outside of A)-2.5 E
(T&T as part of System III Unix in 1981.)-1.11 E(As a result,)0 36 Q
(<b>cpio</b>)0 48 Q(actually predates)0 60 Q(<b>tar</b>,)0 72 Q 0 Cg EP
%%Page: 69 69
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF -2.15 -.25(ev e)0 12 T 2.5(nt).25 G(hough it w)
-2.5 E(as not well-kno)-.1 E(wn outside of A)-.25 E
(T&T until some time later)-1.11 E(.)-.55 E(<p>)36 24 Q
(This is a complete re-implementation based on the)0 36 Q
(<a href="../html3/libarchi)0 48 Q -.15(ve)-.25 G(.html">libarchi).15 E
-.15(ve)-.25 G(\(3\)</a>).15 E(library)0 60 Q(.)-.65 E(<h3 id="B)36 72 Q
(UGS">)-.1 E 0 Cg EP
%%Page: 70 70
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF -.1(BU)36 12 S(GS).1 E(</h3>)36 24 Q
(The cpio archi)0 36 Q .3 -.15(ve f)-.25 H(ormat has se).15 E -.15(ve)
-.25 G(ral basic limitations:).15 E
(It does not store user and group names, only numbers.)0 48 Q
(As a result, it cannot be reliably used to transfer)0 60 Q
(\214les between systems with dissimilar user and group numbering.)0 72
Q 0 Cg EP
%%Page: 71 71
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF
(Older cpio formats limit the user and group numbers to)0 12 Q
(16 or 18 bits, which is insuf)0 24 Q(\214cient for modern systems.)-.25
E(The cpio archi)0 36 Q .3 -.15(ve f)-.25 H
(ormats cannot support \214les o).15 E -.15(ve)-.15 G 2.5(r4g).15 G(ig)
-2.5 E(abytes,)-.05 E -.15(ex)0 48 S(cept for the).15 E -.74(``)0 60 S
(odc').74 E(')-.74 E -.25(va)0 72 S
(riant, which can support \214les up to 8 gig).25 E(abytes.)-.05 E 0 Cg
EP
%%Page: 72 72
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@@0 SF(</body>)0 12 Q(</html>)0 24 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 890
a890 522
<!-- 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>CPIO(1) BSD General Commands Manual CPIO(1)</p>

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

<p style="margin-left:6%;"><b>cpio</b> &mdash; copy files
to and from archives</p>

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

<p style="margin-left:13%;"><b>cpio &minus;i</b>
[<i>options</i>] [<i>pattern&nbsp;...</i>]
[<i>&lt;&nbsp;archive</i>] <b><br>
cpio &minus;o</b> [<i>options</i>] <i>&lt; name-list</i>
[<i>&gt;&nbsp;archive</i>] <b><br>
cpio &minus;p</b> [<i>options</i>] <i>dest-dir &lt;
name-list</i></p>

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

<p style="margin-left:6%;"><b>cpio</b> copies files between
archives and directories. 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:6%; margin-top: 1em">The first option
to <b>cpio</b> is a mode indicator from the following
list:</p>

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

<p style="margin-left:17%; margin-top: 1em">Input. Read an
archive from standard input (unless overridden) and extract
the contents to disk or (if the <b>&minus;t</b> option is
specified) list the contents to standard output. If one or
more file patterns are specified, only files matching one of
the patterns will be extracted.</p>

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

<p style="margin-left:17%; margin-top: 1em">Output. Read a
list of filenames from standard input and produce a new
archive on standard output (unless overridden) containing
the specified items.</p>

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

<p style="margin-left:17%; margin-top: 1em">Pass-through.
Read a list of filenames from standard input and copy the
files to the specified directory.</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>&minus;0</b>,
<b>&minus;&minus;null</b></p>

<p style="margin-left:17%;">Read filenames separated by NUL
characters instead of newlines. This is necessary if any of
the filenames being read might contain newlines.</p>

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

<p style="margin-left:17%; margin-top: 1em">(o mode only)
Append to the specified archive. (Not yet implemented.)</p>

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

<p style="margin-left:17%; margin-top: 1em">(o and p modes)
Reset access times on files after they are read.</p>

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

<p style="margin-left:17%; margin-top: 1em">(o mode only)
Block output to records of 5120 bytes.</p>

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

<p style="margin-left:17%;">(o mode only) Block output to
records of <i>size</i> bytes.</p>

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

<p style="margin-left:17%; margin-top: 1em">(o mode only)
Use the old POSIX portable character format. Equivalent to
<b>&minus;&minus;format</b> <i>odc</i>.</p>

<p style="margin-top: 1em"><b>&minus;d</b>,
<b>&minus;&minus;make-directories</b></p>

<p style="margin-left:17%;">(i and p modes) Create
directories as necessary.</p>

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

<p style="margin-left:17%;">(i mode only) Read list of file
name patterns from <i>file</i> to list and extract.</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 archive from or write
archive to <i>file</i>.</p>

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

<p style="margin-left:17%;">(i mode only) Ignore files that
match <i>pattern</i>.</p>

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

<p style="margin-left:17%;">(o mode only) Produce the
output archive in the specified format. Supported formats
include:</p>

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

<p style="margin-left:28%; margin-top: 1em">Synonym for
<i>odc</i>.</p>

<p><i>newc</i></p>

<p style="margin-left:28%; margin-top: 1em">The SVR4
portable cpio format.</p>

<p><i>odc</i></p>

<p style="margin-left:28%; margin-top: 1em">The old POSIX.1
portable octet-oriented cpio format.</p>

<p><i>pax</i></p>

<p style="margin-left:28%; margin-top: 1em">The POSIX.1 pax
format, an extension of the ustar format.</p>

<p><i>ustar</i></p>

<p style="margin-left:28%; margin-top: 1em">The POSIX.1 tar
format.</p>

<p style="margin-left:17%; margin-top: 1em">The default
format is <i>odc</i>. See libarchive-formats(5) for more
complete information about the formats currently supported
by the underlying libarchive(3) library.</p>

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

<p style="margin-left:17%;">Print usage information.</p>

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

<p style="margin-left:17%;">Read archive from
<i>file</i>.</p>

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

<p style="margin-left:17%;">Input mode. See above for
description.</p>


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

<p style="margin-left:17%;">(i and p mode only) Disable
security checks during extraction or copying. This allows
extraction via symbolic links, absolute paths, and path
names containing &rsquo;..&rsquo; in the name.</p>

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

<p style="margin-left:17%;">(o mode only) Compress the file
with xz-compatible compression before writing it. In input
mode, this option is ignored; xz compression is recognized
automatically on input.</p>

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

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

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

<p style="margin-left:17%; margin-top: 1em">(o and p modes)
All symbolic links will be followed. Normally, symbolic
links are archived and copied as symbolic links. With this
option, the target of the link will be archived or copied
instead.</p>

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

<p style="margin-left:17%;">(p mode only) Create links from
the target directory to the original files, instead of
copying.</p>

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

<p style="margin-left:17%;">(o mode only) Compress the
resulting archive with lrzip(1). In input mode, this option
is ignored.</p>

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

<p style="margin-left:17%; margin-top: 1em">(o 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">(o mode only)
Compress the file with lzma-compatible compression before
writing it. In input mode, this option is ignored; lzma
compression is recognized automatically on input.</p>

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

<p style="margin-left:17%; margin-top: 1em">(o mode only)
Compress the resulting archive with lzop(1). In input mode,
this option is ignored.</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
only a format that <b>cpio</b> can handle encrypted
archives. 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;m</b>,
<b>&minus;&minus;preserve-modification-time</b></p>

<p style="margin-left:17%;">(i and p modes) Set file
modification time on created files to match those in the
source.</p>

<p style="margin-top: 1em"><b>&minus;n</b>,
<b>&minus;&minus;numeric-uid-gid</b></p>

<p style="margin-left:17%;">(i mode, only with
<b>&minus;t</b>) Display numeric uid and gid. By default,
<b>cpio</b> displays the user and group names when they are
provided in the archive, or looks up the user and group
names in the system password database.</p>


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

<p style="margin-left:17%;">(i mode only) Do not attempt to
restore file ownership. This is the default when run by
non-root users.</p>

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

<p style="margin-left:17%;">Write archive to
<i>file</i>.</p>

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

<p style="margin-left:17%;">Output mode. See above for
description.</p>

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

<p style="margin-left:17%;">Pass-through mode. See above
for description.</p>


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

<p style="margin-left:17%;">(i mode only) Restore file
ownership. This is the default when run by the root
user.</p>

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

<p style="margin-left:17%;">Suppress unnecessary
messages.</p>

<p style="margin-top: 1em"><b>&minus;R</b> [ <br>
user][ <br>
:][ <br>
group], <b>&minus;&minus;owner</b> [ <br>
user][ <br>
:][ <br>
group]</p>

<p style="margin-left:17%;">Set the owner and/or group on
files in the output. If group is specified with no user (for
example, <b>&minus;R</b> <i>:wheel</i>) then the group will
be set but not the user. If the user is specified with a
trailing colon and no group (for example, <b>&minus;R</b>
<i>root:</i>) then the group will be set to the user&rsquo;s
default group. If the user is specified with no trailing
colon, then the user will be set but not the group. In
<b>&minus;i</b> and <b>&minus;p</b> modes, this option can
only be used by the super-user. (For compatibility, a period
can be used in place of the colon.)</p>

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

<p style="margin-left:17%; margin-top: 1em">(All modes.)
Rename files interactively. For each file, a prompt is
written to <i>/dev/tty</i> containing the name of the file
and a line is read from <i>/dev/tty</i>. If the line read is
blank, the file is skipped. If the line contains a single
period, the file is processed normally. Otherwise, the line
is taken to be the new name of the file.</p>

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

<p style="margin-left:17%;">(i mode only) List the contents
of the archive to stdout; do not restore the contents to
disk.</p>

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

<p style="margin-left:17%;">(i and p modes) Unconditionally
overwrite existing files. Ordinarily, an older file will not
overwrite a newer file on disk.</p>

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

<p style="margin-left:17%;">Print a dot to stderr for each
file as it is processed. Superseded by <b>&minus;v</b>.</p>

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

<p style="margin-left:17%;">Print the name of each file to
stderr as it is processed. With <b>&minus;t</b>, provide a
detailed listing of each file.</p>


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

<p style="margin-left:17%;">Print the program version
information and exit.</p>

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

<p style="margin-left:17%; margin-top: 1em">(o mode only)
Compress the archive with bzip2-compatible compression
before writing it. In input mode, this option is ignored;
bzip2 compression is recognized automatically on input.</p>

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

<p style="margin-left:17%; margin-top: 1em">(o mode only)
Compress the archive with compress-compatible compression
before writing it. In input mode, this option is ignored;
compression is recognized automatically on input.</p>

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

<p style="margin-left:17%; margin-top: 1em">(o mode only)
Compress the archive with gzip-compatible compression before
writing it. In input mode, this option is ignored; gzip
compression is recognized automatically on input.</p>

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

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

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

<p style="margin-left:6%;">The following environment
variables affect the execution of <b>cpio</b>:</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">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>EXAMPLES</b></p>

<p style="margin-left:6%;">The <b>cpio</b> command is
traditionally used to copy file hierarchies in conjunction
with the find(1) command. The first example here simply
copies all files from <i>src</i> to <i>dest</i>:</p>

<p style="margin-left:14%;"><b>find</b> <i>src</i> |
<b>cpio &minus;pmud</b> <i>dest</i></p>

<p style="margin-left:6%; margin-top: 1em">By carefully
selecting options to the find(1) command and combining it
with other standard utilities, it is possible to exercise
very fine control over which files are copied. This next
example copies files from <i>src</i> to <i>dest</i> that are
more than 2 days old and whose names match a particular
pattern:</p>

<p style="margin-left:14%;"><b>find</b> <i>src</i>
<b>&minus;mtime</b> <i>+2</i> | <b>grep foo[bar]</b> |
<b>cpio &minus;pdmu</b> <i>dest</i></p>

<p style="margin-left:6%; margin-top: 1em">This example
copies files from <i>src</i> to <i>dest</i> that are more
than 2 days old and which contain the word
&rsquo;&rsquo;</p>

<p>foobar &rsquo;&rsquo;:</p>

<p style="margin-left:14%;"><b>find</b> <i>src</i>
<b>&minus;mtime</b> <i>+2</i> | <b>xargs grep -l foobar</b>
| <b>cpio &minus;pdmu</b> <i>dest</i></p>

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

<p style="margin-left:6%;">The mode options i, o, and p and
the options a, B, c, d, f, l, m, r, t, u, and v comply with
SUSv2.</p>

<p style="margin-left:6%; margin-top: 1em">The old POSIX.1
standard specified that only <b>&minus;i</b>,
<b>&minus;o</b>, and <b>&minus;p</b> were interpreted as
command-line options. Each took a single argument of a list
of modifier characters. For example, the standard syntax
allows <b>&minus;imu</b> but does not support
<b>&minus;miu</b> or <b>&minus;i &minus;m &minus;u</b>,
since <i>m</i> and <i>u</i> are only modifiers to
<b>&minus;i</b>, they are not command-line options in their
own right. The syntax supported by this implementation is
backwards-compatible with the standard. For best
compatibility, scripts should limit themselves to the
standard syntax.</p>

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

<p style="margin-left:6%;">bzip2(1), tar(1), gzip(1),
mt(1), pax(1), libarchive(3), cpio(5),
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 cpio 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;).</p>

<p style="margin-left:6%; margin-top: 1em">The cpio, 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%;">The original <b>cpio</b> and
<b>find</b> utilities were written by Dick Haight while
working in AT&amp;T&rsquo;s Unix Support Group. They first
appeared in 1977 in PWB/UNIX 1.0, the
&rsquo;&rsquo;Programmer&rsquo;s Work Bench&rsquo;&rsquo;
system developed for use within AT&amp;T. They were first
released outside of AT&amp;T as part of System III Unix in
1981. As a result, <b>cpio</b> actually predates <b>tar</b>,
even though it was not well-known outside of AT&amp;T until
some time later.</p>

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

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

<p style="margin-left:6%;">The cpio archive format has
several basic limitations: It does not store user and group
names, only numbers. As a result, it cannot be reliably used
to transfer files between systems with dissimilar user and
group numbering. Older cpio formats limit the user and group
numbers to 16 or 18 bits, which is insufficient for modern
systems. The cpio archive formats cannot support files over
4 gigabytes, except for the &rsquo;&rsquo;odc&rsquo;&rsquo;
variant, which can support files up to 8 gigabytes.</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 -->
d194 1
a194 1
names containing &lsquo;..&rsquo; in the name.</p>
d442 1
a442 1
&lsquo;&lsquo;</p>
d480 1
a480 1
9945-1:1996 (&lsquo;&lsquo;POSIX.1&rsquo;&rsquo;) but was
d482 1
a482 1
(&lsquo;&lsquo;POSIX.1&rsquo;&rsquo;).</p>
d486 1
a486 1
1003.1-2001 (&lsquo;&lsquo;POSIX.1&rsquo;&rsquo;) for the
d495 1
a495 1
&lsquo;&lsquo;Programmer&rsquo;s Work Bench&rsquo;&rsquo;
d515 1
a515 1
4 gigabytes, except for the &lsquo;&lsquo;odc&rsquo;&rsquo;
@


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 -->
d32 4
a35 3
<p style="margin-left:13%;"><b>cpio -i</b> [<i>options</i>]
[<i>pattern&nbsp;...</i>] [<i>&lt;&nbsp;archive</i>] <b><br>
cpio -o</b> [<i>options</i>] <i>&lt; name-list</i>
d37 1
a37 1
cpio -p</b> [<i>options</i>] <i>dest-dir &lt;
d51 1
a51 1
<p><b>-i</b></p>
d55 1
a55 1
the contents to disk or (if the <b>-t</b> option is
d60 1
a60 1
<p><b>-o</b></p>
d67 1
a67 1
<p><b>-p</b></p>
d79 2
a80 1
<p style="margin-top: 1em"><b>-0</b>, <b>--null</b></p>
d86 1
a86 1
<p style="margin-top: 1em"><b>-A</b></p>
d91 1
a91 1
<p style="margin-top: 1em"><b>-a</b></p>
d96 1
a96 1
<p style="margin-top: 1em"><b>-B</b></p>
d101 1
a101 1
<p style="margin-top: 1em"><b>-C</b> <i>size</i></p>
d106 1
a106 1
<p style="margin-top: 1em"><b>-c</b></p>
d110 1
a110 1
<b>--format</b> <i>odc</i>.</p>
d112 2
a113 2
<p style="margin-top: 1em"><b>-d</b>,
<b>--make-directories</b></p>
d118 1
a118 1
<p style="margin-top: 1em"><b>-E</b> <i>file</i></p>
d123 2
a124 2
<p style="margin-top: 1em"><b>-F</b> <i>file</i>,
<b>--file</b> <i>file</i></p>
d129 2
a130 1
<p style="margin-top: 1em"><b>-f</b> <i>pattern</i></p>
d135 2
a136 2
<p style="margin-top: 1em"><b>-H</b> <i>format</i>,
<b>--format</b> <i>format</i></p>
d172 2
a173 1
<p style="margin-top: 1em"><b>-h</b>, <b>--help</b></p>
d177 1
a177 1
<p style="margin-top: 1em"><b>-I</b> <i>file</i></p>
d182 2
a183 1
<p style="margin-top: 1em"><b>-i</b>, <b>--extract</b></p>
d188 2
a189 1
<p style="margin-top: 1em"><b>--insecure</b></p>
d194 1
a194 1
names containing &rsquo;..&rsquo; in the name.</p>
d196 2
a197 1
<p style="margin-top: 1em"><b>-J</b>, <b>--xz</b></p>
d204 1
a204 1
<p style="margin-top: 1em"><b>-j</b></p>
d207 1
a207 1
<b>-y</b>.</p>
d209 1
a209 1
<p style="margin-top: 1em"><b>-L</b></p>
d217 2
a218 1
<p style="margin-top: 1em"><b>-l</b>, <b>--link</b></p>
d224 1
a224 1
<p style="margin-top: 1em"><b>--lrzip</b></p>
d230 1
a230 1
<p style="margin-top: 1em"><b>--lz4</b></p>
d237 1
a237 1
<p style="margin-top: 1em"><b>--lzma</b></p>
d244 1
a244 1
<p style="margin-top: 1em"><b>--lzop</b></p>
d250 1
a250 1
<p style="margin-top: 1em"><b>--passphrase</b>
d259 2
a260 2
<p style="margin-top: 1em"><b>-m</b>,
<b>--preserve-modification-time</b></p>
d266 8
a273 2
<p style="margin-top: 1em"><b>-n</b>,
<b>--numeric-uid-gid</b></p>
a274 5
<p style="margin-left:17%;">(i mode, only with <b>-t</b>)
Display numeric uid and gid. By default, <b>cpio</b>
displays the user and group names when they are provided in
the archive, or looks up the user and group names in the
system password database.</p>
d276 1
a276 1
<p style="margin-top: 1em"><b>--no-preserve-owner</b></p>
d282 1
a282 1
<p style="margin-top: 1em"><b>-O</b> <i>file</i></p>
d287 2
a288 1
<p style="margin-top: 1em"><b>-o</b>, <b>--create</b></p>
d293 2
a294 2
<p style="margin-top: 1em"><b>-p</b>,
<b>--pass-through</b></p>
d299 2
a300 1
<p style="margin-top: 1em"><b>--preserve-owner</b></p>
d306 1
a306 1
<p style="margin-top: 1em"><b>--quiet</b></p>
d311 1
a311 1
<p style="margin-top: 1em"><b>-R</b> [ <br>
d314 1
a314 1
group], <b>--owner</b> [ <br>
d321 9
a329 9
example, <b>-R</b> <i>:wheel</i>) then the group will be set
but not the user. If the user is specified with a trailing
colon and no group (for example, <b>-R</b> <i>root:</i>)
then the group will be set to the user&rsquo;s default
group. If the user is specified with no trailing colon, then
the user will be set but not the group. In <b>-i</b> and
<b>-p</b> modes, this option can only be used by the
super-user. (For compatibility, a period can be used in
place of the colon.)</p>
d331 1
a331 1
<p style="margin-top: 1em"><b>-r</b></p>
d341 2
a342 1
<p style="margin-top: 1em"><b>-t</b>, <b>--list</b></p>
d348 2
a349 2
<p style="margin-top: 1em"><b>-u</b>,
<b>--unconditional</b></p>
d355 2
a356 1
<p style="margin-top: 1em"><b>-V</b>, <b>--dot</b></p>
d359 1
a359 1
file as it is processed. Superseded by <b>-v</b>.</p>
d361 2
a362 1
<p style="margin-top: 1em"><b>-v</b>, <b>--verbose</b></p>
d365 1
a365 1
stderr as it is processed. With <b>-t</b>, provide a
d368 2
a369 1
<p style="margin-top: 1em"><b>--version</b></p>
d374 1
a374 1
<p style="margin-top: 1em"><b>-y</b></p>
d381 1
a381 1
<p style="margin-top: 1em"><b>-Z</b></p>
d388 1
a388 1
<p style="margin-top: 1em"><b>-z</b></p>
d425 1
a425 1
<b>cpio -pmud</b> <i>dest</i></p>
d436 2
a437 2
<b>-mtime</b> <i>+2</i> | <b>grep foo[bar]</b> | <b>cpio
-pdmu</b> <i>dest</i></p>
d442 1
a442 1
&rsquo;&rsquo;</p>
d447 2
a448 2
<b>-mtime</b> <i>+2</i> | <b>xargs grep -l foobar</b> |
<b>cpio -pdmu</b> <i>dest</i></p>
d457 12
a468 10
standard specified that only <b>-i</b>, <b>-o</b>, and
<b>-p</b> were interpreted as command-line options. Each
took a single argument of a list of modifier characters. For
example, the standard syntax allows <b>-imu</b> but does not
support <b>-miu</b> or <b>-i -m -u</b>, since <i>m</i> and
<i>u</i> are only modifiers to <b>-i</b>, they are not
command-line options in their own right. The syntax
supported by this implementation is backwards-compatible
with the standard. For best compatibility, scripts should
limit themselves to the standard syntax.</p>
d480 1
a480 1
9945-1:1996 (&rsquo;&rsquo;POSIX.1&rsquo;&rsquo;) but was
d482 1
a482 1
(&rsquo;&rsquo;POSIX.1&rsquo;&rsquo;).</p>
d486 1
a486 1
1003.1-2001 (&rsquo;&rsquo;POSIX.1&rsquo;&rsquo;) for the
d495 1
a495 1
&rsquo;&rsquo;Programmer&rsquo;s Work Bench&rsquo;&rsquo;
d515 1
a515 1
4 gigabytes, except for the &rsquo;&rsquo;odc&rsquo;&rsquo;
@


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 -->
a228 7
<p style="margin-top: 1em"><b>--zstd</b></p>

<p style="margin-left:17%; margin-top: 1em">(o mode only)
Compress the archive with zstd-compatible compression before
writing it. In input mode, this option is ignored; zstd
compression is recognized automatically on input.</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 -->
d433 2
a434 1
than 2 days old and which contain the word &ldquo;</p>
d436 1
a436 1
<p>foobar &rdquo;:</p>
d470 3
a472 2
9945-1:1996 (&ldquo;POSIX.1&rdquo;) but was dropped from
IEEE Std 1003.1-2001 (&ldquo;POSIX.1&rdquo;).</p>
d476 2
a477 1
1003.1-2001 (&ldquo;POSIX.1&rdquo;) for the pax command.</p>
d485 6
a490 6
&ldquo;Programmer&rsquo;s Work Bench&rdquo; system developed
for use within AT&amp;T. They were first released outside of
AT&amp;T as part of System III Unix in 1981. As a result,
<b>cpio</b> actually predates <b>tar</b>, even though it was
not well-known outside of AT&amp;T until some time
later.</p>
d505 2
a506 2
4 gigabytes, except for the &ldquo;odc&rdquo; variant, which
can support files up to 8 gigabytes.</p>
@


1.1.1.10
log
@Import libarchive 3.7.2
@
text
@d2 1
a2 1
<!-- CreationDate: Mon Sep 11 22:06:22 2023 -->
a83 12
<p style="margin-top: 1em"><b>-6</b>, <b>--pwb</b></p>

<p style="margin-left:17%;">When reading a binary format
archive, assume it&rsquo;s the earlier one, from the PWB
variant of 6th Edition UNIX. When writing a cpio archive,
use the PWB format.</p>

<p style="margin-top: 1em"><b>-7</b>, <b>--binary</b></p>

<p style="margin-left:17%;">(o mode only) When writing a
cpio archive, use the (newer, non-PWB) binary format.</p>

d461 2
a462 2
<p style="margin-left:6%;">bzip2(1), gzip(1), mt(1),
pax(1), tar(1), libarchive(3), cpio(5),
@


1.1.1.11
log
@libarchive: import version 3.7.3
@
text
@d2 1
a2 1
<!-- CreationDate: Sun Apr  7 22:36:28 2024 -->
@


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 -->
@


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 2
<p><i>CPIO</i>(1) General Commands Manual
<i>CPIO</i>(1)</p>
d27 2
a28 2
<p style="margin-left:9%;">cpio &mdash; copy files to and
from archives</p>
d32 1
a32 1
<p style="margin-left:15%;"><b>cpio -i</b> [<i>options</i>]
d41 1
a41 1
<p style="margin-left:9%;"><b>cpio</b> copies files between
d46 1
a46 1
<p style="margin-left:9%; margin-top: 1em">The first option
d52 1
a52 1
<p style="margin-left:19%; margin-top: 1em">Input. Read an
d61 1
a61 1
<p style="margin-left:19%; margin-top: 1em">Output. Read a
d68 1
a68 1
<p style="margin-left:19%; margin-top: 1em">Pass-through.
d74 1
a74 1
<p style="margin-left:9%;">Unless specifically stated
d80 1
a80 1
<p style="margin-left:19%;">Read filenames separated by NUL
d86 1
a86 1
<p style="margin-left:19%;">When reading a binary format
d93 1
a93 1
<p style="margin-left:19%;">(o mode only) When writing a
d98 1
a98 1
<p style="margin-left:19%; margin-top: 1em">(o mode only)
d103 1
a103 1
<p style="margin-left:19%; margin-top: 1em">(o and p modes)
d108 1
a108 1
<p style="margin-left:19%; margin-top: 1em">(o mode only)
d113 1
a113 1
<p style="margin-left:19%;">(o mode only) Block output to
d118 1
a118 1
<p style="margin-left:19%; margin-top: 1em">(o mode only)
d125 1
a125 1
<p style="margin-left:19%;">(i and p modes) Create
d130 1
a130 1
<p style="margin-left:19%;">(i mode only) Read list of file
d136 1
a136 1
<p style="margin-left:19%;">Read archive from or write
d141 1
a141 1
<p style="margin-left:19%;">(i mode only) Ignore files that
d147 1
a147 1
<p style="margin-left:19%;">(o mode only) Produce the
d153 1
a153 1
<p style="margin-left:31%; margin-top: 1em">Synonym for
d158 1
a158 1
<p style="margin-left:31%; margin-top: 1em">The SVR4
d163 1
a163 1
<p style="margin-left:31%; margin-top: 1em">The old POSIX.1
d168 1
a168 1
<p style="margin-left:31%; margin-top: 1em">The POSIX.1 pax
d173 1
a173 1
<p style="margin-left:31%; margin-top: 1em">The POSIX.1 tar
d176 4
a179 5
<p style="margin-left:19%; margin-top: 1em">The default
format is <i>odc</i>. See <i>libarchive-formats</i>(5) for
more complete information about the formats currently
supported by the underlying <i>libarchive</i>(3)
library.</p>
d183 1
a183 1
<p style="margin-left:19%;">Print usage information.</p>
d187 1
a187 1
<p style="margin-left:19%;">Read archive from
d192 1
a192 1
<p style="margin-left:19%;">Input mode. See above for
d197 1
a197 1
<p style="margin-left:19%;">(i and p mode only) Disable
d200 1
a200 1
names containing &lsquo;..&rsquo; in the name.</p>
d204 1
a204 1
<p style="margin-left:19%;">(o mode only) Compress the file
d211 1
a211 1
<p style="margin-left:19%; margin-top: 1em">Synonym for
d216 1
a216 1
<p style="margin-left:19%; margin-top: 1em">(o and p modes)
d224 1
a224 1
<p style="margin-left:19%;">(p mode only) Create links from
d230 3
a232 3
<p style="margin-left:19%;">(o mode only) Compress the
resulting archive with <i>lrzip</i>(1). In input mode, this
option is ignored.</p>
d236 1
a236 1
<p style="margin-left:19%; margin-top: 1em">(o mode only)
d243 1
a243 1
<p style="margin-left:19%; margin-top: 1em">(o mode only)
d250 1
a250 1
<p style="margin-left:19%; margin-top: 1em">(o mode only)
d257 3
a259 3
<p style="margin-left:19%; margin-top: 1em">(o mode only)
Compress the resulting archive with <i>lzop</i>(1). In input
mode, this option is ignored.</p>
d264 1
a264 1
<p style="margin-left:19%;">The <i>passphrase</i> is used
d273 1
a273 1
<p style="margin-left:19%;">(i and p modes) Set file
d280 1
a280 1
<p style="margin-left:19%;">(i mode, only with <b>-t</b>)
d288 1
a288 1
<p style="margin-left:19%;">(i mode only) Do not attempt to
d294 1
a294 1
<p style="margin-left:19%;">Write archive to
d299 1
a299 1
<p style="margin-left:19%;">Output mode. See above for
d305 1
a305 1
<p style="margin-left:19%;">Pass-through mode. See above
d310 1
a310 1
<p style="margin-left:19%;">(i mode only) Restore file
d316 1
a316 1
<p style="margin-left:19%;">Suppress unnecessary
d327 1
a327 1
<p style="margin-left:19%;">Set the owner and/or group on
d341 1
a341 1
<p style="margin-left:19%; margin-top: 1em">(All modes.)
d351 1
a351 1
<p style="margin-left:19%;">(i mode only) List the contents
d358 1
a358 1
<p style="margin-left:19%;">(i and p modes) Unconditionally
d364 1
a364 1
<p style="margin-left:19%;">Print a dot to stderr for each
d369 1
a369 1
<p style="margin-left:19%;">Print the name of each file to
d375 1
a375 1
<p style="margin-left:19%;">Print the program version
d380 1
a380 1
<p style="margin-left:19%; margin-top: 1em">(o mode only)
d387 1
a387 1
<p style="margin-left:19%; margin-top: 1em">(o mode only)
d394 1
a394 1
<p style="margin-left:19%; margin-top: 1em">(o mode only)
d401 1
a401 1
<p style="margin-left:9%;">The <b>cpio</b> utility
d407 1
a407 1
<p style="margin-left:9%;">The following environment
d412 2
a413 2
<p style="margin-left:23%; margin-top: 1em">The locale to
use. See <i>environ</i>(7) for more information.</p>
d417 2
a418 2
<p style="margin-left:23%; margin-top: 1em">The timezone to
use when displaying dates. See <i>environ</i>(7) for more
d423 1
a423 1
<p style="margin-left:9%;">The <b>cpio</b> command is
d425 2
a426 2
with the <i>find</i>(1) command. The first example here
simply copies all files from <i>src</i> to <i>dest</i>:</p>
d428 1
a428 1
<p style="margin-left:17%;"><b>find</b> <i>src</i> |
d431 7
a437 7
<p style="margin-left:9%; margin-top: 1em">By carefully
selecting options to the <i>find</i>(1) command and
combining it with other standard utilities, it is possible
to exercise very fine control over which files are copied.
This next example copies files from <i>src</i> to
<i>dest</i> that are more than 2 days old and whose names
match a particular pattern:</p>
d439 1
a439 1
<p style="margin-left:17%;"><b>find</b> <i>src</i>
d443 1
a443 1
<p style="margin-left:9%; margin-top: 1em">This example
d449 1
a449 1
<p style="margin-left:17%;"><b>find</b> <i>src</i>
d455 1
a455 1
<p style="margin-left:9%;">The mode options i, o, and p and
d459 1
a459 1
<p style="margin-left:9%; margin-top: 1em">The old POSIX.1
d473 3
a475 4
<p style="margin-left:9%;"><i>bzip2</i>(1), <i>gzip</i>(1),
<i>mt</i>(1), <i>pax</i>(1), <i>tar</i>(1),
<i>libarchive</i>(3), <i>cpio</i>(5),
<i>libarchive-formats</i>(5), <i>tar</i>(5)</p>
d479 1
a479 1
<p style="margin-left:9%;">There is no current POSIX
d484 1
a484 1
<p style="margin-left:9%; margin-top: 1em">The cpio, ustar,
d490 1
a490 1
<p style="margin-left:9%;">The original <b>cpio</b> and
d501 2
a502 2
<p style="margin-left:9%; margin-top: 1em">This is a
complete re-implementation based on the <i>libarchive</i>(3)
d507 1
a507 1
<p style="margin-left:9%;">The cpio archive format has
d515 4
a518 2
can support files up to 8 gigabytes. Debian September 16,
2014 <i>CPIO</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 -->
@


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:21 2025 -->
@


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 -->
@


1.1.1.24
log
@libarchive: import 3.8.8
@
text
@d2 1
a2 1
<!-- CreationDate: Tue Jun 23 09:58:15 2026 -->
@


