Hacker News new | ask | show | jobs
by polski-g 1135 days ago
`tar czf` is a lot easier to remember than `tar -I zstd cf`
3 comments

GNU tar can autodetect the compression algorithm, both for compression and decompression.

  $ tar -caf dst.tar.zst /src
  $ tar -xaf src.tar.zst
(it's fine to omit -a for decompression)
I never remember either, so I might as well look up the latter rather than the former.

  tar --create --zstd --file