列出zip文件内全部内容 当前目录下的所有文件压缩成zip格式的文件(file.zip)

 

[root@ok Desktop]# zip -r image.zip ./*.jpg
  adding: 20161007_113743.jpg (deflated 0%)
  adding: 20161007_114943.jpg (deflated 0%)
[root@ok Desktop]# file image.zip 
image.zip: Zip archive data, at least v2.0 to extract
[root@ok Desktop]# zipinfo image.zip 
Archive:  image.zip
Zip file size: 3939393 bytes, number of entries: 2
-rw-rw-r--  3.0 unx  3340634 bx defN 16-Oct-07 11:43 20161007_113743.jpg
-rw-rw-r--  3.0 unx   604006 bx defN 16-Oct-07 11:49 20161007_114943.jpg
2 files, 3944640 bytes uncompressed, 3939039 bytes compressed:  0.1%

 

posted @ 2016-10-07 15:33  bass  阅读(649)  评论(0编辑  收藏  举报