Compression / Uncompression capability should be built in to your Linux. Here is how to handle a file with a .tar.gz extension:
[INDENT]With files that have the .tgz, tar.gz, or tar.z extension use this command:
tar -zxvf [filename with all extensions]
example: tar -zxvf filename.tar.gz
This will extract the file for you in the directory you are currently in. Using the above command will save you from having to redirect the output for gzip or anything else (because the z option automatically decompresses the file for you), otherwise without the z argument, you would have to do a command like this:[/INDENT]
Other ways to decompress files are to use:
[INDENT]gunzip [filename with .gz extension]
[RIGHT][I]- example: [COLOR=blue]gunzip filename.gz[/I][/COLOR][/RIGHT]
zcat [filename with .gz extension]
[RIGHT][I]- example: [COLOR=#000080]zcat [/COLOR][/I][COLOR=blue][I]filename.gz[/I][/COLOR][/RIGHT]
uncompress [yourfilename with .z extension]
[RIGHT][I]- example: [/I][COLOR=#0000ff][I]uncompress filename.z[/I][/COLOR][/RIGHT]
[/INDENT]
Remember to check your file permissions and ownership if you are uncompressiong scripts, especially cgi/perl.