In this video, you'll learn how to work with compression.
So a wide range of compression solutions is available for Linux.
We already talked about it while we were covering the tar utility.
And these tools can be used independently or as an argument to the tar command.
So we have the gzip utility, corresponding to the minus z option in tar, which is still
the most common compression utility.
bzip2 or minus j is an alternative utility that compresses a bit better, as we have seen.
Many people think it's a nice compromise between performance and compression ratio.
And if you want the best possible compression ratio, you better use xz minus uppercase J
in tar.
It's a much better compression ratio, but it's also about twice as slow as bzip2.
So in the end, it all depends on the amount of time that you want to spend on compression
and the amount of disk space that you want to save.
Here are your options.