unzip默认安装到当前目录下,当前目录就是你的zip文件的放置目录。
下面以test.zip文件为例,做unzip
1、把文件解压到当前目录下
unzip test.zip
2、如果要把文件解压到指定的目录下,需要用到-d参数。
unzip -d /temp test.zip
3、解压的时候,有时候不想覆盖已经存在的文件,那么可以加上-n参数
unzip -n test.zip unzip -n -d /temp test.zip