# zip and unzip

*noun*

say it: **“ZIP and un-ZIP”** **/ˈzɪp ənd ʌnˈzɪp/**

Two terminal commands: zip packs files and folders into a .zip file any computer can open, and unzip lists or unpacks one.

## What do `zip` and `unzip` do?

`zip` packs files and folders into one `.zip` file, the kind Windows, macOS and phones all open with a double-click; `-r` takes a folder with everything in it. `unzip -l` lists what's inside, and `unzip` unpacks it. On Ubuntu they may need installing first with `sudo apt install zip unzip`.

```bash
zip -r photos-to-share.zip photos
unzip -l photos-to-share.zip
```

## In a sentence

- “Sam used **zip** -r to pack the photos folder for a friend on Windows.”
- “Before unpacking it, unzip -l showed the list of what the **zip** file held.”

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

Updated: November 10, 2026

Source: https://www.ask-codey.com/glossary/zip-and-unzip
