Back to the command reference

unzip

ArchivesBeginnerReference only

Extract .zip archives

Name: unzip: extract ZIP

This command is outside what the site lets you practise (mostly distribution-specific or rarely used tools). This page describes how to use it; try it on your own Linux system.

Description

unzip lists, tests and extracts .zip archives; -d picks the destination directory.

Syntax

unzip [OPTION]... ARCHIVE

Common options

-d DIRExtract into a directory
-lList the contents
-tTest the archive
-oOverwrite without asking
-nNever overwrite existing files
-jDo not make directories; extract everything into one place
-qQuiet

Examples

  • $ unzip site.zip -d site

    Extract into site/

    Explain
  • $ unzip -l site.zip

    List what is inside

    Explain

Related