 |
 |
 |
 |
| Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum. |

29th October 2004, 04:02 AM
|
|
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
|

29th October 2004, 04:44 AM
|
 |
Registered User
|
|
Join Date: Aug 2004
Location: Stokes County, North Carolina
Age: 54
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
|

29th October 2004, 04:50 AM
|
|
Registered User
|
|
Join Date: Jul 2004
Posts: 166

|
|
|
many thanks
|

29th October 2004, 09:53 PM
|
|
Registered User
|
|
Join Date: Mar 2004
Location: Minnesota, USA
Age: 27
Posts: 7,909

|
|
Bash scripts may help you. I think you could do
Code:
for FILE in *.gz; do tar -xzvf $FILE done
|

30th October 2004, 08:32 PM
|
|
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
|

30th October 2004, 11:06 PM
|
|
Registered User
|
|
Join Date: Mar 2004
Location: Minnesota, USA
Age: 27
Posts: 7,909

|
|
|
For extracting php5.tar.gz, try it without the /php.
ls shows archive files like .tar.gz and .rpm in red.
|

1st November 2004, 01:01 PM
|
|
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
|

1st November 2004, 10:49 PM
|
|
Registered User
|
|
Join Date: Mar 2004
Location: Minnesota, USA
Age: 27
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.
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
Current GMT-time: 08:28 (Sunday, 19-05-2013)
|
|
 |
 |
 |
 |
|
|