Beginner Package: zip

zip

Create a .zip archive.

Syntax

zip [options] archive.zip file...

Description

zip bundles and compresses one or more files into a single .zip archive โ€” the most cross-platform-friendly archive format, useful when the recipient may not be on Linux.

Examples

zip archive.zip file1.txt file2.txt
Create a zip archive from specific files
zip -r archive.zip project/
Recursively zip an entire directory
zip -e secret.zip file.txt
Create a password-protected archive

Applies to

Ubuntu Debian Linux Mint RHEL CentOS / Rocky / AlmaLinux Fedora Arch Linux openSUSE Alpine Linux