Home Explore Blog CI



man-pages

7th chunk of `unzip.man`
2019e7a523b44a11c204461e353165000729347ac6436eb10000000100000fea
       stamp restoration for all extracted Zip archive items.  (Here,  a
              single  -D on the command line combines with the default -D to do
              what an explicit -DD does on other systems.)

       -E     [MacOS only] display contents of MacOS extra field during restore
              operation.

       -F     [Acorn only] suppress removal  of  NFS  filetype  extension  from
              stored filenames.

       -F     [non‐Acorn  systems  supporting long filenames with embedded com‐
              mas, and only if compiled with ACORN_FTYPE_NFS defined] translate
              filetype information from ACORN RISC OS extra field blocks into a
              NFS filetype extension and append it to  the  names  of  the  ex‐
              tracted files.  (When the stored filename appears to already have
              an  appended  NFS  filetype extension, it is replaced by the info
              from the extra field.)

       -i     [MacOS only] ignore filenames stored in MacOS extra  fields.  In‐
              stead, the most compatible filename stored in the generic part of
              the entry’s header is used.

       -j     junk  paths.  The archive’s directory structure is not recreated;
              all files are deposited in the extraction directory (by  default,
              the current one).

       -J     [BeOS  only]  junk file attributes.  The file’s BeOS file attrib‐
              utes are not restored, just the file’s data.

       -J     [MacOS only] ignore MacOS extra fields.  All  Macintosh  specific
              info is skipped. Data‐fork and resource‐fork are restored as sep‐
              arate files.

       -K     [AtheOS, BeOS, Unix only] retain SUID/SGID/Tacky file attributes.
              Without  this flag, these attribute bits are cleared for security
              reasons.

       -L     convert to lowercase any filename originating  on  an  uppercase‐
              only  operating system or file system.  (This was unzip’s default
              behavior in releases prior to 5.11; the new default  behavior  is
              identical  to  the  old behavior with the -U option, which is now
              obsolete and will be removed in a future release.)  Depending  on
              the archiver, files archived under single‐case file systems (VMS,
              old  MS‐DOS FAT, etc.) may be stored as all‐uppercase names; this
              can be ugly or inconvenient when extracting to a  case‐preserving
              file system such as OS/2 HPFS or a case‐sensitive one such as un‐
              der Unix.  By default unzip lists and extracts such filenames ex‐
              actly  as they’re stored (excepting truncation, conversion of un‐
              supported characters, etc.); this option causes the names of  all
              files from certain systems to be converted to lowercase.  The -LL
              option  forces conversion of every filename to lowercase, regard‐
              less of the originating file system.

       -M     pipe all output through an internal pager  similar  to  the  Unix
              more(1)  command.   At  the  end  of a screenful of output, unzip
              pauses with a ‘‘--More--’’ prompt;  the  next  screenful  may  be
              viewed  by pressing the Enter (Return) key or the space bar.  un‐
              zip can be terminated by pressing the ‘‘q’’ key and, on some sys‐
              tems, the Enter/Return key.  Unlike Unix  more(1),  there  is  no
              forward‐searching or editing capability.  Also, unzip doesn’t no‐
              tice  if  long  lines wrap at the edge of the screen, effectively
              resulting in the printing of two or more lines and the likelihood
              that some text will scroll off the top of the screen before being
              viewed.  On some systems the number of  available  lines  on  the
              screen is not detected, in which case unzip assumes the height is
          

Title: UNZIP Options: i, j, J, K, L, and M
Summary
This section outlines the functionality of several UNZIP options. `-i` (MacOS only) ignores filenames in MacOS extra fields. `-j` discards the archive's directory structure, placing all files in the extraction directory. `-J` (BeOS only) discards file attributes or (MacOS only) ignores MacOS extra fields. `-K` (AtheOS, BeOS, Unix only) retains SUID/SGID/Tacky file attributes. `-L` converts filenames from uppercase-only systems to lowercase. `-M` pipes output through an internal pager similar to Unix's `more` command.