LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
::Linux Guide
::Tips
::Connections
::Alternatives
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: New Users :: Beginners Linux Guide :: Uncompressing tgz files

You'll often find that if you download a file, either the source code, or the executable itself (The Binary), it's followed by a .tgz suffix. This means that the file has first been tarred (The t part of the suffix), which means that all the files for this particular download were put into one big file. This is akin to taking a few episodes of startrek on separate tapes, and copying them onto one cassette. All the originals are there, you just need to fast forward or rewind the tape to get to the right place for the one you want. The ironic thing, is that the program tar that was used to create the archive can actually spool through a backup cassette too ( And you think all my analogies are meaningless ;).

The other part of the suffix is gz. This means that the tar archive was compressed using gunzip. The nice thing is that for uncompressing the original files, you dont have to run gunzip first, and then tar. Both can be executed with a simple command.

To uncompress bob.tgz, tar zxvf bob.tgz - If a folder was compressed originally, then the original folder will be created. If not, then the files will be placed in the current directory.

If you just recieve a tar file for some reason, you can decompress that by using tar xvf bob.tar instead.




About the author, Owen Kelly.

USERS COMMENTS


                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell