Ny way to check the compression ratio of a xz compressed file

archivecompressiontarxz

In windows by default one can see the compression ratio of zip files and after installing WinRAR it also supports this feature but currently I am using a linux and have compressed a file using lzma2 and xz as the container but how can I check the compression ratio without comparing the original file size and the compressed file size? Is it even possible?

Best Answer

Yes, just type in a shell terminal

xz -l *.xz
Related Question