LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-22-2004, 07:51 AM   #1
keimdf
LQ Newbie
 
Registered: Dec 2004
Location: Wabasha, MN
Posts: 24

Rep: Reputation: 15
tar with gz


Here is another one that has me stumped.

I have several files that end in .gz

i have tried

tar -xcz file.gz

but it just hangs there and doesn't do anything.

any ideas?
 
Old 12-22-2004, 07:54 AM   #2
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
gunzip file

if they're just gzipped. Try 'file file' if that doesn't work, to see what it really is.

Oh, and it'd be 'tar xzf' to extract a tar.gz.

Last edited by slakmagik; 12-22-2004 at 07:55 AM.
 
Old 12-22-2004, 07:55 AM   #3
whipermr5
Member
 
Registered: Dec 2004
Location: Singapore
Distribution: Fedora Core 5 Linux
Posts: 202

Rep: Reputation: 30
try
Code:
tar -zxvf filename

Last edited by whipermr5; 12-22-2004 at 07:56 AM.
 
Old 12-22-2004, 08:46 AM   #4
keimdf
LQ Newbie
 
Registered: Dec 2004
Location: Wabasha, MN
Posts: 24

Original Poster
Rep: Reputation: 15
Tried several different ways and got this.

[root@ANAKIN DOTDgz]# tar -zxvf sasp.d.gz
tar: This does not look like a tar archive
tar: Skipping to next header
tar: Error exit delayed from previous errors

same with

tar -xzf sasp.d.gz

I placed the files (over 350) on this drive in windows. Does that make a difference?

when I mount the drive in windows, I can use Winzip and it works just fine. But I have to do it one file at a time. Lot of work!

If I can do it in Linux, I would assume that I could do it using a wildcard.

tar -zxvf *.gz or something like that.
 
Old 12-22-2004, 08:57 AM   #5
sharper
Member
 
Registered: Aug 2002
Location: MN USA
Distribution: slakware 9.0
Posts: 121

Rep: Reputation: 15
If sasp.d.gz is the actual file name it is probably not a tar file

Try gunzip <filename> of gzip -d <filename>
 
Old 12-22-2004, 09:43 AM   #6
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
As I said before (apparently not clearly enough):

Code:
~
1002>> file sasp.d.gz 
sasp.d.gz: gzip compressed data, was "sasp.d", from Unix

~
1003>> gunzip sasp.d.gz 

~
1004>>
If labelled correctly, a 'gz' is not a 'tar.gz' and you don't use tar.
 
Old 12-22-2004, 09:47 AM   #7
keimdf
LQ Newbie
 
Registered: Dec 2004
Location: Wabasha, MN
Posts: 24

Original Poster
Rep: Reputation: 15
thanks

I thought it was part of tar for gzip not a separate program.

Everything is working just fine.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how can i decompress this tar.tar file? hmmm sounds new.. tar.tar.. help ;) kublador Linux - Software 14 10-25-2016 03:48 AM
tar tar cvf - . | (cd /root/; tar xvf -) ewt3y Linux - General 10 02-19-2014 11:55 AM
a tough question 4 u, problem in extracting tar & tar.gz files p_garg Linux - General 5 11-08-2010 12:02 PM
.rpms, .tar.gz, .tgz, .src.rpm, & .tar.bz2 whoots Mandriva 10 10-18-2003 01:08 PM
Diferance between rpm, tar, tar.gz, scr.tar, etc mobassir Linux - General 12 08-21-2003 07:30 AM


All times are GMT -5. The time now is 01:00 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration