# Tarball

**What Is a Tarball File?**

A **tarball file** is a type of archive commonly used on Unix-based systems such as **Linux** and **macOS**. These files typically carry extensions like `.tar`, `.tar.gz`, or `.tgz`.

***

## 📦 Purpose and Usage

Tarballs are created using the `tar` (Tape Archive) utility, which packages multiple files and directories into a single file. This simplifies:

* File distribution
* Backup operations
* Transfers between systems

***

## 🧰 Common Extensions

* `.tar` — A basic archive without compression
* `.tar.gz` or `.tgz` — A tar archive that has been compressed using **gzip**

These formats are frequently used for distributing software packages, source code, configuration bundles, or backup snapshots in a compact and portable form.

***

## 🛠️ Example Usage (Linux/macOS)

To **create** a tarball:

```bash
tar -czvf archive-name.tar.gz /path/to/directory
```

To **extract** a tarball:

```bash
tar -xzvf archive-name.tar.gz
```

***

Tarballs are widely used in open-source environments and DevOps workflows, and are considered a standard for packaging files in Unix-like ecosystems.
