nerdexam
CompTIA

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.

System Management

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)
  • A
    91% (58)
  • B
    2% (1)
  • C
    3% (2)
  • D
    5% (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.

AGzip -9 file. textCorrect

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.

BGzip -100-file. Text

gzip does not support a -100 level; valid compression levels are strictly -1 through -9, making this an invalid and unrecognized option.

CGzip -5 file.txt

-5 is a mid-range compression level and produces neither the highest nor lowest compression - it does not satisfy the requirement for maximum compression.

DGzip -fast file. text

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

#gzip#compression levels#file archiving#command flags

Community Discussion

No community discussion yet for this question.

Full XK0-004 Practice