Find out the size of a .tar.gz archive in the terminal without unpacking

Posted by Sven on Super User See other posts from Super User or by Sven
Published on 2012-12-19T09:46:33Z Indexed on 2012/12/19 17:05 UTC
Read the original article Hit count: 215

Filed under:
|
|
|

I have a 32GB .tar.gz archive and I'd like to know the size of the files if I unpack this compressed archive. I'd like to avoid unpacking the archive first and than use e.g. du.

Is it also possible to find out the size of the contained files without unpacking the compressed archive (on a Linux and/or MacOSX system)?

For another archive I know, that it also contains .tar.gz files. Is it also possible to calculate the size of the unpacked archives that are contained within an archive? (for example by setting a level to which the "unpacking" should be simulated?)

© Super User or respective owner

Related posts about terminal

Related posts about gzip