⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 unzip.txt

📁 压缩解压,是unzip540的升级,这个外国网站摘来的源码,是evb编写.
💻 TXT
📖 第 1 页 / 共 4 页
字号:
              this format. When extracting to standard output (-c              or  -p option in effect), the default conversion of              text record delimiters is disabled for binary  (-b)              resp. all (-bb) files.       -B     [Unix  only,  and  only if compiled with UNIXBACKUP              defined] save a backup  copy  of  each  overwritten              file  with  a tilde appended (e.g., the old copy of              ``foo'' is renamed to ``foo~'').  This  is  similar              to  the  default behavior of emacs(1) in many loca-              tions.       -C     use case-insensitive matching for the selection  of              archive  entries  from  the  command-line  list  of              extract selection patterns.  unzip's philosophy  is              ``you  get what you ask for'' (this is also respon-              sible  for  the  -L/-U  change;  see  the  relevant              options  below).   Because  some  file  systems are              fully case-sensitive (notably those under the  Unix              operating system) and because both ZIP archives and              unzip itself are portable across platforms, unzip's              default behavior is to match both wildcard and lit-              eral filenames case-sensitively.  That is, specify-              ing  ``makefile''  on  the  command  line will onlyInfo-ZIP             28 February 2005 (v5.52)                   5UNZIP(1L)                                               UNZIP(1L)              match ``makefile'' in the archive, not ``Makefile''              or  ``MAKEFILE'' (and similarly for wildcard speci-              fications).  Since this does not correspond to  the              behavior  of many other operating/file systems (for              example, OS/2 HPFS, which preserves mixed case  but              is  not sensitive to it), the -C option may be used              to force all filename matches to  be  case-insensi-              tive.   In the example above, all three files would              then match ``makefile'' (or ``make*'', or similar).              The -C option affects file specs in both the normal              file list and the excluded-file list (xlist).              Please note that the -L option does neither  affect              the  search  for the zipfile(s) nor the matching of              archive entries to existing files on the extraction              path.   On a case-sensitive file system, unzip will              never try to overwrite a file ``FOO'' when extract-              ing an entry ``foo''!       -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  commas,  and  only   if   compiled   with              ACORN_FTYPE_NFS  defined] translate filetype infor-              mation from ACORN RISC OS extra field blocks into a              NFS  filetype  extension and append it to the names              of the extracted 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.  Instead,  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 attributes are not restored, just  the  file's              data.       -J     [MacOS only] ignore MacOS extra fields.  All Macin-              tosh  specific  info  is  skipped.  Data-fork   and              resource-fork are restored as separate files.       -K     [AtheOS,  BeOS,  Unix  only] retain SUID/SGID/Tacky              file  attributes.    Without   this   flag,   theseInfo-ZIP             28 February 2005 (v5.52)                   6UNZIP(1L)                                               UNZIP(1L)              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  identi-              cal  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  under              Unix.   By  default  unzip  lists and extracts such              filenames  exactly  as  they're  stored  (excepting              truncation,  conversion  of unsupported 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,  regardless  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.  unzip can be terminated by pressing the              ``q'' key and, on some  systems,  the  Enter/Return              key.   Unlike  Unix  more(1),  there is no forward-              searching  or  editing  capability.   Also,   unzip              doesn't  notice  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 avail-              able lines on the screen is not detected, in  which              case unzip assumes the height is 24 lines.       -n     never  overwrite existing files.  If a file already              exists, skip the extraction of  that  file  without              prompting.    By   default   unzip  queries  before              extracting any file that already exists;  the  user              may  choose  to  overwrite  only  the current file,              overwrite all files, skip extraction of the current              file,  skip  extraction  of  all existing files, or              rename the current file.       -N     [Amiga] extract file comments as  Amiga  filenotes.              File  comments  are  created  with the -c option of              zip(1L), or with the -N option of the Amiga port of              zip(1L), which stores filenotes as comments.Info-ZIP             28 February 2005 (v5.52)                   7UNZIP(1L)                                               UNZIP(1L)       -o     overwrite  existing  files without prompting.  This              is a dangerous option, so use it with care.  (It is              often used with -f, however, and is the only way to              overwrite directory EAs under OS/2.)       -P password              use password to decrypt encrypted  zipfile  entries              (if any).  THIS IS INSECURE!  Many multi-user oper-              ating systems provide ways for any user to see  the              current  command  line  of  any other user; even on              stand-alone systems there is always the  threat  of              over-the-shoulder  peeking.   Storing the plaintext              password as part of a command line in an  automated              script  is  even worse.  Whenever possible, use the              non-echoing, interactive prompt to enter passwords.              (And  where security is truly important, use strong              encryption such as Pretty Good Privacy  instead  of              the relatively weak encryption provided by standard              zipfile utilities.)       -q     perform operations quietly (-qq  =  even  quieter).              Ordinarily unzip prints the names of the files it's              extracting or testing, the extraction methods,  any              file  or zipfile comments that may be stored in the              archive, and possibly a summary when finished  with              each  archive.   The  -q[q]  options  suppress  the              printing of some or all of these messages.       -s     [OS/2, NT, MS-DOS] convert spaces in  filenames  to              underscores.   Since all PC operating systems allow              spaces in  filenames,  unzip  by  default  extracts              filenames     with     spaces     intact     (e.g.,              ``EA DATA. SF'').  This can  be  awkward,  however,              since MS-DOS in particular does not gracefully sup-              port spaces in filenames.  Conversion of spaces  to              underscores  can  eliminate the awkwardness in some              cases.       -U     (obsolete; to be removed in a future release) leave              filenames  uppercase  if created under MS-DOS, VMS,              etc.  See -L above.       -V     retain (VMS) file version numbers.  VMS  files  can              be  stored  with  a  version  number, in the format              file.ext;##.  By default the ``;##''  version  num-              bers  are  stripped, but this option allows them to              be retained.  (On file systems that limit filenames              to  particularly short lengths, the version numbers              may be truncated or  stripped  regardless  of  this              option.)       -W     [only  when  WILD_STOP_AT_DIR  compile-time  option              enabled] modifies the pattern matching  routine  so              that   both  `?'  (single-char  wildcard)  and  `*'Info-ZIP             28 February 2005 (v5.52)                   8UNZIP(1L)                                               UNZIP(1L)              (multi-char wildcard) do not  match  the  directory              separator   character   `/'.    (The  two-character              sequence ``**'' acts as a multi-char wildcard  that              includes  the  directory  separator  in its matched              characters.)  Examples:               "*.c" matches "foo.c" but not "mydir/foo.c"               "**.c" matches both "foo.c" and "mydir/foo.c"               "*/*.c" matches "bar/foo.c" but not "baz/bar/foo.c"               "??*/*" matches "ab/foo" and "abc/foo"                       but not "a/foo" or "a/b/foo"              This modified behaviour is equivalent to  the  pat-              tern  matching  style used by the shells of some of              UnZip's supported target OSs (one example is  Acorn              RISC OS).  This option may not be available on sys-              tems where the Zip archive's interal directory sep-              arator  character `/' is allowed as regular charac-              ter in native operating  system  filenames.   (Cur-              rently,  UnZip uses the same pattern matching rules              for both wildcard zipfile  specifications  and  zip              entry  selection  patterns in most ports.  For sys-              tems allowing `/' as  regular  filename  character,              the -W option would not work as expected on a wild-              card zipfile specification.)       -X     [VMS, Unix, OS/2, NT] restore owner/protection info              (UICs)  under VMS, or user and group info (UID/GID)              under Unix, or access control  lists  (ACLs)  under              certain  network-enabled  versions  of  OS/2  (Warp              Server with IBM LAN Server/Requester  3.0  to  5.0;              Warp  Connect  with IBM Peer 1.0), or security ACLs              under Windows NT.  In most cases this will  require              special  system privileges, and doubling the option              (-XX) under NT instructs unzip  to  use  privileges              for extraction; but under Unix, for example, a user              who belongs to several  groups  can  restore  files              owned  by  any of those groups, as long as the user              IDs match his or her own.  Note that ordinary  file              attributes are always restored--this option applies              only to optional, extra ownership info available on              some operating systems.  [NT's access control lists              do not appear  to  be  especially  compatible  with              OS/2's,  so  no  attempt  is made at cross-platform              portability of access privileges.  It is not  clear              under  what  conditions  this  would ever be useful              anyway.]       -$     [MS-DOS, OS/2, NT] restore the volume label if  the              extraction  medium is removable (e.g., a diskette).              Doubling the option (-$$) allows fixed media  (hard              disks)  to be labelled as well.  By default, volume              labels are ignored.Info-ZIP             28 February 2005 (v5.52)                   9UNZIP(1L)                                               UNZIP(1L)       -/ extensions              [Acorn only] overrides the extension list  supplied              by  Unzip$Ext  environment variable. During extrac-              tion, filename extensions that  match  one  of  the              items  in  this extension list are swapped in front              of the base name of the extracted file.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -