Beginner Package: unzip

unzip

Extract files from a .zip archive.

Syntax

unzip [options] archive.zip

Description

unzip extracts the contents of a .zip archive into the current directory (or a chosen one), and can also just list an archive's contents without extracting anything.

Examples

unzip archive.zip
Extract an archive into the current directory
unzip archive.zip -d /tmp/extracted
Extract into a specific directory
unzip -l archive.zip
List the contents of an archive without extracting

Applies to

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