Solved

zcat

Posted on 2001-07-12
13
478 Views
Last Modified: 2012-05-04
I am trying to unzip the following file

gcc-bin.tar.gz

I have only zcat or uncompress to work with at the moment and not gunzip.

can i do this and if so what is my command instrsuction.

I tried the simple command:

zcat gcc-bin.tar.gz

This command failed.  The error reported is as follows:

No such file: gcc-bin.tar.gz.Z

what are my options?

regards
Peter

0
Comment
Question by:Peewee
  • 4
  • 4
  • 2
  • +3
13 Comments
 
LVL 3

Expert Comment

by:interiot
ID: 6278219
If you have gzip, you can do

  gzip -d gcc-bin.tar.gz
0
 
LVL 5

Author Comment

by:Peewee
ID: 6278602
interiot,
i donot hsve gzip installed..

any offers..
0
 
LVL 11

Expert Comment

by:griessh
ID: 6278617
zcat is fine.

zcat gcc-bin.tar.gz > gcc-bin.tar
tar xvf gcc-bin.tar

zcat -s a gunzip -c, that means it will send to stdout (I guess your approach kill your teminal?)

======
Werner
0
Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

 
LVL 5

Expert Comment

by:marecs
ID: 6279797
It won't work. You need gunzip. zcat is probably a symlink to compress which uses a slightly different compression format than gzip. That is why it looks for a .Z extension. gunzip can unzip .Z files, but not vice versa.
0
 
LVL 11

Expert Comment

by:griessh
ID: 6280390
Peewee said he has zcat, zcat is a binary and zcat works for *.gz compression!

======
Werner
0
 
LVL 5

Author Comment

by:Peewee
ID: 6280498
chaps,
i tried the zcat commands and they don't work.  I think Marecs is right.

I've tried to install gunzip but it wont install, will post the errors here later..

regards
peewee
0
 
LVL 11

Expert Comment

by:griessh
ID: 6280522
Peewee

What OS are you running on? I am on AIX and I am using zcat all the time, so just wondering what could go wrong. What does zcat complain about?

======
Werner
0
 
LVL 5

Author Comment

by:Peewee
ID: 6280562
I,m runing solaris Sun OS 5.6 which i think equates to solaris 2.6.

the error mesage i get is:

No such file: gcc-bin.tar.gz.Z

it basically appends the .Z to the file name and hence cant find it.

regards
Peter
0
 
LVL 11

Accepted Solution

by:
griessh earned 20 total points
ID: 6280864
Since you said you had problems installing gunzip, do you have access to a Windows PC? You should be able to unzip you file to create a tar file and then transfer it back to your SUN and untar it. (Sounds terrible, doesn't it, but it works ...)

======
Werner
0
 
LVL 3

Expert Comment

by:mrn060900
ID: 6288791
try renaming the file with a .Z at the end

Regards Mike
0
 

Expert Comment

by:jahvane
ID: 6295345
I would go to frresunware.com and download the latest version of gzip, it's best to go ahead and install it, you'll need it.

CA
0
 

Expert Comment

by:jahvane
ID: 6295350
oops...its sunfreeware.com if u are using solaris plattform
0
 
LVL 5

Author Comment

by:Peewee
ID: 6299034
yept thats my only option or get a newer copy of solaris.

many thanks
peewee
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When you do backups in the Solaris Operating System, the file system must be inactive. Otherwise, the output may be inconsistent. A file system is inactive when it's unmounted or it's write-locked by the operating system. Although the fssnap utility…
Introduction Regular patching is part of a system administrator's tasks. However, many patches require that the system be in single-user mode before they can be installed. A cluster patch in particular can take quite a while to apply if the machine…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

831 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question