How to view the contents of a tar archive without extracting it using the Command Line
Run the below command to see the contents of the archive without extracting.
tar -tf archive.tar
The option -t will list the file contents and -f refers to the file archive.