gzip command - Compress GZIP format files

You can use the gzip command to compress the file in GZIP format.

gzip FileName

This is a sample to compress a file with gipz.

The extension of the compressed file name will be ".gz".

gzip foo

Use the gunzip command to unzip the GZIP format file.

The tar command can also be compressed in GZIP format, so it is more common to archive and compress the directory using the tar command option. is.

tar cfz project.tar.gz project

Associated Information