Search code examples
zipcomments

How to add comments to a zip file


I have research some days and found that we can add a file with some contents to the zip file and then compress it again. then the comments will be added to the zip file, but i don't know what that file exactly is, so any one know the principle for adding comments to a zip(compressed) file


Solution

  • The -c parameter will let you add a one-line comment for each file in the zip interactively. E.g. zip -c valid.zip somefile.txt

    The -z parameter will let you add a multi-line comment for the entire zip archive interactively. E.g. zip -z valid.zip somefile.txt