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

📄 zipinfo.1

📁 汇编大全 中国矿业大学计算机学院 汇编实验5
💻 1
字号:
.TH unzip 1 "ZipInfo version 0.96".SH NAMEzipinfo - list detailed information about a ZIP archive file.SH SYNOPSISzipinfo [-1lv] file[.zip] [filespec...].SH ARGUMENTS.in +12.ti -12file[.zip]  Path of the ZIP archive.  The suffix ``.zip'' is appliedif the file specified does not exist.  Note thatself-extracting ZIP files are supported; just specifythe ``.exe'' suffix yourself..sp 1.ti -12[filespec]  An optional list of archive members to be processed.Expressions may be used to match multiple members; be sure to quoteexpressions that contain characters interpreted by the UNIX shell. SeePATTERN MATCHING (below) for more details..SH OPTIONS.nf   -1  list filenames only, one per line (useful for pipes)   -l  list files in Unix "ls -l" format:  default   -v  list files in verbose, multi-page format.fi.SH DESCRIPTION.B ZipInfolists technical information about a ZIP archive, including informationfile access permissions, encryption status, type of compression, versionand operating system of compressing program, and the like.  The defaultoption is to list files in the following format:.sp 1.nf.ti -5-rw-rwl---  1.5 unx    2802 t-     538 defX 11-Aug-91 13:48 perms.2660.fi.sp 1The last three fields are clearly the modification date and time ofthe file, and its name.  The case of the filename is respected; thusfiles which come from MS-DOS are always capitalized.  If the file waszipped with a stored directory name, that is also displayed as part ofthe filename..sp 1The second and third fields indicate that the file was zipped underUnix with version 1.5 of zip (not available, so don't ask--this isjust an example).  Since it comes from Unix, the file permissions atthe beginning of the line are printed in Unix format.  The uncompressedfile-size (2802 in this example) is the fourth field, and the compressedfile-size is the sixth (538)..sp 1The fifth field consists of two characters, either of which may takeon several values.  The first character may be either `t' or `b', indicatingthat zip believes the file to be text or binary, respectively; but if thefile is encrypted,.B ZipInfonotes this fact by capitalizing the character (`T' or `B').  The secondcharacter may also take on four values, depending on whether there isan extended local header and/or an ``extra field'' associated with thefile (explained in PKWare's APPNOTE.TXT).  If neither exists, the characterwill be a hyphen (`-'); if there is an extended local header but no extrafield, `l'; if the reverse, `x'; and if both exist, `X'.  Thus thefile in this example is (apparently) a text file, is not encrypted, andhas neither an extra field nor an extended local header associated with it.The example below, on the other hand, is an encrypted binary file with an extra field:.sp 1.nf.ti -5RWD,R,R     0.9 vms     168 Bx     165 shrk  9-Aug-91 19:15 perms.0644.fi.sp 1Extra fields are used by PKWare for authenticity verification (?) andpossibly other purposes, and by an upcoming release of Info-ZIP's zipfor VMS (to store file attributes).  This example presumably falls intothe latter class, then.  Note that the file attributes are listed inVMS format.  Other possibilities for the host operating system areOS/2 with High Performance File System(HPFS), and DOS or OS/2 with File Allocation Table (FAT) file system, denotedas follows:.sp 1.nf.ti -5arc,hid,rdo,sys dos    4096 b-    2334 i4:2 14-Jul-91 12:58 EA DATA. SF.ti -5arc,,rw,    1.0 os2    5358 Tl    1914 i4:3  4-Dec-91 11:33 longfilename.hpfs.fi.sp 1File attributes in both of these cases are indicated in a DOS-like format,where the file may or may not have its archive bit set; may be hidden or not;may be read-write or read-only; and may be a system file or not.  If theattributes are too long, the version number of the encoding software isomitted.  (The information is still available in the verbose listing, however.).sp 1Finally, the seventh field indicatesthe compression method and possible sub-method used.  There are six methodsknown at present:  storing (no compression), reducing, shrinking, imploding,tokenizing, and deflating.  In addition, there are four levels of reducing(1 through 4); four types of imploding (4K or 8K sliding dictionary, and2 or 3 Shannon-Fano trees); and three levels of deflating (fast, normal,maximum compression)..B ZipInforepresents these methods and their sub-methods as follows:  ``stor'';``re:1,'' ``re:2,'' etc.; ``shrk''; ``i4:2,'' ``i8:3,'' etc.; ``tokn'';and ``defF,'' ``defN,'' and ``defX.''.sp 1The verbose listing is self-explanatory.  It also lists file comments andthe zipfile comment, if any..SH PATTERN MATCHINGAll archive members are listed unless a.B filespecis provided to specify a subset of the archive members.The.B filespecis similar to an egrep expression, and may contain:.sp 1.in +8.ti -8*       matches a sequence of 0 or more characters.ti -8?       matches exactly 1 character.ti -8\\nnn    matches the character having octal code nnn.ti -8[...]   matches any single character found inside the brackets; rangesare specified by a beginning character, a hyphen, and an endingcharacter.  If a '!' follows the left bracket, then the rangeof characters matched is complemented with respect to the ASCIIcharacter set..SH TIPSThe author finds it convenient to set up an alias ``ii'' for .B ZipInfoon systems which allow aliases, or else to set up a batch file ``ii.bat''or to rename the executable to ``ii.exe'' on systems such as MS-DOS whichhave no provision for aliases.  The ``ii'' usage parallels the common``ll'' alias for long listings in Unix, and the similarity between theoutputs of the two commands was intentional..SH AUTHORGreg Roelofs (also known as Cave Newt)..B ZipInfois partly based onS. H. Smith's unzip and contains pattern-matching code from ThomHenderson, but mostly it was written from scratch.

⌨️ 快捷键说明

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