each file. Enter the comment followed by
return, or just return for no comment.
-C
--preserve‐case
[VMS] Preserve case all on VMS. Negating this option (-C‐)
downcases.
-C2
--preserve‐case‐2
[VMS] Preserve case ODS2 on VMS. Negating this option (-C2‐)
downcases.
-C5
--preserve‐case‐5
[VMS] Preserve case ODS5 on VMS. Negating this option (-C5‐)
downcases.
-d
--delete
Remove (delete) entries from a zip archive. For example:
zip ‐d foo foo/tom/junk foo/harry/\* \*.o
will remove the entry foo/tom/junk, all of the files that start
with foo/harry/, and all of the files that end with .o (in any
path). Note that shell pathname expansion has been inhibited
with backslashes, so that zip can see the asterisks, enabling zip
to match on the contents of the zip archive instead of the con‐
tents of the current directory. (The backslashes are not used on
MSDOS‐based platforms.) Can also use quotes to escape the aster‐
isks as in
zip ‐d foo foo/tom/junk "foo/harry/*" "*.o"
Not escaping the asterisks on a system where the shell expands
wildcards could result in the asterisks being converted to a list
of files in the current directory and that list used to delete
entries from the archive.
Under MSDOS, -d is case sensitive when it matches names in the
zip archive. This requires that file names be entered in upper
case if they were zipped by PKZIP on an MSDOS system. (We con‐
sidered making this case insensitive on systems where paths were
case insensitive, but it is possible the archive came from a sys‐
tem where case does matter and the archive could include both Bar
and bar as separate files in the archive.) But see the new op‐
tion -ic to ignore case in the archive.
-db
--display‐bytes
Display running byte counts showing the bytes zipped and the
bytes to go.
-dc
--display‐counts
Display running count of entries zipped and entries to go.
-dd
--display‐dots
Display dots while each entry is zipped (except on ports that
have their own progress indicator). See ‐ds below for setting
dot size. The default is a dot every 10 MB of input file
processed. The ‐v option also displays dots (previously at a
much higher rate than this but now -v also defaults to 10 MB) and
this rate is also controlled by ‐ds.
-df
--datafork
[MacOS] Include only data‐fork of files zipped into the archive.
Good for exporting files to foreign operating‐systems. Resource‐
forks will be ignored at all.
-dg
--display‐globaldots
Display progress dots for the archive instead of for each file.
The command
zip ‐qdgds 10m
will turn off most output except dots every 10 MB.
-ds size
--dot‐size size
Set amount of input file processed for each dot displayed. See
‐dd to enable displaying dots. Setting this option implies ‐dd.
Size is in the format nm where n is a number and m is a multi‐
plier. Currently m can be k (KB), m (MB), g (GB), or t (TB), so
if n is 100 and m is k, size would be 100k which is 100 KB. The
default is 10 MB.
The ‐v option also displays dots and now defaults to 10 MB