Check the total content size of a tar gz file

Ztyx picture Ztyx · Apr 26, 2010 · Viewed 84.3k times · Source

How can I extract the size of the total uncompressed file data in a .tar.gz file from command line?

Answer

Matthew Mott picture Matthew Mott · Apr 30, 2010

If you want to do this from the command-line, you could try the -l option to gzip:

$ gzip -l compressed.tar.gz
     compressed        uncompressed  ratio uncompressed_name
            132               10240  99.1% compressed.tar