linux unzip程式簡介__linux

來源:互聯網
上載者:User

1、簡介

    程式unzip可以解壓縮zip檔案。


2、文法

  Usage: unzip [-Z] [-opts[modifiers]] file[.zip] [list] [-x xlist] [-d exdir]
  Default action is to extract files in list, except those in xlist, to exdir;    file[.zip] may be a wildcard.  -Z => ZipInfo mode ("unzip -Z" for usage).

  -p  extract files to pipe, no messages 
  -l  顯示壓縮檔內所包含的檔案。
  -f  更新現有的檔案
  -t  檢查壓縮檔是否正確
  -u  update files, create if necessary      
  -z  display archive comment
  -x 指定不要處理.zip壓縮檔中的哪些檔案 
  -d 指定檔案解壓縮後所要儲存的目錄
modifiers:                                   
  -q  quiet mode (-qq => quieter)
  -n  never overwrite existing files         
  -a  auto-convert any text files
  -o  overwrite files WITHOUT prompting      
  -aa treat ALL files as text
  -j  junk paths (do not make directories)   
  -v  be verbose/print version info
  -C  match filenames case-insensitively     
  -L  make (some) names lowercase
  -X  restore UID/GID info                   
  -V  retain VMS version numbers
  -K  keep setuid/setgid/tacky permissions   
  -M  pipe through "more" pager


3、樣本

    1)解壓縮war包到指定的目錄

       unzip -d test blog.war


參考文獻:百度百科

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.