Comments on: Learn XZ (Lossless Data Compression Tool) in Linux with Examples https://www.tecmint.com/xz-command-examples-in-linux/ Tecmint - Linux Howtos, Tutorials, Guides, News, Tips and Tricks. Fri, 14 Jul 2023 05:53:25 +0000 hourly 1 By: Adam W. https://www.tecmint.com/xz-command-examples-in-linux/comment-page-1/#comment-1312791 Mon, 20 Jan 2020 10:27:19 +0000 https://www.tecmint.com/?p=28620#comment-1312791 Hi,

It can be added that xz has a lot of useful options, which we can adjust the compression to the capabilities of the equipment (on which we work) while maintaining the maximum possible efficiency and speed of compression.

For example, you can set the compression level, the amount of maximum RAM consumption, and the number of processor threads that can be used. An example of such a command is below:

# xz -k -8e -M 7000MB -T 8 -v files-or-dirs-to-compress.tar

where:

  • -k – compress
  • -8e – compression level
  • -M – RAM usage limit (in GB)
  • -T – number of processor threads used

More info about the possibilities of optimizing the use of xz in man xz.

Regards

Adam W.

]]>