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

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

More Similar Posts

No results found.

Menu