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
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