XK0-004 · Question #349
Which of the following commands will result in the HOGEST compression level when using gzig to compress a file name file, txt?
The correct answer is A. Gzip -9 file. text. gzip supports compression levels -1 through -9, where -9 produces the highest compression ratio at the cost of additional CPU time.
Question
Which of the following commands will result in the HOGEST compression level when using gzig to compress a file name file, txt?
Options
- AGzip -9 file. text
- BGzip -100-file. Text
- CGzip -5 file.txt
- DGzip -fast file. text
How the community answered
(64 responses)- A91% (58)
- B2% (1)
- C3% (2)
- D5% (3)
Why each option
gzip supports compression levels -1 through -9, where -9 produces the highest compression ratio at the cost of additional CPU time.
The -9 flag specifies the maximum compression level in gzip, producing the smallest possible output file. Compression levels range from -1 (alias --fast, least compression) to -9 (alias --best, maximum compression), and no valid level above 9 exists in the gzip specification.
gzip does not support a -100 level; valid compression levels are strictly -1 through -9, making this an invalid and unrecognized option.
-5 is a mid-range compression level and produces neither the highest nor lowest compression - it does not satisfy the requirement for maximum compression.
--fast (equivalent to -1) is the lowest compression level alias in gzip, producing the fastest but least compressed output, which is the opposite of what is needed.
Concept tested: gzip compression level flags and maximum compression
Source: https://www.gnu.org/software/gzip/manual/gzip.html
Topics
Community Discussion
No community discussion yet for this question.