NAME
gzip - compress files

SYNOPSIS
gzip [OPTION] FILE...

DESCRIPTION
gzip reduces the size of named files using the GZIP algorithm. A new file is created for each FILE with the extension .gz added.

OPTIONS
-d
Apply decompression to the named files.

EXAMPLES
To package a set of files in a directory into a file with .gz extension using the gzip command:
gzip doc1.txt doc2.txt doc3.txt
 
To decompress the file, use the -d option:
gzip -d doc3.txt.gz
 
To decompress all the files with .gz extension:
gzip -d *.gz

NOTES
The compressed file is only generated if it does not exist or the source file is newer.

SEE ALSO
gunzip
tar
zip
unzip


  • No labels