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.
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)- A4% (1)
- B88% (23)
- C8% (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.
`bzip2` offers better compression than `gzip` but is generally less efficient in terms of compression ratio compared to `xz`.
`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.
`tar` is an archiving utility used to combine multiple files into a single archive, but it does not perform compression itself.
`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
Community Discussion
No community discussion yet for this question.