How To Create A ZIP File?

Windows (File Explorer): Right-click the folder/files → Send to → Compressed (zipped) folder

Windows (PowerShell): `Compress-Archive -Path “C:pathfolder*” -DestinationPath “C:patharchive.zip”`

macOS (Finder): Select files/folder → Right-click → Compress “name”

macOS (Terminal): `zip -r archive.zip /path/to/folder`

Linux (Terminal): `zip -r archive.zip /path/to/folder`

Linux (Terminal, already inside folder): `zip -r ../archive.zip .`

Linux (If `zip` is not installed): `sudo apt-get install zip`

Create a ZIP from multiple files (Terminal/macOS/Linux): `zip archive.zip file1 file2 file3`

Add files to an existing ZIP (Terminal/macOS/Linux): `zip -r archive.zip /path/to/newfiles`

Extract a ZIP (Windows): Right-click ZIP → Extract All…

Extract a ZIP (macOS): Double-click ZIP

Extract a ZIP (Terminal/macOS/Linux): `unzip archive.zip`

Suggested for You

Trending Today