Name

unzip

Synopsis

unzip [-v]
unzip -Z [-v] [-M] [-s | -m | -l | -1] [-T] archive_filename [pathname...] [-x 
pathname...]
unzip -Z [-v] [-M] [-2] [-h] [-t] [-z] archive_filename [pathname...] [-x 
pathname...]
unzip [-q[q] | -v] [-M] [-l | -t | -z | -p | -c [-a[a]]] [-b] [-C] archive_filename [pathname...] [-x pathname...]
unzip [-q[q] | -v] [-M] [-f | -u] [-a[a] | -b] [-C] [-L] [-j] [-V] [-X] [-n | 
-o] [-d directory] archive_filename [pathname...] [-x pathname...]

Lists or extracts files from a ZIP archive (such as one created by the zip command). If the name of the archive file ends in .zip, that extension need not be specified in archive_filename. If pathname arguments are given, only archive items matching those arguments are processed; otherwise, unzip lists or extracts all items in the archive. When called with no arguments, it prints a usage statement to standard output.

Options

-a

Convert text files in the archive to native format. For instance, it translates DOS linefeeds to Unix linefeeds on Mac OS X. When doubled (-aa), it attempts to convert all files, whether text or binary.

-b

Treat all files as binary, so that no text conversions are attempted.

-c

Extract file data to standard output.

-C

Use case-insensitive matching of pathname arguments to archive items.

-d

Extract files into the given directory. Otherwise, files are extracted into the current working directory.

-f

Extract files only if they already exist, and if the modification timestamps in the archive are more recent ...

Get Mac OS X Panther in a Nutshell, 2nd 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.