Question 260
An operator receives source.tar.gz and must recover its contained files. One student proposes Run tar -xzf source.tar.gz and another proposes Run bzip2 data.txt. Which technical comparison is the soundest?
Explanation
Correct Answer
Correct distinction: Run tar -xzf source.tar.gz targets extract gzip tarball; The x and z flags extract from an archive compressed with gzip. The compared alternative instead serves compress file with bzip2.
Incorrect Answers
Incorrect mapping: Run bzip2 data.txt is used for compress file with bzip2. It does not displace Run tar -xzf source.tar.gz for the described requirement.
The mechanisms are different: The x and z flags extract from an archive compressed with gzip. By contrast, bzip2 produces a bzip2-compressed file, commonly data.txt.bz2. They are not universally interchangeable.
The third option addresses extract zip archive: unzip extracts files from the ZIP archive format. The original action remains relevant because The x and z flags extract from an archive compressed with gzip.