How To List Files Within tgz (tar.gz) Archives
Saturday, April 26th, 2008
This may not be very obvious but this is the command line to list files within a tar.gz archive on the fly:
1 | tar -tzf file.tar.gz |
-t: lists files
-f: instructs tar to deal with the following filename (file.tar.gz)
-z: informs tar that the it's dealing with a gzip file (-j if it's bzip2)

(-2 rating, 2 votes)
beer planet is Artem Russakovskii's blog. Artem is a software engineer at