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 ...

Get A Practical Guide to Red Hat® Linux® 8 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.