Fedora Linux Support Community & Resources Center
  #1  
Old 29th October 2004, 04:02 AM
cuongvt Offline
Registered User
 
Join Date: Jul 2004
Posts: 166
newbie:extract multi tar.gz files in same time

I have multi tar.gz files and I want to extract them in same time, I used this command but it don't work:
tar -xzvf *.gz

Could any one can help me.

one more question:
Wich command can help me to rename file and folder?
thank you
Reply With Quote
  #2  
Old 29th October 2004, 04:44 AM
Chas.H Offline
Registered User
 
Join Date: Aug 2004
Location: Stokes County, North Carolina
Age: 55
Posts: 248
I don't know about doing multiple files at a time, but I can tell you that you should use gunzip for gz files. Assuming that the file is named something.tar.gz...

gunzip something.tar.gz will extract it to something.tar
Then you do tar -xvvf something.tar

as for renaming a file...
It's more like moving a file to the same place with a different name.
like this:
mv oldName newName

More information: is here
__________________
Cheers,
Charles
Booke Seminars
Gilded Age
9 Dragon Palace Restaurant

Still using FC2
Upgraded to FC4 July 16, 2005!!
Still using FC4

Registered Linux User #373127
Reply With Quote
  #3  
Old 29th October 2004, 04:50 AM
cuongvt Offline
Registered User
 
Join Date: Jul 2004
Posts: 166
many thanks
Reply With Quote
  #4  
Old 29th October 2004, 09:53 PM
Jman Offline
Registered User
 
Join Date: Mar 2004
Location: Minnesota, USA
Age: 28
Posts: 7,909
Bash scripts may help you. I think you could do
Code:
for FILE in *.gz; do tar -xzvf $FILE done
Reply With Quote
  #5  
Old 30th October 2004, 08:32 PM
pc recycler Offline
Registered User
 
Join Date: Oct 2004
Location: Ottawa, Ontario, Canada
Posts: 43
I am trying to extract a tar.gz file. I'm using the following command: tar -xzvf php5.tar.gz /php and I get "gzip: stdin: not in gzip format".

Plus, in SSH client, the file is in red, what does that mean?
__________________
FC2 - P166MMX, 128MB PC133, 4GB Bigfoot HD - console only server
Reply With Quote
  #6  
Old 30th October 2004, 11:06 PM
Jman Offline
Registered User
 
Join Date: Mar 2004
Location: Minnesota, USA
Age: 28
Posts: 7,909
For extracting php5.tar.gz, try it without the /php.

ls shows archive files like .tar.gz and .rpm in red.
Reply With Quote
  #7  
Old 1st November 2004, 01:01 PM
pc recycler Offline
Registered User
 
Join Date: Oct 2004
Location: Ottawa, Ontario, Canada
Posts: 43
Jman, it seems that if I get files with "wget" I can't extract them because it seems to alter the files. I downloaded the same files with Lynx and I was able to extract them without a problem. It's either that or the fact that I modified the original file name, would this affect extraction of the file?
__________________
FC2 - P166MMX, 128MB PC133, 4GB Bigfoot HD - console only server
Reply With Quote
  #8  
Old 1st November 2004, 10:49 PM
Jman Offline
Registered User
 
Join Date: Mar 2004
Location: Minnesota, USA
Age: 28
Posts: 7,909
I don't think file name should matter.

Try running the file tool on files you downloaded with wget. See what kind of files they are.
Code:
wget filename
Reply With Quote
Reply

Tags
files, multi, newbieextract, targz, time

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
how to extract .rar files munna_dude Using Fedora 11 30th June 2007 02:16 PM
Tar - extract only specified files voipfc Using Fedora 7 20th March 2007 03:59 AM
Extract the audio signal from AV files hosammy Using Fedora 1 17th December 2006 03:13 PM
extract data from bin/cue files? ZiaTioN Using Fedora 2 1st November 2006 09:28 PM
Change time on lots of files, and time errors. Jeremy Ross Using Fedora 6 24th February 2005 03:43 AM


Current GMT-time: 10:36 (Wednesday, 23-04-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat