O'Reilly logo

Mac OS X Tiger in a Nutshell by Jason McIntosh, Chuck Toporek, Chris Stone, Andy Lester

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

zipinfo

Synopsis

zipinfo [options] file

Displays about the specified zip file.

Options

-h

Print archive name, size, and number of archived items.

-l

As -s, but compressed size is also displayed.

-m

As -s, but compression ratio is also displayed.

-M

Display output a page at a time.

-s

Print information about each item in the archive, in a format similar to the ls command's output: permissions, version of zip used to create the archive, uncompressed size, file type, compression method, modification timestamp, and name. This is the default behavior if no other options are specified.

-t

Print number of archived items, cumulative compressed and uncompressed sizes, and compression ratio.

-T

Print timestamps in a sortable format, rather than the default human-readable format.

-v

Enable verbose output.

-x

Exclude the files specified by the additional pathname arguments, which usually include wildcards to match filenames of a certain pattern.

-z

Print comments stored in the archive file.

-1

Print only filenames of archived items.

-2

As -1, but -h, -t, and -z flags may be used to print additional information.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required