How to update one file in a zip archive

后端 未结 10 1229
心在旅途
心在旅途 2020-12-02 16:16

Is it possible to replace a file in a zip file without unzipping deleting the old file adding the new file and rezipping it back?

Reason is I have a zip file which i

10条回答
  •  不知归路
    2020-12-02 17:05

    Try the following:

    zip [zipfile] [file to update] 
    

    An example:

    $ zip test.zip test/test.txt
    updating: test/test.txt (stored 0%)
    

提交回复
热议问题