gzip is a commonly used compression format in GNU/Linux platforms. Utilities such as
zcat are available to handle gzip compression file types.
gzip can be applied on a file only. It cannot archive directories and multiple files. Hence we use a
tar archive and compress it with
gzip. When multiple files are given as input it will produce several individually compressed (
.gz) files. Let's see how to operate with
In order to compress a file with
gzip use the following command:
$ gzip filename $ ls filename.gz
Then it will remove the file and produce a compressed file called
gzip compressed file as follows:
$ gunzip filename.gz
It will remove
filename.gz and ...