gzip

Compress or expand files gzip foo.txt gunzip foo.txt zcat, gunzip, zless.

Options #

Option Long Option Description
-c –stdout Write output to standard output
–to-stdout and keep the original files
-d –decompress Decompress.
–uncompress This causes gzip to act like gunzip
-f –force Force compression even if already compressed
-h –help Display usage information
-l –list List compression statistics for each file
-r –recursive If argument(s) is a directory, recursively compress files
-t –test Test the integrity of a compressed file
-v –verbose Display verbose messages while compressing
-number Set the amount of compression.
number is an integer 1-9 (fastest/worst -> slowest/best).
Default value is 6.
–fast and –best are 1 and 9 respectively