Home Explore Blog CI



man-pages

12th chunk of `zip.man`
e503d9e2b762a62c1b4a29389dc6d09b496f7d59ffc82a8f0000000100000fbf
 is the difference between GMT and local time such as ‐1 above,
              and DDD is the time zone when daylight savings time is in effect.
              Leave off the DDD if there is no daylight savings time.  For  the
              US Eastern time zone EST5EDT.

       -F
       --fix
       -FF
       --fixfix
              Fix  the  zip archive. The -F option can be used if some portions
              of the archive are missing, but requires a reasonably intact cen‐
              tral directory.  The input archive is scanned as usual,  but  zip
              will  ignore  some  problems.   The  resulting  archive should be
              valid, but any inconsistent entries will be left out.

              When doubled as in -FF, the archive is scanned from the beginning
              and zip scans for special signatures to identify the  limits  be‐
              tween  the archive members. The single -F is more reliable if the
              archive is not too much damaged, so try this option first.

              If the archive is too damaged or the end has been truncated,  you
              must  use  -FF.  This is a change from zip 2.32, where the -F op‐
              tion is able to read a truncated archive.  The -F option now more
              reliably fixes archives with minor damage and the -FF  option  is
              needed  to  fix  archives where -F might have been sufficient be‐
              fore.

              Neither option will recover archives that have  been  incorrectly
              transferred  in  ascii  mode instead of binary. After the repair,
              the -t option of unzip may show that some files have a  bad  CRC.
              Such  files  cannot  be  recovered;  you can remove them from the
              archive using the -d option of zip.

              Note that -FF may have trouble fixing archives  that  include  an
              embedded zip archive that was stored (without compression) in the
              archive  and, depending on the damage, it may find the entries in
              the embedded archive rather than  the  archive  itself.   Try  -F
              first as it does not have this problem.

              The format of the fix commands have changed.  For example, to fix
              the damaged archive foo.zip,

                     zip ‐F foo ‐‐out foofix

              tries  to  read the entries normally, copying good entries to the
              new archive foofix.zip.   If  this  doesn’t  work,  as  when  the
              archive  is  truncated,  or  if  some entries you know are in the
              archive are missed, then try

                     zip ‐FF foo ‐‐out foofixfix

              and compare the resulting archive to the archive created  by  -F.
              The  -FF option may create an inconsistent archive.  Depending on
              what is damaged, you can then use  the  -F  option  to  fix  that
              archive.

              A split archive with missing 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

Title: zip Options: -F/FF (Fix, Continued), -FI (FIFO), -FS (Filesync)
Summary
This section continues explaining the '-F' and '-FF' options for fixing zip archives, emphasizing their different approaches and when to use each. It details how to fix split archives and their limitations, especially regarding checksum errors. It also covers '-FI', which allows zip to read FIFOs (named pipes) on Unix systems, and '-FS', which synchronizes the archive with the files on the operating system, enabling deletion of files no longer present.