---
name: "tar"
section: "1"
platform: "linux"
option: ["-z", "--gzip", "--gunzip", "--ungzip"]
url: "https://carta.tech/man/tar#option-z"
---

# tar(1) `-z`, `--gzip`, `--gunzip`, `--ungzip`

From [tar(1)](/man/tar/1.md).

- **-z**, **--gzip**, **--gunzip**, **--ungzip**

  Filter the archive through [**gzip**(1)](/man/gzip/1.md).

`-z`, `--gunzip`, `--gzip` alone on FreeBSD.

`-z` alone on OpenBSD.
