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

No Comments
  • 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.

Image Credits: Photo by Isis França on Unsplash.

Related Articles

No results found

Leave a Reply

avatar
  Subscribe  
Notify of
Menu
Copy link