How to compress the whole directory using xz and tar

See all UNIX related articles/faq

The xz command on Linux, macOS, *BSD, and Unix-like systems offer excellent compression. It will outperform zip and other formats when we use xz with tar for maximum reduction in size. For instance, I compressed a directory having 37M size using both xz and zip. The zip file size was 31M, while the xz file was 16M after compression. Pretty impressive, isn’t it? Let us see how to compress the whole directory using xz and tar.

Love this? sudo share_on: TwitterFacebookLinkedInWhatsappReddit

The post How to compress the whole directory using xz and tar appeared first on nixCraft.