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

📄 unzip.1

📁 完整的解压zip文件的源码。包含密码功能
💻 1
📖 第 1 页 / 共 3 页
字号:
.PP.Y "unzip source.zip ""*.[fch]"" Makefile -d /tmp".PP(the double quotes are necessary only in Unix and only if globbing is turnedon).  To extract all FORTRAN and C source files, regardless of case (e.g.,both *.c and *.C, and any makefile, Makefile, MAKEFILE or similar):.PP.Y "unzip \-C source.zip ""*.[fch]"" makefile -d /tmp".PPTo extract any such files but convert any uppercase MS-DOS or VMS names tolowercase and convert the line-endings of all of the files to the localstandard (without respect to any files that might be marked ``binary''):.PP.Y "unzip \-aaCL source.zip ""*.[fch]"" makefile -d /tmp".PPTo extract only newer versions of the files already in the currentdirectory, without querying (NOTE:  be careful of unzipping in one timezone azipfile created in another--ZIP archives other than those created by Zip 2.1or later contain no timezone information, and a ``newer'' file from an easterntimezone may, in fact, be older):.PP.Y "unzip \-fo sources".PPTo extract newer versions of the files already in the current directory andto create any files not already there (same caveat as previous example):.PP.Y "unzip \-uo sources".PPTo display a diagnostic screen showing which \fIunzip\fP and \fIzipinfo\fPoptions are stored in environment variables, whether decryption support wascompiled in, the compiler with which \fIunzip\fP was compiled, etc.:.PP.Y "unzip \-v".PPIn the last five examples, assume that UNZIP or UNZIP_OPTS is set to -q.To do a singly quiet listing:.PP.Y "unzip \-l file.zip".PPTo do a doubly quiet listing:.PP.Y "unzip \-ql file.zip".PP(Note that the ``\fC.zip\fR'' is generally not necessary.)  To do a standardlisting:.PP.PD 0.Y "unzip \-\-ql file.zip".PPor.Y "unzip \-l\-q file.zip".PPor.Y "unzip \-l\-\-q file.zip\t\fR(extra minuses don't hurt)".PD.\" =========================================================================.SH TIPSThe current maintainer, being a lazy sort, finds it very useful to definea pair of aliases:  \fCtt\fR for ``\fCunzip \-tq\fR'' and \fCii\fR for``\fCunzip \-Z\fR'' (or ``\fCzipinfo\fR'').  One may then simply type``\fCtt zipfile\fR'' to test an archive, something that is worth making ahabit of doing.  With luck \fIunzip\fP will report ``\fCNo errors detectedin compressed data of zipfile.zip\fR,'' after which one may breathe a sighof relief..PPThe maintainer also finds it useful to set the UNZIP environment variableto ``\fC\-aL\fR'' and is tempted to add ``\fC\-C\fR'' as well.  His ZIPINFOvariable is set to ``\fC\-z\fR''..PD.\" =========================================================================.SH DIAGNOSTICSThe exit status (or error level) approximates the exit codes defined by PKWAREand takes on the following values, except under VMS:.RS.IP 0normal; no errors or warnings detected..IP 1one or more warning errors were encountered, but processing completedsuccessfully anyway.  This includes zipfiles where one or more fileswas skipped due to unsupported compression method or encryption with anunknown password..IP 2a generic error in the zipfile format was detected.  Processing may havecompleted successfully anyway; some broken zipfiles created by otherarchivers have simple work-arounds..IP 3a severe error in the zipfile format was detected.  Processing probablyfailed immediately..IP 4\fIunzip\fP was unable to allocate memory for one or more buffers duringprogram initialization..IP 5\fIunzip\fP was unable to allocate memory or unable to obtain a tty to readthe decryption password(s)..IP 6\fIunzip\fP was unable to allocate memory during decompression to disk..IP 7\fIunzip\fP was unable to allocate memory during in-memory decompression..IP 8[currently not used].IP 9the specified zipfiles were not found..IP 10invalid options were specified on the command line..IP 11no matching files were found..IP 50the disk is (or was) full during extraction..IP 51the end of the ZIP archive was encountered prematurely..IP 80the user aborted \fIunzip\fP prematurely with control-C (or similar).IP 81testing or extraction of one or more files failed due to unsupportedcompression methods or unsupported decryption..IP 82no files were found due to bad decryption password(s).  (If even one file issuccessfully processed, however, the exit status is 1.).RE.PPVMS interprets standard Unix (or PC) return values as other, scarier-lookingthings, so \fIunzip\fP instead maps them into VMS-style status codes.  Thecurrent mapping is as follows:   1 (success) for normal exit, 0x7fff0001for warning errors, and (0x7fff000? + 16*normal_unzip_exit_status) for allother errors, where the `?' is 2 (error) for \fIunzip\fP values 2, 9-11 and80-82, and 4 (fatal error) for the remaining ones (3-8, 50, 51).  In addition,there is a compilation option to expand upon this behavior:  definingRETURN_CODES results in a human-readable explanation of what the errorstatus means..PD.\" =========================================================================.SH BUGSMulti-part archives are not yet supported, except in conjunction with\fIzip\fP.  (All parts must be concatenated together in order, and then``\fCzip \-F\fR'' must be performed on the concatenated archive in orderto ``fix'' it.)  This will definitely be corrected in the next major release..PPArchives read from standard input are not yet supported, except with\fIfunzip\fP (and then only the first member of the archive can be extracted)..PPArchives encrypted with 8-bit passwords (e.g., passwords with accentedEuropean characters) may not be portable across systems and/or otherarchivers.  See the discussion in \fBDECRYPTION\fP above..PP\fIunzip\fP's \fB\-M\fP (``more'') option is overly simplistic in its handlingof screen output; as noted above, it fails to detect the wrapping of long linesand may thereby cause lines at the top of the screen to be scrolled off beforebeing read.  \fIunzip\fP should detect and treat each occurrence of line-wrapas one additional line printed.  This requires knowledge of the screen's widthas well as its height.  In addition, \fIunzip\fP should detect the true screengeometry on all systems..PPDates, times and permissions of stored directories are not restored exceptunder Unix..PP[MS-DOS] When extracting or testing files from an archive on a defectivefloppy diskette, if the ``Fail'' option is chosen from DOS's ``Abort, Retry,Fail?'' message, older versions of \fIunzip\fP may hang the system, requiringa reboot.  This problem appears to be fixed, but control-C (or control-Break)can still be used to terminate \fIunzip\fP..PPUnder DEC Ultrix, \fIunzip\fP would sometimes fail on long zipfiles (bad CRC,not always reproducible).  This was apparently due either to a hardware bug(cache memory) or an operating system bug (improper handling of page faults?).Since Ultrix has been abandoned in favor of Digital Unix (OSF/1), this may notbe an issue anymore..PP[Unix] Unix special files such as FIFO buffers (named pipes), block devicesand character devices are not restored even if they are somehow representedin the zipfile, nor are hard-linked files relinked.  Basically the only filetypes restored by \fIunzip\fP are regular files, directories and symbolic(soft) links..PP[OS/2] Extended attributes for existing directories are only updated if the\fB\-o\fP (``overwrite all'') option is given.  This is a limitation of theoperating system; because directories only have a creation time associatedwith them, \fIunzip\fP has no way to determine whether the stored attributesare newer or older than those on disk.  In practice this may mean a two-passapproach is required:  first unpack the archive normally (with or withoutfreshening/updating existing files), then overwrite just the directory entries(e.g., ``\fCunzip -o foo */\fR'')..PP[VMS] When extracting to another directory, only the \fI[.foo]\fP syntax isaccepted for the \fB\-d\fP option; the simple Unix \fIfoo\fP syntax issilently ignored (as is the less common VMS \fIfoo.dir\fP syntax)..PP[VMS] When the file being extracted already exists, \fIunzip\fP's query onlyallows skipping, overwriting or renaming; there should additionally be achoice for creating a new version of the file.  In fact, the ``overwrite''choice does create a new version; the old version is not overwritten ordeleted..PD.\" =========================================================================.SH "SEE ALSO"\fIfunzip\fP(1L), \fIzip\fP(1L), \fIzipcloak\fP(1L), \fIzipgrep\fP(1L),\fIzipinfo\fP(1L), \fIzipnote\fP(1L), \fIzipsplit\fP(1L).PD.\" =========================================================================.SH URLThe Info-ZIP home page is currently at \fChttp://www.cdrom.com/pub/infozip/\fR ..PD.\" =========================================================================.SH AUTHORSThe primary Info-ZIP authors (current semi-active members of the Zip-Bugsworkgroup) are:  Greg ``Cave Newt'' Roelofs (UnZip); Onno van der Linden (Zip);Jean-loup Gailly (compression); Mark Adler (decompression, fUnZip); ChristianSpieler (UnZip maintance coordination, VMS, MS-DOS, Windows 95, NT,shared code, general Zip and UnZip integration and optimization);Mike White (Windows GUI, Windows DLLs); Kai Uwe Rommel (OS/2);Paul Kienitz (Amiga, Windows 95); Chris Herborth (BeOS, QNX, Atari);Jonathan Hudson (SMS/QDOS); Sergio Monesi (Acorn RISC OS); HaraldDenker (Atari, MVS); John Bush (Solaris, Amiga); Hunter Goatley (VMS); SteveSalisbury (Windows 95, NT); Steve Miller (Windows CE GUI), Johnny Lee (MS-DOS,Windows 95, NT); and Dave Smith (Tandem NSK).The author of the original unzip code upon which Info-ZIP's was basedis Samuel H. Smith; Carl Mascott did the first Unix port; and David P.Kirschbaum organized and led Info-ZIP in its early days with Keith Petersenhosting the original mailing list at WSMR-SimTel20.  The full list ofcontributors to UnZip has grown quite large; please refer to the CONTRIBSfile in the UnZip source distribution for a relatively complete version..PD.\" =========================================================================.SH VERSIONS.ta \w'vx.xxnn'u +\w'fall 1989'u+3n.PD 0.IP "v1.2\t15 Mar 89" \w'\t\t'uSamuel H. Smith.IP "v2.0\t\ 9 Sep 89"Samuel H. Smith.IP "v2.x\tfall 1989"many Usenet contributors.IP "v3.0\t\ 1 May 90"Info-ZIP (DPK, consolidator).IP "v3.1\t15 Aug 90"Info-ZIP (DPK, consolidator).IP "v4.0\t\ 1 Dec 90"Info-ZIP (GRR, maintainer).IP "v4.1\t12 May 91"Info-ZIP.IP "v4.2\t20 Mar 92"Info-ZIP (Zip-Bugs subgroup, GRR).IP "v5.0\t21 Aug 92"Info-ZIP (Zip-Bugs subgroup, GRR).IP "v5.01\t15 Jan 93"Info-ZIP (Zip-Bugs subgroup, GRR).IP "v5.1\t\ 7 Feb 94"Info-ZIP (Zip-Bugs subgroup, GRR).IP "v5.11\t\ 2 Aug 94"Info-ZIP (Zip-Bugs subgroup, GRR).IP "v5.12\t28 Aug 94"Info-ZIP (Zip-Bugs subgroup, GRR).IP "v5.2\t30 Apr 96"Info-ZIP (Zip-Bugs subgroup, GRR).IP "v5.3\t22 Apr 97"Info-ZIP (Zip-Bugs subgroup, GRR).IP "v5.31\t31 May 97"Info-ZIP (Zip-Bugs subgroup, GRR).IP "v5.32\t\ 3 Nov 97"Info-ZIP (Zip-Bugs subgroup, GRR).IP "v5.4\t\28 Nov 98"Info-ZIP (Zip-Bugs subgroup, SPC).PD

⌨️ 快捷键说明

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