Q: gzip/tar uncompress -- newbie question

Q: gzip/tar uncompress -- newbie question

Post by Ster » Fri, 12 Dec 1997 04:00:00



I don't quite get it:  I download a *.tar.gz file and un gzip it, no
problem.  The resulting file is a *.tar file, so I run "tar -d" to untar it,
but nothing happens.  Instead it accepts keystokes from the console.

Why?

What am I doing wrong?

Thanks,

_________________________
I am Ster
http://stargazer.net/~nik
Thibodaux, LA, USA

 
 
 

Q: gzip/tar uncompress -- newbie question

Post by Frank Sweetse » Fri, 12 Dec 1997 04:00:00



> I don't quite get it:  I download a *.tar.gz file and un gzip it, no
> problem.  The resulting file is a *.tar file, so I run "tar -d" to untar it,
> but nothing happens.  Instead it accepts keystokes from the console.

You need to pass it the filename with the -f option.  You can combine the
gzip and tar command line like so:

tar -xvzf filename.tar.gz

--
Frank Sweetser rasmusin at wpi.edu fsweetser at blee.net | PGP key available
paramount.res.wpi.net RedHat 5.0  Linux 2.0.33p2  i586   | at public servers
        "Oh no, not again!"
                - the bowl of petunias

 
 
 

Q: gzip/tar uncompress -- newbie question

Post by Alexander Vi » Fri, 12 Dec 1997 04:00:00


tar xf <name>.tar
Better yet, tar zxf <name>.tar.gz
                                                Cheers,
                                                        Al

 
 
 

1. Which is better: tar->gzip or gzip->tar?

For best compression on previously uncompressed files,
which is better: tar * | gzip, or gzip * | tar?
IE, is it best to tar compressed files, or compress
a tar file of uncompressed files?  Does gzip -r * work
better than either solution?

I'm looking for the most robust method to archive groups
of files.

---


Mayo Medical and Graduate Schools        
200 1st St. SW, Rochester, MN 55905

2. Adaptec Altra Lite 1505/1515

3. Bash - cat doesn't like for-then loops

4. Newbie tar and gzip questions...

5. Linux with a voodoo3 2000 card?

6. tar gzip newbie question

7. OpenLinux Lite/Base

8. newbie using tar and gzip

9. Extracting files with tar and uncompress fails with tar: Archive - EOF not on block boundary

10. simple tar/gzip question

11. gzip can't uncompress large file

12. failed to uncompress ftped perl.gz with gzip!