Linux Commands Reference - Complete Linux Command Guide

Comprehensive Linux command reference with 150+ commands. Search, filter by category, and view detailed usage examples.

Share
Back to commands

unzip

Decompress zip format files

Syntax

unzip [OPTION]... ARCHIVE [-d DIRECTORY]

Common Options

-dSpecify extract directory
-lList archive contents
-tTest integrity
-oOverwrite existing files
-nNever overwrite
-qQuiet mode
-vVerbose output
-xExclude files
-PSpecify password

Common Examples

unzip archive.zip

Extract to current directory

unzip archive.zip -d /target/

Extract to target directory

unzip -l archive.zip

List archive contents

unzip -t archive.zip

Test archive integrity

unzip -o archive.zip

Overwrite existing files

unzip archive.zip "*.txt"

Extract only txt files

unzip -P password archive.zip

Extract with password

Related Commands

Related Tools

More Code & Dev Tools