zip压缩报错解决 zip warning name not matched xxx/xxx/xxx

2019/07/22 行走的问题解决机 共 216 字,约 1 分钟

这个报错的原因是要压缩的文件是个符号链接文件,但指向的文件不存在,

解决方法是加上-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

文档信息

Table of Contents