1.功能做用:解压缩zip文件 ui
2.位置:/usr/bin/unzip 编码
3.格式用法:unzip [-Z] [-opts[modifiers]] file[.zip] [list] [-x xlist] [-d exdir] spa
4.主要参数 code
5.应用实例
一、把文件解压到当前目录下 ip
unzip test.zip
二、若是要把文件解压到指定的目录下,须要用到-d参数。 字符编码
unzip -d /temp test.zip
三、解压的时候,有时候不想覆盖已经存在的文件,那么能够加上-n参数 class
unzip -n test.zip unzip -n -d /temp test.zip
四、只看一下zip压缩包中包含哪些文件,不进行解压缩 test
unzip -l test.zip
五、查看显示的文件列表还包含压缩比率 file
unzip -v test.zip
六、检查zip文件是否损坏 程序
unzip -t test.zip
七、将压缩文件test.zip在指定目录tmp下解压缩,若是已有相同的文件存在,要求unzip命令覆盖原先的文件
unzip -o test.zip -d /tmp/