Sometimes, you may want to inspect the contents of a ".zip" file without actually extracting its contents. This is where the zipinfo command comes in handy. zipinfo allows you to preview detailed information about the contents of a compressed ".zip" file, including file names, compression ratios, encryption status, and more.
The syntax of the zipinfo command is as follows:
zipinfo [OPTIONS] [ZIP_FILE]。
Some commonly used options with the zipinfo command include:
$ zipinfo backup.zip Archive: backup.zip Zip file size: 929 bytes, number of entries: 3 -rw-rw-r-- 3.0 unx 332 tx defN 16-Feb-25 10:42 t1.cpp -rw-rw-r-- 3.0 unx 301 tx defN 16-Feb-25 09:34 t2.cpp . . . |
This command displays information about the contents of the "backup.zip" file, including file names, sizes, compression ratios, and modification dates.
For more examples, explanations, and information about the parameters of the zipinfo command, you can refer to the provided link.