Install Zstandard on Linux

The Ubuntu users can install it directory from base repositories. Open a terminal and run the following command to install zstd on Debian based systems. Use following commands to install Zstd on CentOS, Red Hat and Fedora systems. For the Linux systems don’t include zstd packages to there repositories can compile from source. Download the latest Zstandard release from GitHub and extract on your system. Now compile it using make.

Using Zstd Compression Tool

Use zstd command followed by the filename to compress. This will create a compressed file with appending .zst extension to the original filename. You can also specify the output compressed filename with -o command line parameter. To uncompress any file compressed with zstandard. Use -d option with zstd or directory use unzstd command directory.

Zstandard Comparison with Other Tools

Here I did a comparison between the zip, tar, and zstd archiving tools and found that zstd is faster and than others. I used a 508 Mb backup file and here are results and got the following results.

Using zstd:

The zstd takes 5 seconds to compress and created a 119 Mb compressed file.

Using tar:

For the same file, tar takes 23 seconds to compress and created a 150 Mb compressed file.

Using zip:

And zip takes 22 seconds to compress and created a 150 Mb compressed file. So it looks tar and zip take approx same time here.

As per the above comparison, zstd is much faster than other compression tools and provider higher compression of data. So we can assume that zstd may replace the current compthe ression tools in future.

Zstandard   A faster data compression tool   TecAdmin - 97Zstandard   A faster data compression tool   TecAdmin - 66Zstandard   A faster data compression tool   TecAdmin - 20