Latest web development tutorials

comandos de Linux zipinfo

Linux comando Daquan Linux comando Daquan

Linux zipinfo listas comando archive la información.

Para más información instrucción postal ejecución de archivos zipinfo se puede aprender.

gramática

zipinfo [-12hlmMstTvz][压缩文件][文件...][-x <范本样式>]

parámetros:

  • -1 Permite mostrar sólo los nombres de archivo.
  • Un efecto similar de este parámetro y especifique -2 "-1" parámetro, pero con "h", "- t" y el parámetro "z".
  • -h listas sólo el nombre de archivo del archivo comprimido.
  • -l parámetro de efecto similar y especificar este parámetro "-m", pero enumera el tamaño del archivo original en lugar de la relación de compresión para cada archivo.
  • -m efecto de este parámetro y especifique el parámetro "-s" es similar a, pero más se enumeran en la relación de compresión para cada archivo.
  • -M Si el mensaje contiene más de una pantalla, la directiva más similares enumera la información.
  • -s muestra el contenido de los archivos comprimidos similares ejecutar "ls -l" Resultados de mando.
  • Lista -t sólo el número de archivos dentro de un archivo comprimido que contiene el tamaño del archivo y la relación de compresión comprimido antes y después.
  • -T Dentro de la fecha del archivo comprimido y hora de cada archivo con el año, mes, día, hora, minuto y segundo en el orden indicado.
  • -v muestra información detallada sobre todos los archivos dentro de un archivo comprimido.
  • -x <plantilla de estilo> no cumple con las condiciones que figuran en el documento de información.
  • -z si el archivo comprimido que contiene los comentarios, se mostrarán los comentarios.

Ejemplos

Mostrar información de archivo

[[email protected] a]# zipinfo cp.zip 
Archive: cp.zip  486 bytes  4 files
-rw-r--r-- 2.3 unx    0 bx stor 24-May-10 18:54 a.c
-rw-r--r-- 2.3 unx    0 bx stor 24-May-10 18:54 b.c
-rw-r--r-- 2.3 unx    0 bx stor 24-May-10 18:54 c.c
-rw-r--r-- 2.3 unx    0 bx stor 24-May-10 18:54 e.c
4 files, 0 bytes uncompressed, 0 bytes compressed: 0.0%
[[email protected] a]# 

Visualización de información de cada archivo en el archivo comprimido

[[email protected] 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 the
 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 (00000000h) bytes
 file system or operating system of origin:    Unix
 version of encoding software:           2.3
 minimum file system compatibility 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 May 24 18:54:26
 file last modified on (UT extra field modtime):  2010 May 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--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 (00000036h) bytes
 file system or operating system of origin:    Unix
 version of encoding software:           2.3
 minimum file system compatibility 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 May 24 18:54:26
 file last modified on (UT extra field modtime):  2010 May 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--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 (0000006Ch) bytes
 file system or operating system of origin:    Unix
 version of encoding software:           2.3
 minimum file system compatibility 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 May 24 18:54:26
 file last modified on (UT extra field modtime):  2010 May 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--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 (000000A2h) bytes
 file system or operating system of origin:    Unix
 version of encoding software:           2.3
 minimum file system compatibility 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 May 24 18:54:26
 file last modified on (UT extra field modtime):  2010 May 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--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.

Linux comando Daquan Linux comando Daquan