Lpic 1 Linux Administrator · Free Practice Question Easy

Question 11

Given a gzip-compressed tar archive named texts.tgz that contains the files a.txt and b.txt, which of the following files will be present in the current directory after executing the command gunzip texts.tgz?
  • A a.txt, b.txt, and texts.tgz
  • B

    texts.tar

  • C a.txt.gz and b.txt.gz
  • D a.txt and b.txt
Reveal correct answer

Correct answer: B

A. This choice is incorrect because the gunzip command only decompresses the gzip file and does not extract the contents of the tar archive. Therefore, after running the command, the files a.txt and b.txt will not be present in the current directory, and the original gzip file texts.tgz will be decompressed to texts.tar.

B. This choice is correct because the gunzip command decompresses the gzip file, resulting in the tar file texts.tar. The command does not extract the contents of the tar archive, so the files a.txt and b.txt will not be present in the current directory.

C. This choice is incorrect because the gunzip command decompresses the gzip file, but it does not individually compress the files within the tar archive. Therefore, after running the command, the files a.txt.gz and b.txt.gz will not be present in the current directory.

D. This choice is incorrect because the gunzip command decompresses the gzip file, but it does not extract the contents of the tar archive. Therefore, after running the command, the files a.txt and b.txt will not be present in the current directory.

Discussion

Think the marked answer is wrong, or have a better explanation? Share it below — comments appear after review.

You must be logged in to post a comment.

Preparing For

Your Certification?

255+ certifications
Detailed explanations
Free PDF samples

Has All The Questions You Need