Lpic 1 Linux Administrator · Free Practice Question Easy
Question 11
- 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.
