O'Reilly logo

A Practical Guide to Linux Commands, Editors, and Shell Programming, Second Edition by Mark G. Sobell

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

gzip: Compresses or decompresses files

gzip [options] [file-list]gunzip [options] [file-list]zcat [file-list]

The gzip utility compresses files, the gunzip utility restores files compressed with gzip, and the zcat utility displays files compressed with gzip.

Arguments

The file-list is a list of the names of one or more files that are to be compressed or decompressed. If a directory appears in file-list with no ––recursive option, gzip/gunzip issues an error message and ignores the directory. With the ––recursive option, gzip/gunzip recursively compresses/decompresses files within the directory hierarchy.

If file-list is empty or if the special option (hyphen) is present, gzip reads from standard input. The ––stdout option causes gzip and ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required