# GZIP Command in Unix

#### Prev     Next

Gzip command in UNIX :

• This command is used to compress the files in order to reduce the file space. Usually when we compress the text files, it will reduce the file space to almost half of the original size. If the command “gzip” is successful then the file name will end with “.gz”. The “.gz” indicates that the file is compressed.
• Before using the gzip, the size of the file was 4499 bytes.

• After the compressing the file, see the below file size on how much it reduced.

Example for Gzip command in UNIX:

gzip bigfile.txt

Note:

We cannot open the compressed files. If we want to open the compressed files, then we need to un-compress the file and open it.

# Other UNIX Commands:

Below are the list of basic UNIX commands used in UNIX operation system.