September 4, 2024

List files of a zip archive file without unzipping it with zip

2 options: using zip or unzip.

Using zip

$ zip -sf archive.zip

or:

$ zip --show-file archive.zip

From the the man page of zip:

The -sf show files option can be used to scan for files and get the list of files scanned without actually processing them.

Using unzip

$ unzip -l file.zip

or

$ less file.zip
$ unzip -l file.zip | less

both which will have identical output on GNU/Linux.

If you can remember zip or unzip syntax use:

$ sudo apt install tldr
$ tldr zip
$ tldr unzip

personal computing command-line interface (cli) gnu linux trisquel shell literacy office applications wiki text processing zip

No affiliate links, no analytics, no tracking, no cookies. This work © 2016-2025 by yctct is licensed under CC BY-SA 4.0 .   about me   contact me   all entries & tags   FAQ   GPG public key

GPG fingerprint: 2E0F FB60 7FEF 11D0 FB45 4DDC E979 E52A 7036 7A88