Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Tar : z illegal option

740 views
Skip to first unread message

P. Zervos

unread,
Jan 19, 2000, 3:00:00 AM1/19/00
to
Why do i get: "z illegal option" when i try to unzip a .tar.gz file whith
:tar xzvf filename.tar.gz.?

Kind regards,
Perry Zervos

S. Ferlioni

unread,
Jan 19, 2000, 3:00:00 AM1/19/00
to
"P. Zervos" wrote:

You got to install GNU Tar to be able to do this ..
go to ftp.gnu.org ... you will most likely find it in there .
compile it and install it as gtar ..
that is basically it ..
S. Ferlioni


Igor Sobrado Delgado

unread,
Jan 20, 2000, 3:00:00 AM1/20/00
to
P. Zervos <zer...@capitolonline.nl> wrote:
> Why do i get: "z illegal option" when i try to unzip a .tar.gz file whith
> :tar xzvf filename.tar.gz.?

SVR4.x tar does not support uncompress options (for uncompress, gzip, zip
or another compression tool). If you have installed gzip on your Unix box
you can do some like

gzcat filename.tar.gz | tar -xvf -

If your file is compressed with standard Unix compress tool you can
uncompress it with

zcat filename.tar.Z | tar -xvf -

gzcat/zcat are used to uncompress files on-the-fly sending the uncompressed
file to the standard output that could be redirected with the pipe to
another tool (on this case tar). Tar modifiers are x (for extract), v (for
verbose) and f (for the "file" where uncompressed tar is found), on this
case '-' the standard input. As you can see, you will not need GNU's tar.

--
Igor Sobrado Delgado (UK34436) - sob...@acm.org

0 new messages