List the contents of a tar.gz archive
list tar.gz contents without extracting | what is in this backup | view files in archive | check backup archive | tar | backuptar -tzvf /var/backups/example.com-httpdocs-2026-10-09.tar.gz | head -50Shows the first 50 entries of the archive with permissions, owner, size, date and path. This tells you whether a backup contains the expected files and how the paths are structured, which matters for restoring individual files. If the archive reads through to the end without errors, it is at least readable.
Note: To search for a specific file, use | grep wp-config instead of | head -50.
Also searched as
- list tar.gz contents without extracting
- what is in this backup
- view files in archive
- check backup archive