LPIC-1 Exam 101 (Linux Administrator) — Question 34

Which of the following commands displays the contents of a gzip compressed tar archive?

Answer options

Correct answer: B

Explanation

The correct command is 'tar ztf archive.tgz' because it directly lists the contents of the gzip compressed tar file without extracting it. Options A and C attempt to extract the contents instead of just displaying them, and option D creates a tar archive rather than listing its contents.