How to view the contents of a tar archive without extracting it using the Command Line

6 sec read

  • Knowledge Base
  • Linux
  • 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.

Last Updated On April 07, 2018

Leave a Reply

avatar
  Subscribe  
Notify of