Operating System - HP-UX
1748255 Members
4000 Online
108760 Solutions
New Discussion юеВ

Re: problem in tar file extraction

 
SOLVED
Go to solution
prasadb
Super Advisor

problem in tar file extraction

hello all,
i am having problem in extracting the file AdbeRdr709_hpux_enu.tar.gz, i used this command tar -xvfz AdbeRdr709_hpux_enu.tar.gz. Its giving error as unknown aaplication..

i used this also to check the gunzip is installed or not..
whereis gunzip
It's output is

gunzip: /usr/contrib/bin/gunzip

please help.
8 REPLIES 8
Jeeshan
Honored Contributor

Re: problem in tar file extraction

try out this

# gunzip AdbeRdr709_hpux_enu.tar.gz
then
# tar xvf AdbeRdr709_hpux_enu.tar
a warrior never quits
Davis Paul
Valued Contributor

Re: problem in tar file extraction

Hi prasadshete,
# file filename : command output will give you the type of any file. Please check the type of file you are using. The file which you have tried to tar seems like a zip file. Please unzip it first using the command gunzip and then try to tar.
Regards
Davis Paul.

Venkatesh BL
Honored Contributor
Solution

Re: problem in tar file extraction

Did you mean "tar gives error as 'unknown option'"? I've never used the 'z' option, can't find it in the manpage as well. You could get the job done by unzip first and then extracting it.
inukoti13
New Member

Re: problem in tar file extraction

tar -xvfz will work in linux environment or with gnutar .
Steven Schweda
Honored Contributor

Re: problem in tar file extraction

> # gunzip AdbeRdr709_hpux_enu.tar.gz
> then
> # tar xvf AdbeRdr709_hpux_enu.tar

Or, save some disk space:

gzip -cd AdbeRdr709_hpux_enu.tar.gz | tar xf -
OldSchool
Honored Contributor

Re: problem in tar file extraction

You're trying to use GNU tar option -z. not available in standard unix tars.

as noted above, use gunzip separately, then tar.
Sp4admin
Trusted Contributor

Re: problem in tar file extraction

As stated above you need to gunzip the file then you can use tar to extract it. The .gz extentiion indicates that it gunzipped.

sp,
Sajjad Sahir
Honored Contributor

Re: problem in tar file extraction

u have to guzip first then
only u can use
tar
tar -xvf filename

sajjad