답변:
이 태그에는 zip과 gzip이 모두 태그되어 있지만 둘 다 있습니다. 이들은 모두 Mac OS X이 지원하는 표준 유닉스 도구입니다.
zip 파일 :unzip -vl file.zip
예:
[23:02:22] ~/Download $ unzip -vl lightbox2.04.zip
Archive: lightbox2.04.zip
Length Method Size Cmpr Date Time CRC-32 Name
-------- ------ ------- ---- ---------- ----- -------- ----
0 Stored 0 0% 03-10-2008 00:57 00000000 css/
1648 Defl:N 647 61% 03-10-2008 00:57 c3b9f4d9 css/lightbox.css
0 Stored 0 0% 03-10-2008 00:57 00000000 images/
49 Defl:N 44 10% 04-07-2007 20:58 64aff4e0 images/bullet.gif
222 Defl:N 213 4% 04-07-2007 20:58 10131ca6 images/close.gif
979 Defl:N 916 6% 04-07-2007 20:58 0415e19c images/closelabel.gif
723 Defl:N 728 -1% 04-07-2007 20:58 f3abf2ca images/donate-button.gif
...
-------- ------- --- -------
244588 94624 61% 20 files
[23:02:36] ~/Download $
gzip 파일 :gunzip -lv file.gz
예:
[23:03:55] ~/Download $ gunzip -lv mudlet.tar.gz
method crc date time compressed uncompressed ratio uncompressed_name
defla 768774be Feb 14 22:44 2895270 6533120 55.7% mudlet.tar
[23:04:02] ~/Download $
Max OS X 및 Linux에서는 zipinfo 를 사용할 수 있습니다 .
zipinfo -m my_file.zip > list_my_file.txt
출력 ( more list_my_file.txt
) :
Archive: my_file.zip
Zip file size: 3220317423 bytes, number of entries: 1998436
drwxrwxr-x 3.0 unx 0 bx 0% stor 15-Nov-26 07:14 p/
-rw-rw-r-- 3.0 unx 4666 tx 77% defN 15-Nov-23 23:31 p/r2082514.json
-rw-rw-r-- 3.0 unx 4278 tx 78% defN 15-Nov-21 16:39 p/r1190647.json
-rw-rw-r-- 3.0 unx 4147 tx 77% defN 15-Nov-23 03:29 p/r1867235.json
-rw-rw-r-- 3.0 unx 6866 tx 74% defN 15-Nov-23 01:25 p/r1814510.json
-rw-rw-r-- 3.0 unx 6979 tx 78% defN 15-Nov-22 19:40 p/r1675696.json
-rw-rw-r-- 3.0 unx 5460 tx 78% defN 15-Nov-22 23:11 p/r1761107.json
-rw-rw-r-- 3.0 unx 4960 tx 74% defN 15-Nov-23 00:58 p/r1801562.json
-rw-rw-r-- 3.0 unx 6459 tx 75% defN 15-Nov-21 19:00 p/r1261556.json
플래그 -m
는 압축 비율을 표시합니다.
-m list zipfile info in medium Unix ``ls -l'' format. Identical to
the -s output, except that the compression factor, expressed as
a percentage, is also listed.