How to Unzip tar.gz Files in Redhat 7.2
I'm having problems unzipping tar.gz files.
I've looked it up on the internet, but whatever I try to do, I keep getting errors when I try to unzip them. I don't know what to do anymore. I'd appreciate it if someone could help me out. Thanks in advance. |
What errors are you getting. The command line syntax is:
tar xzvf filename.tar.gz |
This is what is displayed after I try and extract it:
gzip: stdin: not in gzip format tar: Child returned status 1 tar: Error exit delayed from previous errors |
type,
file <filename> And see what type that says. It looks at the contents not the extension. |
'file foo.tar.gz'
That should tell you what it really is and you'll be able to apply the correct commands. If that doesn't work, try changing the extension - some apps are picky about that. -- Oops. Teval got there faster. ;) |
Thanks for the suggestions, guys.
One more thing, where do the files that get extracted go once they're exctracted using the aforementioned syntax? |
A new directory is made, inside the current one, or they are extracted straight into the current directory.
|
Try 'tar tzvf foo.tar.gz' and it'll show the file and directory structure that will be extracted.
|
Quote:
|
All times are GMT -5. The time now is 03:01 AM. |