PrepAway - Latest Free Exam Questions & Answers

Which command will show you the contents of a gzip compressed tar archive?

Which command will show you the contents of a gzip compressed tar archive?

PrepAway - Latest Free Exam Questions & Answers

A.
gzip archive.tgz | tar xvf –

B.
tar ztf archive.tgz

C.
gzip -d archive.tgz | tar tvf –

D.
tar cf archive.tgz

Explanation:
A) gzip would inplace compress ; using pipe would not make sense
C) gzip -d would inplace uncompress .gz; pipe also would not make sense here
D) tar cf would create an archive, not list the contents.

One Comment on “Which command will show you the contents of a gzip compressed tar archive?


Leave a Reply