How to view the contents of tar.gz file

To view the contents of tar.gz file, run

tar tf FILE.tar.gz

tar view files

-f, --file=ARCHIVE         use archive file or device ARCHIVE
-t, --list                 list the contents of an archive

Leave a Comment