tar tvf backup.tar.gz

Category: Backup & Restore

tar tvf backup.tar.gz

List archive contents with details

Shows every file inside backup.tar.gz with permissions, owner, size and timestamp, without extracting anything. Handy before restoring, especially to spot absolute paths or unexpected top-level directories. Related: tar xzf to actually unpack.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.