UNIX in a Nutshell: System V Edition

UNIX in a Nutshell: System V EditionSearch this book
Previous: Reference: zipChapter 2
Unix Commands
Next: 2. Unix Commands
 

zipinfo

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

Solaris only. 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 Return 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.


Previous: Reference: zipUNIX in a Nutshell: System V EditionNext: 2. Unix Commands
Reference: zipBook Index2. Unix Commands

The UNIX CD Bookshelf NavigationThe UNIX CD BookshelfUNIX Power ToolsUNIX in a NutshellLearning the vi Editorsed & awkLearning the Korn ShellLearning the UNIX Operating System