Computing.Net > Forums > Linux > decompressing files

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

decompressing files

Reply to Message Icon

Name: Nate
Date: October 31, 2002 at 20:11:29 Pacific
OS: Redhat 7
CPU/Ram: P2 333 228 Meg Ram
Comment:

Well, I'm new to Linux, and I need some help understanding how to decompress files. for example if i have a file called *.tar.gz, what do i do.....i'm so used to winzip, i'm totally lost.



Sponsored Link
Ads by Google

Response Number 1
Name: Danny Larouche
Date: October 31, 2002 at 20:53:55 Pacific
Reply:

tar -xvzf file.tar.gz


0

Response Number 2
Name: Sean Miller
Date: November 1, 2002 at 07:19:01 Pacific
Reply:

I didn't know the "z" switch within tar existed, so therefore tend to work on the general principle below...

Starting at the right, look at the extension... .gz means that the file is a gzip file so the first thing we need to do is uncompress it...

gunzip file.tar.gz

Now if we look at the file we have file.tar ... tar is basically a way of creating a single file containing a heirarchical data structure. It is not a compression method. Therefore to restore the files, you need to untar it.

tar xvf file.tar

Other UNIX compressed files may have the extension .Z ... to uncompress simply type "uncompress file.Z"

Sean


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


Redhat Update Icon Internet Sharing w/Mandra...



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Linux Forum Home


Sponsored links

Ads by Google


Results for: decompressing files

Using Linux www.computing.net/answers/linux/using-linux/28351.html

No such file in Redhat 9 www.computing.net/answers/linux/no-such-file-in-redhat-9/20455.html

How do I use tar.gz and .bin files? www.computing.net/answers/linux/how-do-i-use-targz-and-bin-files/19660.html