Results 1 to 4 of 4

Thread: Geting gzip to work

  1. #1
    Senior Member
    Join Date
    Feb 2003
    Posts
    282

    Geting gzip to work

    Seems I cannot unzip tar.gz files in RH

    I try to decompress but it just removes the gz

    gzip -d myfile.tar.gz

    there are no directoryes or files extracted and the origional file myfile.tar.gz now becomes just myfile.tar

    Why is this? What am I missing?

  2. #2
    Senior Member
    Join Date
    Jul 2003
    Posts
    813
    Hmm nothing. You're only unzipping the archive, not untarring it. Try

    tar xzvf archive.tar.gz

    at the prompt and it should work. In the case of bzip2 [.bz2] try

    tar xjvf archive.tar.bz2

    Hope it helps!
    /\\

  3. #3
    Senior Member
    Join Date
    Feb 2003
    Posts
    282
    That worked. I had read part of the man page for gzip and some made sence but I guess I thought decompress would unpack it. So instead of using gzip i guess I would use tar.

    I realy apreciate the help.

  4. #4
    Senior Member
    Join Date
    Jun 2003
    Posts
    723
    you can also view gzipped or bzipped files without decompressing with gzcat bzcat or zmore
    Do unto others as you would have them do unto you.
    The international ban against torturing prisoners of war does not necessarily apply to suspects detained in America\'s war on terror, Attorney General John Ashcroft told a Senate oversight committee
    -- true colors revealed, a brown shirt and jackboots

Posting Permissions

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