解壓unzip用法

2021-08-24 20:18:36 字數 582 閱讀 8973

1、把檔案解壓到當前目錄下

unzip test.zip
2、如果要把檔案解壓到指定的目錄下,需要用到-d引數。

unzip -d /temp test.zip
3、解壓的時候,有時候不想覆蓋已經存在的檔案,那麼可以加上-n引數

unzip -n test.zip

unzip -n -d /temp test.zip

4、只看一下zip壓縮包中包含哪些檔案,不進行解壓縮

unzip -l test.zip
5、檢視顯示的檔案列表還包含壓縮比率

unzip -v test.zip
6、檢查zip檔案是否損壞

unzip -t test.zip
7、將壓縮檔案test.zip在指定目錄tmp下解壓縮,如果已有相同的檔案存在,要求unzip命令覆蓋原先的檔案

unzip -o test.zip -d /tmp/

解壓unzip用法

1 把檔案解壓到當前目錄下 unzip test.zip2 如果要把檔案解壓到指定的目錄下,需要用到 d引數。unzip d temp test.zip3 解壓的時候,有時候不想覆蓋已經存在的檔案,那麼可以加上 n引數 unzip n test.zip unzip n d temp test.zip...

解壓unzip用法

1 把檔案解壓到當前目錄下 unzip test.zip2 如果要把檔案解壓到指定的目錄下,需要用到 d引數。unzip d temp test.zip3 解壓的時候,有時候不想覆蓋已經存在的檔案,那麼可以加上 n引數 unzip n test.zip unzip n d temp test.zip...

Linux 解壓unzip用法

1 把檔案解壓到當前目錄下 unzip test.zip2 如果要把檔案解壓到指定的目錄下,需要用到 d引數。unzip d temp test.zip3 解壓的時候,有時候不想覆蓋已經存在的檔案,那麼可以加上 n引數 unzip n test.zip unzip n d temp test.zip...