1829010 Members
2619 Online
109986 Solutions
New Discussion

about file format

 
SOLVED
Go to solution
juno2
Super Advisor

about file format

how to extract the file format .tgz ? thx.
6 REPLIES 6
juno2
Super Advisor

Re: about file format

is it the function to tar and gzip a file at the same time? thx
Balaji N
Honored Contributor
Solution

Re: about file format

hi,

.tgz file is a tar file which is gzipped.

if you have GNU tar, then

tar zxvf file.tgz will work.

else

gunzip -c file.tgz | tar -xvf -


hth
-balaji
Its Always Important To Know, What People Think Of You. Then, Of Course, You Surprise Them By Giving More.
juno2
Super Advisor

Re: about file format

my hp unix 11 is not support tar -z ( error tar: z: unknown option ) , how to extract ? thx.
Balaji N
Honored Contributor

Re: about file format

had specifically mentioned that tar -zxvf will work only with GNU tar.

on hp boxes,

use

gunzip file.tgz
and then

tar -xvf file.tar

or

gunzip -c file.tgz | tar -xvf -


hth
-balaji
Its Always Important To Know, What People Think Of You. Then, Of Course, You Surprise Them By Giving More.
Radhakrishnan Venkatara
Trusted Contributor

Re: about file format

simple

gzip -d *.tgz

tar xvf *.tar


radhakrishnan
Negative thinking is a highest form of Intelligence
T G Manikandan
Honored Contributor

Re: about file format

You can use gzip for the .tgz extensions

#/usr/contrib/bin/gzip