O'Reilly logo

Mac OS X Panther in a Nutshell, 2nd Edition by Jason McIntosh, Chuck Toporek, Chris Stone

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required