How do i check statistics on compression tools?
-
Compression utilities can display statistics, a feature that's not often used, but can be useful when doing file network transfers or when attaching files to emails.
gzip.
$ gzip -l gerrit-2.13.2.war.gz compressed uncompressed ratio uncompressed_name 51014935 51110416 0.2% gerrit-2.13.2.war
xz.
$ xz -l node-v4.4.4-linux-x64.tar.xz Strms Blocks Compressed Uncompressed Ratio Check Filename 1 1 8,095.6 KiB 39.1 MiB 0.202 CRC64 node-v4.4.4-linux-x64.tar.xz
unzip.
$ unzip -Zt awscli-bundle.zip 17 files, 8423562 bytes uncompressed, 8391121 bytes compressed: 0.4%
bzip2.
$ bzip2 -v python-2.7.13.tar python-2.7.13.tar: 4.144:1, 1.930 bits/byte, 75.87% saved, 135608320 in, 32721304 out.
© Lightnetics 2024