How to Use: zstandard

Install Link to heading

sudo pacman -S zstd

Prerequisites Link to heading

  1. Create a playground:
mkdir archive-test
cd archive-test
  1. Create some content:
mkdir content
echo content1 >> content/file1
echo content2 >> content/file2
echo content3 >> content/file3
  1. Back up your content:
tar -cf archive1.tar content

Compress Link to heading

Create an archive, default compression -3:

zstd archive1.tar

Or specity a compression level:

zstd -9 archive1.tar

Extract Link to heading

unzstd archive1.tar.zst

Cleanup Link to heading

Don’t forget to remove your test files after playing with this:

cd ..
rm -rf archive-test