Linux Commands Helper
💬 Your AI-powered Linux assistant
unzip Command - Extract Files from ZIP Archives
The unzip command is used to extract files from ZIP archives. It is commonly used to decompress and access the contents of .zip files on Linux and other platforms.
Syntax
unzip [options] archive.zip
Examples
unzip files.zip
Extract all files from files.zip into the current directory.
unzip -d /tmp/files files.zip
Extract files from files.zip into the /tmp/files directory.
unzip files.zip file1.txt
Extract only file1.txt from files.zip.
Notes
- unzip is part of the
unzippackage on most Linux distributions. - Use
zipto create ZIP archives. - Supports extracting password-protected ZIP files (prompt for password).
