ZIP(1) General Commands Manual ZIP(1)
NAME
zip - package and compress (archive) files
SYNOPSIS
zip [-aABcdDeEfFghjklLmoqrRSTuvVwXyz!@$] [--longoption ...] [-b path]
[-n suffixes] [-t date] [-tt date] [zipfile [file ...]] [‐xi list]
zipcloak (see separate man page)
zipnote (see separate man page)
zipsplit (see separate man page)
Note: Command line processing in zip has been changed to support long
options and handle all options and arguments more consistently. Some
old command lines that depend on command line inconsistencies may no
longer work.
DESCRIPTION
zip is a compression and file packaging utility for Unix, VMS, MSDOS,
OS/2, Windows 9x/NT/XP, Minix, Atari, Macintosh, Amiga, and Acorn RISC
OS. It is analogous to a combination of the Unix commands tar(1) and
compress(1) and is compatible with PKZIP (Phil Katz’s ZIP for MSDOS sys‐
tems).
A companion program (unzip(1)) unpacks zip archives. The zip and un‐
zip(1) programs can work with archives produced by PKZIP (supporting
most PKZIP features up to PKZIP version 4.6), and PKZIP and PKUNZIP can
work with archives produced by zip (with some exceptions, notably
streamed archives, but recent changes in the zip file standard may fa‐
cilitate better compatibility). zip version 3.0 is compatible with
PKZIP 2.04 and also supports the Zip64 extensions of PKZIP 4.5 which al‐
low archives as well as files to exceed the previous 2 GB limit (4 GB in
some cases). zip also now supports bzip2 compression if the bzip2 li‐
brary is included when zip is compiled. Note that PKUNZIP 1.10 cannot
extract files produced by PKZIP 2.04 or zip 3.0. You must use PKUNZIP
2.04g or unzip 5.0p1 (or later versions) to extract them.
See the EXAMPLES section at the bottom of this page for examples of some
typical uses of zip.
Large Archives and Zip64. zip automatically uses the Zip64 extensions
when files larger than 4 GB are added to an archive, an archive contain‐
ing Zip64 entries is updated (if the resulting archive still needs
Zip64), the size of the archive will exceed 4 GB, or when the number of
entries in the archive will exceed about 64K. Zip64 is also used for
archives streamed from standard input as the size of such archives are
not known in advance, but the option -fz- can be used to force zip to
create PKZIP 2 compatible archives (as long as Zip64 extensions are not
needed). You must use a PKZIP 4.5 compatible unzip, such as unzip 6.0
or later, to extract files using the Zip64 extensions.
In addition, streamed archives, entries encrypted with standard encryp‐
tion, or split archives created with the pause option may not be compat‐
ible with PKZIP as data descriptors are used and PKZIP at the time of
this writing does not support data descriptors (but recent changes in
the PKWare published zip standard now include some support for the data
descriptor format zip uses).
Mac OS X. Though previous Mac versions had their own zip port, zip sup‐
ports Mac OS X as part of the Unix port and most Unix features apply.
References to "MacOS" below generally refer to MacOS versions older than
OS X. Support for some Mac OS features in the Unix Mac OS X port, such
as resource forks, is expected in the next zip release.
For a brief help on zip and unzip, run each without specifying any para‐
meters on the command line.
USE
The program is useful for packaging a set of files for distribution; for
archiving files; and for saving disk space by temporarily compressing
unused files or directories.