LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

zipinfo

Display ZIP archive information

TLDR

Show archive info
$ zipinfo [archive.zip]
copy
Short listing
$ zipinfo -1 [archive.zip]
copy
Long listing
$ zipinfo -l [archive.zip]
copy
Medium listing
$ zipinfo -m [archive.zip]
copy
Show header info
$ zipinfo -h [archive.zip]
copy
Show totals only
$ zipinfo -t [archive.zip]
copy
Show specific file info
$ zipinfo [archive.zip] [file.txt]
copy

SYNOPSIS

zipinfo [-1] [-l] [-m] [-h] [-t] [options] archive [members]

DESCRIPTION

zipinfo displays information about ZIP archives without extracting. It shows structure, compression, and metadata.Short listing (-1) provides filenames only, useful for scripting. Each file appears on its own line.Long listing (-l) resembles ls -l output. It shows permissions, sizes, compression, and dates.The header (-h) shows archive-level information: filename, size, and number of entries.Totals (-t) summarize the archive: file count, total sizes, and compression ratio.Pattern matching selects specific files to display. Wildcards work for filtering large archives.

PARAMETERS

-1

Filenames only, one per line.
-2
Filenames only, allows headers (-h), totals (-t), and comments (-z).
-s
Short Unix ls -l format (default).
-m
Medium format: adds compression factor percentage.
-l
Long format: shows compressed size in bytes.
-h
Print archive header (name, size, file count).
-t
Print totals (file count, total sizes, compression ratio).
-T
Print timestamps in sortable decimal format (yymmdd.hhmmss).
-z
Print archive comment.
-v
Verbose multi-page format with all available info.
-M
Pipe output through internal pager (like more).
-x PATTERN
Exclude files matching pattern.

OUTPUT FIELDS

Long listing shows:- Permissions- Version- OS- Size (uncompressed)- Compression type- Size (compressed)- Ratio- Date/time- Filename

CAVEATS

Part of Info-ZIP package. Some encrypted archives may not show all info. Very large archives may be slow.

HISTORY

zipinfo is part of Info-ZIP, developed by the Info-ZIP group starting in the early 1990s. It provides archive inspection without extraction.

SEE ALSO

unzip(1), zip(1), zipgrep(1), zipcloak(1)

Copied to clipboard
Kai