# tar

say it: **“TAR”** **/ˈtɑr/**

Bundles files into an archive, often compressed.

## What does `tar` do?

`tar` bundles files into one archive, often compressed (`.tar.gz`). `-c` creates, `-x` extracts, `-z` compresses.

```bash
tar -czf photos.tar.gz photos/
tar -xzf photos.tar.gz
```

Level: Journeyman · [More Unix terms at this level](https://www.ask-codey.com/glossary?category=unix&level=3)

Updated: November 17, 2026

Source: https://www.ask-codey.com/glossary/tar
