zip 压缩文件 unzip查看zip压缩包内的内容

时间:2023-03-08 17:15:44
[root@GitLab tmp]# zip -r new.zip ./*
  adding: gitlab_key_file20161001-2668-1eu44mv (deflated 15%)
  adding: RackMultipart20161001-8364-1ldbh6x (stored 0%)
  adding: yum.log (stored 0%)
  adding: yum_save_tx-2016-10-01-03-280Ma56P.yumtx (deflated 35%)
[root@GitLab tmp]# ls
gitlab_key_file20161001-2668-1eu44mv  new.zip  RackMultipart20161001-8364-1ldbh6x  yum.log  yum_save_tx-2016-10-01-03-280Ma56P.yumtx
[root@GitLab tmp]# unzip -v new.zip
Archive:  new.zip
 Length   Method    Size  Cmpr    Date    Time   CRC-32   Name
--------  ------  ------- ---- ---------- ----- --------  ----
     389  Defl:N      329  15% 10-01-2016 04:35 5f2f2930  gitlab_key_file20161001-2668-1eu44mv
    7501  Stored     7501   0% 10-01-2016 06:43 d3deb9a3  RackMultipart20161001-8364-1ldbh6x
       0  Stored        0   0% 09-25-2016 23:25 00000000  yum.log
     323  Defl:N      211  35% 10-01-2016 03:28 4d9e15d3  yum_save_tx-2016-10-01-03-280Ma56P.yumtx
--------          -------  ---                            -------
    8213             8041   2%                            4 file