YouTip LogoYouTip

Linux Comm Zipinfo

# Linux zipinfo Command [![Image 3: Linux Command Manual](#) Linux Command Manual](#) The Linux zipinfo command is used to display detailed information about a .zip archive without extracting it. zipinfo provides detailed information about the contents, compression ratio, timestamps, and other details of the archive, making it a common tool for inspecting .zip files. ### Syntax zipinfo file.zip * `file.zip`: The `.zip` file for which to display information. **Options**: * `-1`: List only the file names within the `.zip` file, one per line. * `-t`: Display the total number of files and their total uncompressed size. * `-h`: Display file sizes in a more readable (human-friendly) format (e.g., KB, MB). * `-m`: Display permission information for each file within the `.zip` file (in Unix format). * `-v`: Display more detailed information, including compression method, version, compression ratio, etc. * `-s`: Summarize the overall information of the `.zip` file, such as the number of files, total size, etc. * `-l`: List the contents of the `.zip` file in detail, including file size, date, time, etc. ### Examples **List the contents of a .zip file** zipinfo archive.zip This command will list all files and directories in archive.zip and display basic file information such as file size, date, time, and compression ratio. **List only file names** zipinfo -1 archive.zip This command will only list the file names in archive.zip, one per line, without any other detailed information. **Display detailed information** zipinfo -v archive.zip This command will display detailed information for each file in archive.zip, including file permissions, compression method, compression ratio, version, etc. **Display human-friendly file size information** zipinfo -h archive.zip This command will display file sizes in a more readable format (e.g., KB, MB), making them easier to understand. **Summarize the overall information of a .zip file** zipinfo -s archive.zip This command will provide overall information for the archive.zip file, such as total file count, compressed and uncompressed total size, etc. ### Notes * `zipinfo` is a read-only tool and will not make any modifications to the `.zip` file. * `zipinfo` provides more detailed information than `unzip -l` and is suitable for when you need a deeper look into a `.zip` file. [![Image 4: Linux Command Manual](#) Linux Command Manual](#)
← Os OpenOs Mknod β†’