Basics
Create an archive
tar cf <name>.tar [objs]
Extract an archive
tar xf <name>.tar
Activate verbose mode
tar v [cmd]
Use compression
Create a gzip archive
tar czf <name>.tgz [objs]
Extract a gzip archive
tar xzf <name>.tgz
Create an zstd archive
See zsdt
tar --zstd cf <name>.tar.zst <files>
Extract a zstd archive
tar --zstd xf <name>.tar.zst
Pipe with other programs
Extract on flight an archive with http
wget -c http[s]://host/path/to/file.tgz -O - | tar -xz
GPG
Encrypt tar with GPG
tar czpvf - <name> | gpg -c [--batch --yes --passphrase <password>] --cipher-algo aes256 -o <name>.gz.gpg
Decrypt tar with GPG
gpg -d [--batch --yes --passphrase azerty12] <tar file> | tar xzvf -