split files can be fixed using -F if
you have the last split of the archive (the .zip file). If this
file is missing, you must use -FF to fix the archive, which will
prompt you for the splits you have.
Currently the fix options can’t recover entries that have a bad
checksum or are otherwise damaged.
-FI
--fifo [Unix] Normally zip skips reading any FIFOs (named pipes) en‐
countered, as zip can hang if the FIFO is not being fed. This
option tells zip to read the contents of any FIFO it finds.
-FS
--filesync
Synchronize the contents of an archive with the files on the OS.
Normally when an archive is updated, new files are added and
changed files are updated but files that no longer exist on the
OS are not deleted from the archive. This option enables a new
mode that checks entries in the archive against the file system.
If the file time and file size of the entry matches that of the
OS file, the entry is copied from the old archive instead of be‐
ing read from the file system and compressed. If the OS file has
changed, the entry is read and compressed as usual. If the entry
in the archive does not match a file on the OS, the entry is
deleted. Enabling this option should create archives that are
the same as new archives, but since existing entries are copied
instead of compressed, updating an existing archive with -FS can
be much faster than creating a new archive. Also consider using
-u for updating an archive.
For this option to work, the archive should be updated from the
same directory it was created in so the relative paths match. If
few files are being copied from the old archive, it may be faster
to create a new archive instead.
Note that the timezone environment variable TZ should be set ac‐
cording to the local timezone in order for this option to work
correctly. A change in timezone since the original archive was
created could result in no times matching and recompression of
all files.
This option deletes files from the archive. If you need to pre‐
serve the original archive, make a copy of the archive first or
use the --out option to output the updated archive to a new file.
Even though it may be slower, creating a new archive with a new
archive name is safer, avoids mismatches between archive and OS
paths, and is preferred.
-g
--grow
Grow (append to) the specified zip archive, instead of creating a
new one. If this operation fails, zip attempts to restore the
archive to its original state. If the restoration fails, the
archive might become corrupted. This option is ignored when
there’s no existing archive or when at least one archive member
must be updated or deleted.
-h
-?
--help
Display the zip help information (this also appears if zip is run
with no arguments).
-h2
--more‐help
Display extended help including more on command line format, pat‐
tern matching, and more obscure options.
-i files
--include files
Include only the specified files, as in:
zip ‐r foo . ‐i \*.c
which will include only the files that end in .c in the current
directory and its subdirectories. (Note for PKZIP users: the
equivalent command