101-400 Exam QuestionsBrowse all questions from this exam

101-400 Exam - Question 58


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

Show Answer
Correct Answer: B

To display the contents of a gzip compressed tar archive, use the `tar` command with the options `ztf`. The `z` option tells `tar` to filter the archive through `gzip`, `t` is for listing the contents, and `f` specifies the filename of the archive. Therefore, `tar ztf archive.tgz` is the correct command.

Discussion

1 comment
Sign in to comment
DuboisNicolasDuclairOption: B
Oct 21, 2023

The command that displays the contents of a gzip compressed tar archive is: B. `tar ztf archive.tgz` This command uses `tar` with the `z` option to decompress (gunzip) the archive and then list the contents of the tar archive using the `t` option.