Home » Questions » Computers [ Ask a new question ]

cpio basic extract command, 'tar xzvf' equivalent?

cpio basic extract command, 'tar xzvf' equivalent?

I've received a Unix software distribution as a compressed cpio file. What's the best command to extract the files?

Asked by: Guest | Views: 37
Total answers/comments: 2
Guest [Entry]

"gzip -cd foo.cpio.gz | cpio -idmv

i : extract (input)
d : create directories
m : preserve mtime
v : verbose"
Guest [Entry]

"This Wikipedia page on cpio has some good notes.
For more details, refer to the cpio manual.

A link from the same Wikipedia page discusses comparison with tar archives.
And, here is an example of using cpio with the tar format."