Installing gzip in Debian

#apt-get install gzip

Uncompressing a gzip File Using gunzip

To uncompress a gzip file, execute the following command:

#gunzip filename.txt.gz (where filename.txt.gz is the name of the file you wish to uncompress)

The result of this operation is a file called filename.txt. By default, gunzip will delete the filename.txt.gz file.

Compressing a File Using gzip

To compress a file using gzip, execute the following command:

#gzip filename.txt (where filename.txt is the name of the file you wish to compress)

The result of this operation is a file called filename.txt.gz. By default, gzip will delete the filename.txt file.