attributes (Extended Attributes on OS/2,
uid/gid and file times on Unix). The zip format uses extra
fields to include additional information for each entry. Some
extra fields are specific to particular systems while others are
applicable to all systems. Normally when zip reads entries from
an existing archive, it reads the extra fields it knows, strips
the rest, and adds the extra fields applicable to that system.
With -X, zip strips all old fields and only includes the Unicode
and Zip64 extra fields (currently these two extra fields cannot
be disabled).
Negating this option, -X-, includes all the default extra fields,
but also copies over any unrecognized extra fields.
-y
--symlinks
For UNIX and VMS (V8.3 and later), store symbolic links as such
in the zip archive, instead of compressing and storing the file
referred to by the link. This can avoid multiple copies of files
being included in the archive as zip recurses the directory trees
and accesses files directly and by links.
-z
--archive-comment
Prompt for a multi‐line comment for the entire zip archive. The
comment is ended by a line containing just a period, or an end of
file condition (^D on Unix, ^Z on MSDOS, OS/2, and VMS). The
comment can be taken from a file:
zip ‐z foo < foowhat
-Z cm
--compression-method cm
Set the default compression method. Currently the main methods
supported by zip are store and deflate. Compression method can
be set to:
store - Setting the compression method to store forces zip to
store entries with no compression. This is generally faster than
compressing entries, but results in no space savings. This is
the same as using -0 (compression level zero).
deflate - This is the default method for zip. If zip determines
that storing is better than deflation, the entry will be stored
instead.
bzip2 - If bzip2 support is compiled in, this compression method
also becomes available. Only some modern unzips currently sup‐
port the bzip2 compression method, so test the unzip you will be
using before relying on archives using this method (compression
method 12).
For example, to add bar.c to archive foo using bzip2 compression:
zip ‐Z bzip2 foo bar.c
The compression method can be abbreviated:
zip ‐Zb foo bar.c
-#
(-0, -1, -2, -3, -4, -5, -6, -7, -8, -9)
Regulate the speed of compression using the specified digit #,
where -0 indicates no compression (store all files), -1 indicates
the fastest compression speed (less compression) and -9 indicates
the slowest compression speed (optimal compression, ignores the
suffix list). The default compression level is -6.
Though still being worked, the intention is this setting will
control compression speed for all compression methods. Currently
only deflation is controlled.
-!
--use-privileges
[WIN32] Use privileges (if granted) to obtain all aspects of
WinNT security.
-@
--names-stdin
Take the list of input files from standard input. Only one file‐
name per line.
-$
--volume-label
[MSDOS, OS/2, WIN32] Include the volume label for the drive hold‐
ing the first file to