Info zip list files




















Extra fields are used for various purposes see discussion of the -v option below including the storage of VMS file attributes, which is presumably the case here. Note that the file attributes are listed in VMS format.

These are denoted as follows:. File attributes in the first two cases are indicated in a Unix-like format, where the seven subfields indicate whether the file: 1 is a directory, 2 is readable always true , 3 is writable, 4 is executable guessed on the basis of the extension Interpretation of Macintosh file attributes is unreliable because some Macintosh archivers don't store any attributes in the archive.

Finally, the sixth field indicates the compression method and possible sub-method used. There are six methods known at present: storing no compression , reducing, shrinking, imploding, tokenizing never publicly released , and deflating. In addition, there are four levels of reducing 1 through 4 ; four types of imploding 4K or 8K sliding dictionary, and 2 or 3 Shannon-Fano trees ; and four levels of deflating superfast, fast, normal, maximum compression.

The medium and long listings are almost identical to the short format except that they add information on the file's compression. The long format gives the compressed file's size in bytes, instead:. In contrast to the unzip listings, the compressed size figures in this listing format denote the complete size of compressed data, including the 12 extra header bytes in case of encrypted entries.

Adding the -T option changes the file date and time to decimal format:. Note that because of limitations in the MS-DOS format used to store file times, the seconds field is always rounded to the nearest even second. For Unix files this is expected to change in the next major releases of zip and unzip. In addition to individual file information, a default zipfile listing also includes header and trailer lines:.

The header line gives the name of the archive, its total size, and the total number of files; the trailer gives the number of files listed, their total uncompressed size, and their total compressed size not including any of zip's internal overhead. If, however, one or more file s are provided, the header and trailer lines are not listed. In such a case the listing format must also be specified explicitly, since -h or -t or both in the absence of other options implies that ONLY the header or trailer line or both is listed.

The verbose listing is mostly self-explanatory. It also lists file comments and the zipfile comment, if any, and the type and number of bytes in any stored extra fields. Again, the compressed size figures of the individual entries include the 12 extra header bytes for encrypted entries.

In contrast, the archive total compressed size and the average compression ratio shown in the summary bottom line are calculated without the extra 12 header bytes of encrypted entries. Modifying zipinfo 's default behavior via options placed in an environment variable can be a bit complicated to explain, due to zipinfo 's attempts to handle various defaults in an intuitive, yet Unix-like, manner.

Try not to laugh. Nevertheless, there is some underlying logic. The default listing format, as noted above, corresponds roughly to the "zipinfo -hst" command except when individual zipfile members are specified.

A user who prefers the long-listing format -l can make use of the zipinfo 's environment variable to change this default:. This is accomplished by preceding the undesired option with one or more minuses: e. The dual use of hyphens may seem a little awkward, but it's reasonably intuitive nonetheless: simply ignore the first hyphen and go from there. It is also consistent with the behavior of the Unix command nice.

To get a basic, short-format listing of the complete contents of a ZIP archive storage. To produce a basic, long-format listing not verbose , including header and totals lines, use -l :. To list the complete contents of the archive without header and totals lines, either negate the -h and -t options or else specify the contents explicitly:. To turn off the totals line by default, use the environment variable C shell is assumed here :.

To get the full, short-format listing of the first example again, given that the environment variable is set as in the previous example, it is necessary to specify the -s option explicitly, since the -t option by itself implies that ONLY the footer line is to be printed:. The -s option, like -m and -l , includes headers and footers by default, unless otherwise specified. In contrast, the archive total compressed size and the average compression ratio shown in the summary bottom line are calculated without the extra 12 header bytes of encrypted entries.

Modifying zipinfo 's default behavior via options placed in an environment variable can be a bit complicated to explain, due to zipinfo 's attempts to handle various defaults in an intuitive, yet Unix-like, manner. Nevertheless, there is some underlying logic. In brief, there are three "priority levels" of options: the default options; environment options, which can override or add to the defaults; and explicit options given by the user, which can override or add to either of the above.

The default listing format, as noted above, corresponds roughly to the " zipinfo -hst " command except when individual zipfile members are specified. A user who prefers the long-listing format -l can make use of the zipinfo's environment variable to change this default using the following methods:. If, in addition, the user dislikes the trailer line, zipinfo 's concept of "negative options" may be used to override the default inclusion of the line.

This is accomplished by preceding the undesired option with one or more minuses: e. The first hyphen is the regular switch character, but the one before the " t " is a minus sign. The dual use of hyphens may seem a little awkward, but it's reasonably intuitive nonetheless: ignore the first hyphen and go from there.

It is also consistent with the behavior of the Unix command nice. Display information about the archive hope. Output will resemble the following:. Path of the zip archive s. If the file specification is a wildcard , each matching file is processed in an order determined by the operating system or file system.

Only the file name can be a wildcard; the path itself cannot. If an exclamation point or a caret "! To specify a verbatim left bracket, the three-character sequence " [[] " has to be used.

An optional list of archive members to be processed, separated by spaces. Regular expressions or wildcards may be used to match multiple members; see above. Again, be sure to quote expressions that would otherwise be expanded or modified by the operating system. List file names only, one per line. This option excludes all others; headers, trailers and zipfile comments are never printed. It is intended for use in Unix shell scripts.

List file names only, one per line, but allow headers -h , trailers -t and zipfile comments -z , as well. This option may be useful in cases where the stored file names are particularly long. List zipfile info in short Unix " ls -l " format. This is the default behavior. List zipfile info in medium Unix " ls -l " format. Combine several files into a single zipped folder to more easily share a group of files. Press and hold or right-click the file or folder, select or point to Send to , and then select Compressed zipped folder.

A new zipped folder with the same name is created in the same location. To rename it, press and hold or right-click the folder, select Rename , and then type the new name. To unzip a single file or folder, open the zipped folder, then drag the file or folder from the zipped folder to a new location. To unzip all the contents of the zipped folder, press and hold or right-click the folder, select Extract All , and then follow the instructions. If you add encrypted files to a zipped folder, they'll be unencrypted when they're unzipped, which might result in unintentional disclosure of personal or sensitive information.

For that reason, we recommend that you avoid zipping encrypted files. Some types of files, like JPEG images, are already highly compressed. If you zip several JPEG pictures into a folder, the total size of the folder will be about the same as the original collection of pictures. Windows 10 Windows 8. Locate the file or folder that you want to zip.



0コメント

  • 1000 / 1000