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

<pre lang="bash">
tar -tvf file.tar