To view a detailed table of contents for archive called my-data.tar.gz, use the following syntax:
tar -ztvf my-data.tar.gz tar -tvf my-data.tar.gz tar -tvf my-data.tar.gz 'search-patter'