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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access