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

INSTALL

sudo apt install unzip
copy
sudo dnf install unzip
copy
sudo pacman -S unzip
copy
sudo apk add unzip
copy
sudo zypper install unzip
copy
brew install unzip
copy
nix profile install nixpkgs#unzip
copy

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)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid