List files inside a ZIP archive
Build a paste-ready command, then review its compatibility and effects before running it.
unzip -l <archive-file>Complete required fields to copy the generated command.
read-onlyno known side effects Compatibility
Linux + macOSVerified for Linux, macOS using posix, bash, zsh syntax.
Operational knowledgereview due 2027-01-19
Requirementsunzipunzip must be installed and available on PATH.
Version supportunzip Current supported releasesVerified for linux, macos using posix, bash, zsh syntax; consult compatibility notes for platform-specific differences.
Expected signalsArchive: release.zipRepresentative successful output; values vary with the selected target and system state.
Known errorsunzip: command not foundunzip is missing or is not available on PATH.
Verifyunzip -l {{archiveFile}}The output matches the expected target and exits without an error.Rollback noteNot required: this command is read-only and does not change system state.
Command breakdown
01unzipCommandRuns the unzip stage of this one-liner.
02-lOptionConfigures unzip with the -l option.
03<archive-file>ParameterA value supplied in the Fill parameters section.
Example input
unzip -l release.zip
Example output
Archive: release.zip
Length Date Time Name
--------- ---------- ----- ----
1842 2026-07-23 09:14 README.md
248112 2026-07-23 09:14 bin/oneliners
--------- -------
249954 2 files
Illustrative output — exact values vary by system and data.
Official sources