I have a file with cpgz extension and I want to extract it on Ubuntu 14.04. Is there any command that I can extract easily ?
3 Answers
Just to make things clearer: the answer by @Emre Koç works, but it might not be obvious where your archive name goes.
gzip -cd ARCHIVENAME.cpgz | cpio -idmv
Replace ARCHIVENAME
with the name of your archive. Remember to first cd
into the directory where your archive is located.
I extracted with gzip -cd foo.cpio.gz | cpio -idmv
Code is taken from here
-
Your question says the file has a
.cpgz
extension; your answer says it has.cpio.gz
. Mar 9, 2015 at 20:53 -
cpgz is compressed format of cpio.gz. There is no difference if you want to extract both of them– Emre KoçMar 10, 2015 at 6:42
Try renaming the file without .gz and open it. Could be that there is no compressed file in the first place.
file
command to see what the file really is. Readman file
.