CPIO(1) GNU CPIO CPIO(1)
NAME
cpio - copy files to and from archives
SYNOPSIS
cpio {-o|--create} [-0acvABLV] [-C BYTES] [-H FORMAT] [-M MESSAGE] [-O
[[USER@]HOST:]ARCHIVE] [-F [[USER@]HOST:]ARCHIVE]
[--file=[[USER@]HOST:]ARCHIVE] [--format=FORMAT] [--message=MESSAGE]
[--null] [--reset-access-time] [--verbose] [--dot] [--append]
[--block-size=blocks] [--dereference] [--io-size=BYTES] [--quiet]
[--force-local] [--rsh-command=COMMAND] < name-list [> archive]
cpio {-i|--extract} [-bcdfmnrtsuvBSV] [-C BYTES] [-E FILE] [-H FORMAT]
[-M MESSAGE] [-R [USER][:.][GROUP]] [-I [[USER@]HOST:]ARCHIVE] [-F
[[USER@]HOST:]ARCHIVE] [--file=[[USER@]HOST:]ARCHIVE] [--make-directo-
ries] [--nonmatching] [--preserve-modification-time] [--nu-
meric-uid-gid] [--rename] [--list] [--swap-bytes] [--swap] [--dot]
[--unconditional] [--verbose] [--block-size=BLOCKS] [--swap-halfwords]
[--io-size=BYTES] [--pattern-file=FILE] [--format=FORMAT]
[--owner=[USER][:.][GROUP]] [--no-preserve-owner] [--message=MESSAGE]
[--force-local] [--no-absolute-filenames] [--sparse] [--only-ver-
ify-crc] [--to-stdout] [--quiet] [--rsh-command=COMMAND] [pattern...]
[< archive]
cpio {-p|--pass-through} [-0adlmuvLV] [-R [USER][:.][GROUP]] [--null]
[--reset-access-time] [--make-directories] [--link] [--quiet] [--pre-
serve-modification-time] [--unconditional] [--verbose] [--dot]
[--dereference] [--owner=[USER][:.][GROUP]] [--no-preserve-owner]
[--sparse] destination-directory < name-list
cpio {-?|--help|--usage|--version}
REPORTING BUGS
Report cpio bugs to bug-cpio@gnu.org
GNU cpio home page: <http://www.gnu.org/software/cpio/>
General help using GNU software: <http://www.gnu.org/gethelp/>
Report cpio translation bugs to <http://translationproject.org/team/>
SEE ALSO
cpio(5)
DESCRIPTION
GNU cpio copies files between archives and directories. It supports
the following archive formats: old binary cpio, old portable cpio, SVR4
cpio with and without checksum, HP cpio, and various tar formats.
The operation mode is requested by one of the following options:
-o, --create
Copy-out. Read a list of file names from the standard input and
create on the standard output (unless overridden by the --file
option) an archive containing these files.
-i, --extract
Copy-in. Read the archive from standard input (or from the file
supplied with the --file option) and extract files from it, or
(if the -t option is given) list its contents to the standard
output. If one or more patterns are supplied, read or list only
files matching these patterns. The -t option alone implies -i.
-p, --pass-through
Pass-through. Read a list of file names from the standard input
and copy them to the specified directory.
-?, --help
Give a short help summary and exit.
--usage
Print a short usage message and exit.
--version
Print program version and exit.
REPORTING BUGS
Report cpio bugs to bug-cpio@gnu.org
GNU cpio home page: <http://www.gnu.org/software/cpio/>
General help using GNU software: <http://www.gnu.org/gethelp/>
Report cpio translation bugs to <http://translationproject.org/team/>
OPTIONS
Operation modifiers valid in any mode
--block-size=BLOCK-SIZE
Set the I/O block size to BLOCK-SIZE * 512 bytes.
-B Set the I/O block size to 5120 bytes.
-c Use the old portable (ASCII) archive format. This is the same
as -H odc.
-C, --io-size=NUMBER
Set the I/O block size to the given NUMBER of bytes.
-D, --directory=DIR
Change to directory DIR.
--force-local
Archive file is local, even if its name contains colons.
-H, --format=FORMAT
Use given archive FORMAT. Valid formats are (the number in
parentheses gives maximum size for individual archive member):
bin The obsolete binary format. (2147483647 bytes)
odc The old (POSIX.1) portable format. (8589934591 bytes)
newc The new (SVR4) portable format, which supports file sys-
tems having more than 65536 i-nodes. (4294967295 bytes)
crc The new (SVR4) portable format with a checksum added.
tar The old tar format. (8589934591 bytes)
ustar The POSIX.1 tar format. Also recognizes GNU tar ar-
chives, which are similar but not identical. (8589934591
bytes)
hpbin The obsolete binary format used by HPUX's cpio (which
stores device files differently).
hpodc The portable format used by HPUX's cpio (which stores de-
vice files differently).
-R, --owner=[USER][:.][GROUP]
In copy-in and copy-pass mode, set the ownership of all files
created to the specified USER and/or GROUP. In copy-out mode,
store the supplied owner information in the archive.
USER and GROUP are first looked up in the system user and group
databases. If not found, cpio checks if they consist of decimal
digits only and, if so, treats them as numeric UID and GID, cor-
respondingly.
To avoid the lookup and ensure that arguments are treated as nu-
meric values, prefix them with a plus sign, e.g.: -R +0:+0.
--quiet
Do not print the number of blocks copied at the end of the run.
--rsh-command=COMMAND
Use remote COMMAND instead of rsh.
-v, --verbose
Verbosely list the files processed.
-V, --dot
Print a "." for each file processed.
-W, --warning=FLAG
Controls warning display. The FLAG is one of none, to disable
all warnings, all to enable them, truncate, to enable warnings
about field truncation, and no-truncate, to disable them.
Multiple -W options accumulate.
Operation modifiers valid in copy-in and copy-out modes
-F, --file=[[USER@]HOST:]ARCHIVE-FILE
Use this ARCHIVE-FILE instead of standard input (in copy-in
mode) or standard output (in copy-out mode). Optional USER and
HOST specify the user and host names in case of a remote ar-
chive.
-M, --message=STRING
Print STRING when the end of a volume of the backup media is
reached.
Operation modifiers valid only in copy-in mode
.
CPIO(1) GNU CPIO CPIO(1)
NAME
cpio - copy files to and from archives
SYNOPSIS
cpio {-o|--create} [-0acvABLV] [-C BYTES] [-H FORMAT] [-M MESSAGE] [-O
[[USER@]HOST:]ARCHIVE] [-F [[USER@]HOST:]ARCHIVE]
[--file=[[USER@]HOST:]ARCHIVE] [--format=FORMAT] [--message=MESSAGE]
[--null] [--reset-access-time] [--verbose] [--dot] [--append]
[--block-size=blocks] [--dereference] [--io-size=BYTES] [--quiet]
[--force-local] [--rsh-command=COMMAND] < name-list [> archive]
cpio {-i|--extract} [-bcdfmnrtsuvBSV] [-C BYTES] [-E FILE] [-H FORMAT]
[-M MESSAGE] [-R [USER][:.][GROUP]] [-I [[USER@]HOST:]ARCHIVE] [-F
[[USER@]HOST:]ARCHIVE] [--file=[[USER@]HOST:]ARCHIVE] [--make-directo-
ries] [--nonmatching] [--preserve-modification-time] [--nu-
meric-uid-gid] [--rename] [--list] [--swap-bytes] [--swap] [--dot]
[--unconditional] [--verbose] [--block-size=BLOCKS] [--swap-halfwords]
[--io-size=BYTES] [--pattern-file=FILE] [--format=FORMAT]
[--owner=[USER][:.][GROUP]] [--no-preserve-owner] [--message=MESSAGE]
[--force-local] [--no-absolute-filenames] [--sparse] [--only-ver-
ify-crc] [--to-stdout] [--quiet] [--rsh-command=COMMAND] [pattern...]
[< archive]
cpio {-p|--pass-through} [-0adlmuvLV] [-R [USER][:.][GROUP]] [--null]
[--reset-access-time] [--make-directories] [--link] [--quiet] [--pre-
serve-modification-time] [--unconditional] [--verbose] [--dot]
[--dereference] [--owner=[USER][:.][GROUP]] [--no-preserve-owner]
[--sparse] destination-directory < name-list
cpio {-?|--help|--usage|--version}
REPORTING BUGS
Report cpio bugs to bug-cpio@gnu.org
GNU cpio home page: <http://www.gnu.org/software/cpio/>
General help using GNU software: <http://www.gnu.org/gethelp/>
Report cpio translation bugs to <http://translationproject.org/team/>
SEE ALSO
cpio(5)
DESCRIPTION
GNU cpio copies files between archives and directories. It supports
the following archive formats: old binary cpio, old portable cpio, SVR4
cpio with and without checksum, HP cpio, and various tar formats.
The operation mode is requested by one of the following options:
-o, --create
Copy-out. Read a list of file names from the standard input and
create on the standard output (unless overridden by the --file
option) an archive containing these files.
-i, --extract
Copy-in.
CPIO June 21, 2018 CPIO(1)
Czas wygenerowania: 0.00074 sek.
Created with the man page lookup class by Andrew Collington.
Based on a C man page viewer by Vadim Pavlov
Unicode soft-hyphen fix (as used by RedHat) by Dan Edwards
Some optimisations by Eli Argon
Caching idea and code contribution by James Richardson
Copyright © 2003-2025 Linux.pl
Hosted by Hosting Linux.pl