December 2018
Beginner
320 pages
8h 57m
English
The gzip utility compresses files faster than any other utility.
The following table lists the gzip compression command and its description with some examples:
|
Command |
Description |
|
gzip * |
Compresses all files in the current directory and each compressed file is renamed with the .gz extension |
|
gzip -r backup/ |
Compresses all files in the backup/ directory and subdirectories |
|
gunzip myfile.gz or gzip -d myfile.gz |
Decompresses myfile.gz to myfile |
The examples of the gzip and gunzip commands are shown in the following screenshot:

Read now
Unlock full access