Mac OS X 'compress' option vs command line zip (why do they produce different results?)

后端 未结 2 1051
不思量自难忘°
不思量自难忘° 2020-12-10 13:48

I noticed that the command line \'zip\' tool and Mac OS X\'s \'Compress XXX\' option (available via right click in finder) are giving different output files. Not only is the

2条回答
  •  北荒
    北荒 (楼主)
    2020-12-10 14:10

    The answer is in man ditto:

     The command:
           ditto -c -k --sequesterRsrc --keepParent src_directory archive.zip
     will create a PKZip archive similarly to the Finder's Compress function-
     ality.
    

提交回复
热议问题