hi all
How to unzip .tgz files
waiting for suggestions
Praful
hi all
How to unzip .tgz files
waiting for suggestions
Praful
tgz files are gzip compressed tar archives. You can extract them like this : tar xzf filename
I think the previous reply may have left off something. The full command is like this:
gzip -cd <filename.tgz> | tar xvf -
You could do each commmand separately, but if your resulting tar file is too large, tar xvf will not work.
A user may untar a compressed (gzipped) tar file with:
tar -zxvf <filename>
The z flag instructs tar to use gzip. A seperate gzip pipe is not required.
Of course, the v flag is not necessary, just makes gzip quite talkative 
DanielB is quite correct when he suggests that a .tgz file may be untarred with -zxf switches (only).
My mistake, I was reading fast and read "xvf" instead of "xzf".
Well, you may still need to gunzip it first. Some tars' (non-GNU) do not understand the z option.
YMMV