Name

zipinfo

Synopsis

    zipinfo [options] zipfile ... [exclusion option]

zipinfo prints information about ZIP format archives. The zipfile is a ZIP archive whose filename ends in .zip. The .zip can be omitted from the command line; zipinfo supplies it. zipfile may also be a shell-style wildcard pattern (which should be quoted to protect it from the shell); all matching files in the ZIP archive will be acted upon. See also zip and unzip.

Exclusion Option

-x files

Exclude. Do not extract archive members that match files.

Options

-1

Only list filenames, one per line. Nothing else is printed. For use in shell scripts.

-2

Like -1, but also permit headers, trailers, and ZIP archive comments (-h, -t, -z).

-h

Print a header line with the archive name, size in bytes, and total number of files.

-l

Use “long” format. Like -m, but also print the compressed size in bytes, instead of the compression ratio.

-m

Use “medium” format. Like -s, but also include the compression factor (as a percentage).

-M

Pipe output through the internal pager, which is similar to more. Press the ENTER key or spacebar at the --More-- prompt to see the next screenful.

-s

Use “short” format, similar to ls -l. This is the default.

-t

Print totals for all files (number of files, compressed and uncompressed sizes, overall compression factor).

-T

Print times and dates in a decimal format (yymmdd . hhmmss) that can be sorted.

-v

Use verbose, multipage format.

-z

Print the archive comment.

Get Unix in a Nutshell, 4th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.