Linux

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

Written by Ian Carnaghan · 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
Written by Ian Carnaghan
I am a software developer and online educator who likes to keep up with all the latest in technology. I also manage cloud infrastructure, continuous monitoring, DevOps processes, security, and continuous integration and deployment. Profile

Leave a Reply

avatar
  Subscribe  
Notify of