How to Use: zstandard

Install

sudo pacman -S zstd

Prerequisites

  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

Create an archive, default compression -3:

zstd archive1.tar

Or specity a compression level:

zstd -9 archive1.tar

Expand

Extracts everything with:

unzstd archive1.tar.zst

Cleanup

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

cd ..
rm -rf archive-test