I have a file.tar.bz2 that's about 50GB and would like to extract it however I don't know how much space I will need. Is there a command to print the compression ratio of the tar.bz2 file?
Tell me more
×
Super User is a question and answer site for
computer enthusiasts and power users. It's 100% free, no registration required.
migrated from stackoverflow.com Nov 3 '12 at 0:48
|
I don't know of a command specifically for printing out compression ratios, but
should show you the number of bytes taken up by the uncompressed tar file. Some of that space is taken up by the tar metadata, but it should give you a ballpark estimate. |
|||
|
|
Will list all the files in the tar file, their respective sizes, and other information. You could always pipe the output through an awk script to add up the numbers...
|
|||
|