这个报错的原因是要压缩的文件是个符号链接文件,但指向的文件不存在,
解决方法是加上-y参数,意思是store symbolic links as the link instead of the referenced file
,也就是保存符号链接。
zip -r -y test.zip test/
参考:“zip warning: name not matched” while compressing a directory - Unix & Linux Stack Exchange
文档信息
- 本文作者:last2win
- 本文链接:https://last2win.com/2019/07/22/zip/
- 版权声明:自由转载-非商用-非衍生-保持署名(创意共享3.0许可证)