Wednesday, January 15, 2020

stream extract of cpio archive



extract cpio archive, split into parts.

create archive with split command, reassemble into stream with cat of all of parts in order.

example

cat usr-cpio-* | cpio -idv

cat usr-cpio-* assembles all parts into a stream

use pipe to cpio  | cpio

cpio options -idv 

-i means cpio put into reading mode, w/o other input option, will default to stdin
  stdin driven by cat command pipped to the cpio invocation.

-d  create directories, and recurse.

-v  verbose report to stdout (stdout for a -i instance is either silent, or verbose list of files

--30--

No comments:

Post a Comment