zip:tldr:0a1d3
zip: List all files in a `.zip` file.
$ zipinfo -1 ${path-to-archive-zip}
try on your machine
The command "zipinfo -1 ${path-to-archive-zip}" is used to list the files contained within a specified archive file in a simple format, showing only the file names.
Here's a breakdown of the command:
- "zipinfo" is the command itself, which is used to obtain information about the files within a zip archive.
- "-1" is an option that specifies the format of the output to be a simple list of file names, each on a separate line.
- "${path-to-archive-zip}" is a placeholder that needs to be replaced with the actual path to the zip archive file you want to obtain information from. This is where you provide the specific location of the archive file on your system.
Overall, this command will display a list of files contained within the specified zip archive, with each file name appearing on a separate line.
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.