Linux File Compression

posted: Friday 23 October 2009 by Tavis J. Hampton in: Web Hosting Software

tar iconQuestion: I downloaded a script that I want to install on my website, but the file extension is tar.gz. What is it, and what do I do with it?

Answer: That file extension, .tar.gz means that the file has been doubly compressed with both TAR and GZIP. These are both common Unix and Linux programs that have better compression ratios than the typical Windows ZIP files. All you need to uncompress the file is the right software.

If you are running a dedicated server, just upload the file and then run the following command:

tar -zxvf filename.tar.gz

This will extract the file’s contents and preserve any directories inside.

If you are using a shared hosting account and do not have SSH access, you will need to extract the files onto your local computer and then upload them. For Windows, you can download a free and open source application called 7-Zip, which handles tar, zip, gzip, rar, and a host of others. For Mac OS X, try GUI Tar, which is also free of charge.

1 stelle2 stelle3 stelle4 stelle5 stelle (no votes)
share this 0 comments

Be the first to add a comment to this article.

Your email address is required but won't be displayed.
Leave a comment

Register to reserve your nickname accross all the blogs in the Blogo network and to upload your avatar. If you already are registered, login to user your nickname.

Yes No

Comment preview

Network Blogo