unix

How do I list files in a tarball?

To list files in a tarball (tar.gz or tgz):

tar -tvzf

or a tar file (.tar)

tar -tvf

These commands will list the contents of the tarball without extracting any files.

Click to comment

Leave a Reply

Your email address will not be published. Required fields are marked *

To Top