My Programming Weblog
with 3 comments
One way to extract a .tar.Z file:
$ zcat file.tar.Z | tar xvf -
Written by kenno
October 6, 2011 at 5:17 am
Posted in Uncategorized
Tagged with tar
Subscribe to comments with RSS.
why not tar zvxf file.tar.Z? you should really name your files .tar.gz or .tgz if they are gzipped.
jayenashar
October 9, 2011 at 10:48 am
Ahh.. I didn’t know that .tar.Z is the same as tar.gz. In that case, of course tar xzvf file.tar.Z is simpler.Thanks.
kenno
October 10, 2011 at 7:39 am
it’s not supposed to be, but you managed to use zcat, so I assume it’s a .gz (gzip) masquerading as a .Z (compress). if it was really a .Z, you should have been able to do xvf, axvf, Zxvf, -I compress xvf, etc.
October 11, 2011 at 1:20 am
Fill in your details below or click an icon to log in:
You are commenting using your WordPress.com account. ( Log Out / Change )
You are commenting using your Twitter account. ( Log Out / Change )
You are commenting using your Facebook account. ( Log Out / Change )
Connecting to %s
Notify me of follow-up comments via email.
Get every new post delivered to your Inbox.
why not tar zvxf file.tar.Z? you should really name your files .tar.gz or .tgz if they are gzipped.
jayenashar
October 9, 2011 at 10:48 am
Ahh.. I didn’t know that .tar.Z is the same as tar.gz. In that case, of course tar xzvf file.tar.Z is simpler.Thanks.
kenno
October 10, 2011 at 7:39 am
it’s not supposed to be, but you managed to use zcat, so I assume it’s a .gz (gzip) masquerading as a .Z (compress). if it was really a .Z, you should have been able to do xvf, axvf, Zxvf, -I compress xvf, etc.
jayenashar
October 11, 2011 at 1:20 am