Unzipping files is an important part of downloading Linux files from the Internet. In Linux a majority of the files that are downloaded are in tgz format (a gnu zipped tar file), although there are other common extensions, as shown here:
First you upload the .tgz, .tar .tar.gz or .tar.z file to the directory on your web server designated for public Internet use. Typically this directory is named 'www', 'htdocs' or 'web'. The file should be uploaded in BINARY format using any FTP program.
Always start from the root directory (/).
With files that have the .tgz, tar.gz, or tar.z extension use this command:
Not all Unix systems extract archive files with all the necessary permissions intact, therefore you should set the proper permissions on the program as required.
Using Telnet type the following at the prompt:
You can also use most FTP clients to change the file attributes. 777 (RWX-RWX-RWX) and 755 (RWX-RX-RX) are the most widely used attributes for files relating to running most CGI scripts on a server.