zip打包是去掉路径

zip -j file.zip /home/XXX/file1 /home/XXX/file2

如果不带-j参数,则解压后路径会很深

原文地址:https://www.cnblogs.com/pigerhan/p/2733555.html