Name
unzip
Synopsis
unzip [options
[modifiers
]]zipfile
... [extraction options
] unzip -Z [zipinfo options
]zipfile
...
unzip prints information
about or extracts files from ZIP format archives. The
zipfile is a ZIP archive whose filename ends
in .zip
. The .zip
can be omitted from the command
line; unzip supplies it.
zipfile may also be a shell-style wildcard
pattern (which should be quoted); all matching files in the ZIP
archive will be acted upon. The behavior of
options is affected by the various
modifiers.
In the second form, the options are taken to be zipinfo options, and unzip performs like that command. See zipinfo for more information.
Options may also be included in the UNZIP environment variable, to set a default behavior. Options on the command line can override settings in $UNZIP by preceding them with an extra minus.
When extracting files, if a file exists already, unzip prompts for an action. You may to choose to overwrite or skip the existing file, overwrite or skip all files, or rename the current file.
Notes
unzip and its companion program zip are part of the InfoZIP project. InfoZIP is an open collaborative compressed archive format, and implementations exist for Unix, Amiga, Atari, VMS and OpenVMS, MS-DOS, Macintosh, Minix, OS/2, Windows NT, and many others. It is the only similar format you can expect to port to all of these systems without difficulty. The web home page is http://www.info-zip.org/.
Unlike most Unix tar implementations, zip removes leading slashes when ...
Get Unix in a Nutshell, 4th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.