Breadcrumbs 
Learning >> Documentation >> Compression
 
Recent News
We're No 1!
We've reached the top! (Of Google!)
[ more ]
Firefox 3 Download Day
Firefox 3 has been officially released and is looking to set a world record for the most downloaded piece of software in 24hrs.
[ more ]
SSL Renewed
SSL cert has been renewed by the admin team.
[ more ]
Dealing with compressed files
Dealing with compressed files

Files are often compressed to save space. To use the files, you'll have to know how to extract them. First we look at the file command. This can tell you how a certain file is compressed.

$ file [filename]

The file command looks at a file and tells you what it is (text, mp3, zip, etc.)

$ file documentation.php
documentation.php: ASCII English text

$ file testfile.tar
testfile.tar: GNU tar archive

On windows the most common type of compressed file is .zip . This both archives (makes all the files into one) and compresses (tries to make that one file smaller). Generally on UNIX systems the archiving and compressing are done separately. We'll look first at the archiving tool.