[Linux] How to list the content of a TAR / TAR.gz / TAR.bz2 archive?

Use the following commands:

Listing the content of a TAR archive.

# tar -tvf arhiva.tar

Listing the content of a TAR.gz archive.

# tar -ztvf file.tar.gz

Listing the content of a TAR.bz2 archive.

# tar -jtvf file.tar.bz2

ADD A COMMENT: