CONTENT
  • CHANGES
Szukaj
counter

#top cpio


cpio - copy files to and from archives

Powiązane:
cp, cpio, mv, rm, rsync,

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] [--help] [--version] < 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-directories] [--nonmatching] [--preserve-modification-time] [--numeric-uid-gid] [--rename] [-t|--list] [--swap-bytes] [--swap] [--dot] [--unconditional] [--verbose] [--block-size=blocks] [--swap-half-words] [--io-size=bytes] [--pattern-file=file] [--format=format] [--owner=[user][:.][group]] [--no-preserve-owner] [--message=message] [--force-local] [--absolute-filenames] [--sparse] [--only-verify-crc] [--quiet] [--rsh-command=command] [--help] [--version] [pattern...] [< archive]


DESCRIPTION



OPTIONS
-i, --extract
Run in copy-in mode. see Copy-in mode.

-d, --make-directories
Create leading directories where needed.

--absolute-filenames
Do not strip leading file name components that contain .. and leading slashes from file names in copy-in mode

-H FORMAT, --format=FORMAT
Use archive format FORMAT. The valid formats are listed below; the same names are also recognized in all-caps.
The default in copy-in mode is to automatically detect the archive format, and in copy-out mode is bin
bin - The obsolete binary format.
odc - The old (POSIX.1) portable format.
newc - The new (SVR4) portable format, which supports file systems having more than 65536 i-nodes.
crc - The new (SVR4) portable format with a checksum added.
tar - The old tar format.
ustar - The POSIX.1 tar format. Also recognizes GNU tar archives, which are similar but not identical.
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 device files differently).



EXAMPLES
zcat initrd.img | cpio  -id --no-absolute-filenames
find . | cpio  -o -Hnewc | gzip > initrd-new.img
rpm2cpio logrotate-1.0-1.i386.rpm | cpio  -ivd etc/logrotate.conf




Zmodyfikowany ostatnio: 2014/05/20 20:27:32 (9 lat temu), textsize: 3,13 kB, htmlsize: 3,88 kB

Zapraszam do komentowania, zgłaszania sugestii, propozycji, własnych przykładów, ...
Dodaj komentarzKomentarze użytkowników