O'Reilly logo

A Practical Guide to Red Hat® Linux® 8 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]

The gzip utility compresses files, reducing disk space requirements and the time needed to transmit files between computers. When gzip compresses a file, it adds the extension .gz to the filename: Compressing the file fname creates the file fname.gz and deletes the original file. To restore fname, use the command gunzip with the argument fname.gz . The .gz extension is optional.

Arguments

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

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