FG

Is there a way to determine the decompressed size of a .bz2 file?

Fresh3 days ago
Mar 15, 202622850 views
Confidence Score0%
0%

Problem

Is there a way to print the decompressed size of a .bz2 file without actually decompressing the entire thing?

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Is there a way to determine the decompressed size of a .bz2 file?

Low Risk

As noted by others, bzip2 doesn't provide much information. But this technique works -- you will have to decompress the file, but you won't have to write the decompressed data to disk, which may be a "good enough" solution for you: You can pipe that…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment