Easy Tutorial
❮ Linux Comm Killall Linux Comm Bind ❯

Linux unzip Command

Linux Command Manual

The Linux unzip command is used to extract zip files.

unzip is a program for extracting compressed files in .zip format.

Syntax

unzip [-cflptuvz][-agCjLMnoqsVX][-P <password>][.zip file][files][-d <directory>][-x <files>] or unzip [-Z]

Parameters:

Examples

View the files contained in the compressed file:

# unzip -l abc.zip
Archive: abc.zip
 Length   Date  Time  Name
--------  ----  ----  ----
  94618 05-21-10 20:44  a11.jpg
  202001 05-21-10 20:44  a22.jpg
    16 05-22-10 15:01  11.txt
  46468 05-23-10 10:30  w456.JPG
  140085 03-14-10 21:49  my.asp
--------          -------
  483188          5 files

The -v parameter is used to view the directory information of the compressed file without extracting it.

# unzip -v abc.zip
Archive: abc.zip
Length  Method  Size Ratio  Date  Time  CRC-32  Name
-------- ------ ------- -----  ----  ----  ------  ----
  94618 Defl:N  93353  1% 05-21-10 20:44 9e661437 a11.jpg
 202001 Defl:N  201833  0% 05-21-10 20:44 1da462eb a22.jpg
   16 Stored    16  0% 05-22-10 15:01 ae8a9910 ? +-|¥+-? (11).txt
  46468 Defl:N  39997 14% 05-23-10 10:30 962861f2 w456.JPG
 140085 Defl:N  36765 74% 03-14-10 21:49 836fcc3f my.asp
--------     ------- ---              -------
 483188      371964 23%              5 files

Linux Command Manual

❮ Linux Comm Killall Linux Comm Bind ❯