List tar/tar.gz/tar.bz2 Contents – List all files in archive.tar - Comment Page: 1
This is quick tip, howto list contents of tar, tar.gz and tar.bz2 files without unpacking file.
This is very useful on server environment where any graphical tool is not available. This method is also very useful when tar, tar.gz or tar.bz2 packages are really big, something like hundreds of megabytes or gigabytes (for example backups).
Overall, the key is the tar command with -t option.
List the Contents of tar File
List tar contents short command
tar -tvf archive.tar
List tar contents long command
tar --list --verbose --file=archive.tar
Parameters:
-t, --list - list the contents of an archive
-v, --verbose - verbosely list files processed
-f,...
This guide rulez!
Thanks a lot!