Here’s how to view the contents of a tar file without extracting the files.

tar -tvf file.tar