nerdexam
CompTIA

XK0-005 · Question #848

A systems administrator is compressing old log files in order to save space. Which of the following commands will allow the administrator to save the most space?

The correct answer is B. xz. Among the common Linux compression utilities, xz provides the highest compression ratio, leading to the most significant space savings for old log files.

System Management

Question

A systems administrator is compressing old log files in order to save space. Which of the following commands will allow the administrator to save the most space?

Options

  • Abzip2
  • Bxz
  • Ctar
  • Dgzip

How the community answered

(26 responses)
  • A
    4% (1)
  • B
    88% (23)
  • C
    8% (2)

Why each option

Among the common Linux compression utilities, `xz` provides the highest compression ratio, leading to the most significant space savings for old log files.

Abzip2

`bzip2` offers better compression than `gzip` but is generally less efficient in terms of compression ratio compared to `xz`.

BxzCorrect

`xz` utilizes the LZMA2 compression algorithm, which is known for achieving superior compression ratios compared to `gzip` (LZ77) and `bzip2` (Burrows-Wheeler). While it may take longer to compress and decompress, its ability to create smaller archive sizes makes it ideal for maximizing space savings.

Ctar

`tar` is an archiving utility used to combine multiple files into a single archive, but it does not perform compression itself.

Dgzip

`gzip` is a widely used compression utility, but it typically provides the lowest compression ratio among the three mentioned compression tools (`gzip`, `bzip2`, `xz`).

Concept tested: Linux compression utilities efficiency

Source: https://man7.org/linux/man-pages/man1/xz.1.html

Topics

#File compression#Linux utilities#Storage optimization

Community Discussion

No community discussion yet for this question.

Full XK0-005 Practice