Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 13
I have large file that is labeled .tar.z. When I try to untar this nothing seems to happen, and when I try to unzip it I am told that it ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux User
    Join Date
    Jan 2005
    Location
    Florida
    Posts
    414

    uncompress .tar.z


    I have large file that is labeled .tar.z. When I try to untar this nothing seems to happen, and when I try to unzip it I am told that it is not a zip file.
    I am using FC4 which doesn't seem to have the compress utility and I am having trouble finding anything that will unzip, or untar, this file.
    Can somebody suggest a solution, please?
    Thanks
    registered linux user: 387197

  2. #2
    Linux Guru bryansmith's Avatar
    Join Date
    Nov 2004
    Location
    /Ontario/Canada
    Posts
    2,619
    http://sis.agr.gc.ca/cansis/procedures/tar.Z.html#2.1 - That tells you how to decompress it.

    Bryan
    Looking for a distro? Look here.
    "There can be no doubt that all our knowledge begins with experience." - Immanuel Kant (Critique of Pure Reason)
    Queen's University - Arts and Science 2008 (Sociology)
    Registered Linux User #386147.

  3. #3
    Linux User
    Join Date
    Jan 2005
    Location
    Florida
    Posts
    414
    Fedora does not have the compress utility and the only version I can find is ncompress, which won't compile on my system. When I try uncompress I get the unknown command message
    registered linux user: 387197

  4. #4
    Linux Guru bryansmith's Avatar
    Join Date
    Nov 2004
    Location
    /Ontario/Canada
    Posts
    2,619
    Try:
    Code:
    gzip -d <archive>
    and then decompress the resulting tar archive.

    Bryan
    Looking for a distro? Look here.
    "There can be no doubt that all our knowledge begins with experience." - Immanuel Kant (Critique of Pure Reason)
    Queen's University - Arts and Science 2008 (Sociology)
    Registered Linux User #386147.

  5. #5
    Linux User
    Join Date
    Jan 2005
    Location
    Florida
    Posts
    414
    Code:
    [jpq04@localhost Job]$ gzip -d Job3-808235\ Party\ Line\ Brochure.tar.z
    
    gzip: Job3-808235 Party Line Brochure.tar.z: not in gzip format
    The file is supposed to contain graphic art for some kind of brochure but the people who supplied the disc neglected to tell anyone what compression format was used. I think it may have been done on a Mac but that's entirely supposition.
    The trailing z is in lower case; the only thing I found that was similar was a frontend for compress, uncompress, gzip, bzip, tar, zip, and unzip.
    registered linux user: 387197

  6. #6
    Linux Enthusiast
    Join Date
    Aug 2005
    Location
    Hell
    Posts
    514
    Quote Originally Posted by jimbaloo
    Fedora does not have the compress utility and the only version I can find is ncompress, which won't compile on my system. When I try uncompress I get the unknown command message
    Yes it does, in the "ncompress" package, which may not be installed by default. So install it with
    Code:
    yum install ncompress
    and then try using tar to uncompress and extract it with
    Code:
    tar xvZf Job3-808235\ Party\ Line\ Brochure.tar.z

  7. #7
    Linux User
    Join Date
    Jan 2005
    Location
    Florida
    Posts
    414
    Well, finally got ncompress installed only to find that that's not what the compression is either.
    registered linux user: 387197

  8. #8
    Linux Guru bryansmith's Avatar
    Join Date
    Nov 2004
    Location
    /Ontario/Canada
    Posts
    2,619
    From www.gzip.org, try:
    Code:
    zcat file.tar.Z | tar xvf -
    Bryan
    Looking for a distro? Look here.
    "There can be no doubt that all our knowledge begins with experience." - Immanuel Kant (Critique of Pure Reason)
    Queen's University - Arts and Science 2008 (Sociology)
    Registered Linux User #386147.

  9. #9
    Linux Enthusiast
    Join Date
    Aug 2005
    Location
    Hell
    Posts
    514
    run file on it and see what it says:
    Code:
    file Job3-808235\ Party\ Line\ Brochure.tar.z

  10. #10
    Just Joined!
    Join Date
    Nov 2005
    Location
    Central TX (Red Bluff)
    Posts
    1

    If you don't have your answer yet...

    It's in the man pages for gzip; here is a partial cut and paste:
    gunzip takes a list of files on its command line and replaces each file whose name ends with .gz, -gz, .z, -z,
    _z or .Z

    gzip compresses but can be coerced into doing other things.
    gunzip decompresses

    keeping it very simple:
    gunzip filename.tar.Z
    Best of luck

Page 1 of 2 1 2 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •