Forrest logo
back to the unzip tool

zip:archive:preview

Preview the contents of a zip file
$ unzip -l ${filename}
try on your machine

The command "unzip -l" is used to list the contents of a ZIP archive file without extracting them. The "-l" option allows you to view a detailed list of the files and directories contained within the archive.

In this command, ${filename} is a placeholder representing the actual name of the ZIP file. You should replace this placeholder with the specific name of the file you want to examine.

So, when you run the command "unzip -l ${filename}", it will display a detailed list of the files and directories present within the specified ZIP archive file.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.

Questions that are answered by this command:

  • How to preview the contents of a zip file?
back to the unzip tool