Linux zipinfo command details how to use Linux zipinfo command

Source: Internet
Author: User
Tags comments zip zipinfo

The pnux zipinfo command is used to list the compressed file information. You can run the zipinfo command to obtain the details of the zip compressed file.

Syntax

Zipinfo [-12 hlmMstTvz] [compressed file] [file...] [-x <Template style>]

Parameters:

-1: Only list file names.

-2 this parameter works similarly to the specified "-1" parameter, but can be used with the "-h", "-t", and "-z" parameters.

-H only lists the names of compressed files.

-L the effect of this parameter is similar to that of the specified "-m" parameter, but it lists the size of the original file rather than the compression ratio of each file.

-M: the effect of this parameter is similar to that of the specified "-s" parameter, but the compression ratio of each file is mostly listed.

-M if the information content exceeds one screen, the information is listed in a way similar to the more command.

-S uses the effect similar to executing the "ls-l" command to list the compressed file content.

-T only lists the number of compressed files, the size and compression ratio of the files before and after compression.

-T lists the dates and times of each compressed file in the order of years, months, days, hours, minutes, and seconds.

-V details the information of each file in the compressed file.

-X <Template style> does not list information of eligible files.

-Z: If the compressed file contains comments, the comments are displayed.

Instance

Show compressed file information

[Root@w3cschool.cc a] # zipinfo cp.zip

Archive: cp.zip 486 bytes 4 files

-Rw-r -- 2.3 unx 0 bx stor 24-May-10 18:54 a. c

-Rw-r -- 2.3 unx 0 bx stor 24-May-10 18:54 B. c

-Rw-r -- 2.3 unx 0 bx stor 24-May-10 18:54 c. c

-Rw-r -- 2.3 unx 0 bx stor 24-May-10 18:54 e. c

4 files, 0 bytes uncompressed, 0 bytes compressed: 0.0%

[Root@w3cschool.cc a] #

Displays information about each compressed file.

[Root@w3cschool.cc a] # zipinfo-v cp.zip

Archive: cp.zip 486 bytes 4 files

End-of-central-directory record:

-------------------------------

Actual offset of end-of-central-dir record: 464 (000001D0h)

Expected offset of end-of-central-dir record: 464 (000001D0h)

(Based on the length of the central directory and its expected offset)

This zipfile constitutes the sole disk of a single-part archive; its

Central directory contains 4 entries. The central directory is 248

(000000F8h) bytes long, and its (expected) offset in bytes from

Beginning of the zipfile is 216 (000000D8h ).

There is no zipfile comment.

Central directory entry #1:

---------------------------

A. c

Offset of local header from start of archive: 0 (00000000 h) bytes

File system or operating system of origin: Unix

Version of encoding software: 2.3

Minimum file system compatibipty required: MS-DOS, OS/2 or NT FAT

Minimum software version required to extract: 1.0

Compression method: none (stored)

File security status: not encrypted

Extended local header: no

File last modified on (DOS date/time): 2010 can be 24 18:54:26

File last modified on (UT extra field modtime): 2010 can 24 18:54:26 local

File last modified on (UT extra field modtime): 2010 May 24 10:54:26 UTC

32-bit CRC value (hex): 00000000

Compressed size: 0 bytes

Uncompressed size: 0 bytes

Length of filename: 3 characters

Length of extra field: 13 bytes

Length of file comment: 0 characters

Disk number on which file begins: disk 1

Apparent file type: binary

Unix file attributes (100644 octal):-rw-r --

MS-DOS file attributes (00 hex): none

The central-directory extra field contains:

-A subfield with ID 0x5455 (universal time) and 5 data bytes.

The local extra field has UTC/GMT modification/access times.

-A subfield with ID 0x7855 (Unix UID/GID) and 0 data bytes.

There is no file comment.

Central directory entry #2:

---------------------------

B .C

Offset of local header from start of archive: 54 (00000036 h) bytes

File system or operating system of origin: Unix

Version of encoding software: 2.3

Minimum file system compatibipty required: MS-DOS, OS/2 or NT FAT

Minimum software version required to extract: 1.0

Compression method: none (stored)

File security status: not encrypted

Extended local header: no

File last modified on (DOS date/time): 2010 can be 24 18:54:26

File last modified on (UT extra field modtime): 2010 can 24 18:54:26 local

File last modified on (UT extra field modtime): 2010 May 24 10:54:26 UTC

32-bit CRC value (hex): 00000000

Compressed size: 0 bytes

Uncompressed size: 0 bytes

Length of filename: 3 characters

Length of extra field: 13 bytes

Length of file comment: 0 characters

Disk number on which file begins: disk 1

Apparent file type: binary

Unix file attributes (100644 octal):-rw-r --

MS-DOS file attributes (00 hex): none

The central-directory extra field contains:

-A subfield with ID 0x5455 (universal time) and 5 data bytes.

The local extra field has UTC/GMT modification/access times.

-A subfield with ID 0x7855 (Unix UID/GID) and 0 data bytes.

There is no file comment.

Central directory entry #3:

---------------------------

C. c

Offset of local header from start of archive: 108 (bytes 006ch) bytes

File system or operating system of origin: Unix

Version of encoding software: 2.3

Minimum file system compatibipty required: MS-DOS, OS/2 or NT FAT

Minimum software version required to extract: 1.0

Compression method: none (stored)

File security status: not encrypted

Extended local header: no

File last modified on (DOS date/time): 2010 can be 24 18:54:26

File last modified on (UT extra field modtime): 2010 can 24 18:54:26 local

File last modified on (UT extra field modtime): 2010 May 24 10:54:26 UTC

32-bit CRC value (hex): 00000000

Compressed size: 0 bytes

Uncompressed size: 0 bytes

Length of filename: 3 characters

Length of extra field: 13 bytes

Length of file comment: 0 characters

Disk number on which file begins: disk 1

Apparent file type: binary

Unix file attributes (100644 octal):-rw-r --

MS-DOS file attributes (00 hex): none

The central-directory extra field contains:

-A subfield with ID 0x5455 (universal time) and 5 data bytes.

The local extra field has UTC/GMT modification/access times.

-A subfield with ID 0x7855 (Unix UID/GID) and 0 data bytes.

There is no file comment.

Central directory entry #4:

---------------------------

E. c

Offset of local header from start of archive: 162 (bytes 00a2h) bytes

File system or operating system of origin: Unix

Version of encoding software: 2.3

Minimum file system compatibipty required: MS-DOS, OS/2 or NT FAT

Minimum software version required to extract: 1.0

Compression method: none (stored)

File security status: not encrypted

Extended local header: no

File last modified on (DOS date/time): 2010 can be 24 18:54:26

File last modified on (UT extra field modtime): 2010 can 24 18:54:26 local

File last modified on (UT extra field modtime): 2010 May 24 10:54:26 UTC

32-bit CRC value (hex): 00000000

Compressed size: 0 bytes

Uncompressed size: 0 bytes

Length of filename: 3 characters

Length of extra field: 13 bytes

Length of file comment: 0 characters

Disk number on which file begins: disk 1

Apparent file type: binary

Unix file attributes (100644 octal):-rw-r --

MS-DOS file attributes (00 hex): none

The central-directory extra field contains:

-A subfield with ID 0x5455 (universal time) and 5 data bytes.

The local extra field has UTC/GMT modification/access times.

-A subfield with ID 0x7855 (Unix UID/GID) and 0 data bytes.

There is no file comment.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.