标题:[实践OK] unzip 解压文件到指定的目录-d,zip和unzip是两个不同的rpm包。 出处:向东博客 专注WEB应用 构架之美 --- 构架之美,在于尽态极妍 | 应用之美,在于药到病除 时间:Wed, 12 Jul 2017 11:24:06 +0000 作者:jackxiang 地址:http://jackxiang.com/post/9356/ 内容: 背景:在打包时,需要对源文件是ZIP格式的,给unzip解压文件到指定的打包目录$RPM_BUILD_DIR,查了下,也就是得用到unzip的-d参数。 yum install zip -y yum install unzip -y # unzip test.zip 它会默认将文件解压到当前目录,如果要解压到指定目录,可以加上 -d 选项 # unzip test.zip -d /root/ 来源 :http://blog.csdn.net/ljchlx/article/details/8028672 Generated by Jackxiang's Bo-blog 2.1.1 Release