linux命令系列-zip(壓縮打包)
轉自:https://www.jianshu.com/p/311b28456ff5
linux命令系列-zip(壓縮打包)
原文地址http://www.daileinote.com/computer/linux_cmd/04
#常用命令選項
-d 從壓縮檔案內刪除指定的檔案。
-m 把檔案移到壓縮檔案中。
-0-9 壓縮比
-r 遞迴處理,所有檔案和子目錄一併處理。
-x<範本樣式> 壓縮時排除符合條件的檔案。
-c 互動為每一個檔案設定註釋
-z 互動多行註釋,英文句話.來表示結束
-e 互動設定密碼
-P 直接設定密碼
例子:
zip test.zip test.txt #新增壓縮檔案
zip test.zip test1.txt #移動檔案到壓縮包
zip -d test.zip test.txt #刪除test.txt
zip -r test.zip ./* #壓縮當前全部檔案到test.zip
zip test2.zip test2/* #打包目錄
zip test3.zip tests/* -x tests/ln.log #壓縮目錄,除了tests/ln.log
zip -r test.zip ./* -P 123 #設定密碼(明文設定密碼不太安全)
zip -r test.zip ./* -e #互動設定密碼(安全)
#設定壓縮比
#-0不壓縮,-9最高壓縮,預設為-6
zip test.zip test.txt -6
原文地址http://www.daileinote.com/computer/linux_cmd/04
相關文章
- 壓縮解壓命令(tar, zip)
- Linux下zip壓縮和unzip解壓縮命令全解Linux
- Linux命令 tar 打包解壓縮Linux
- zip壓縮和解壓縮
- CentOS中zip壓縮和unzip解壓縮命令詳解CentOS
- Linux精講——打包和壓縮tar、gzip、bzip2、xz、zipLinux
- linux中常見的打包壓縮命令——tar、jarLinuxJAR
- Linux打包壓縮解壓工具Linux
- linux壓縮解壓打包解包Linux
- linux打包與壓縮Linux
- zip解壓縮
- linux壓縮和解壓縮命令Linux
- CentOS7中zip壓縮和unzip解壓縮命令詳解CentOS
- 簡單的zip壓縮和解壓縮
- zip壓縮檔案處理方案(Zip4j壓縮和解壓)
- linux下壓縮解壓縮命令Linux
- linux壓縮和解壓縮命令整理Linux
- Linux壓縮及解壓縮命令Linux
- linux壓縮和解壓縮命令大全Linux
- Java使用Zip壓縮Java
- 打包/壓縮
- linux壓縮命令Linux
- Linux tar壓縮和解壓縮等命令Linux
- linux的tar命令詳情;linux多個檔案壓縮打包到一個壓縮檔案Linux
- 利用Java實現zip壓縮/解壓縮 (轉)Java
- linux壓縮(解壓縮)命令詳解-轉Linux
- LINUX(解)壓縮命令Linux
- 使用org.apache.tools.zip實現zip壓縮和解壓Apache
- 在 Linux 上壓縮檔案:zip 命令的各種變體及用法Linux
- Linux 常用基本命令 壓縮 解壓縮 tarLinux
- linux下壓縮、解壓命令大全Linux
- linux檔案壓縮和解壓命令Linux
- linux壓縮和解壓命令總結Linux
- node ~ zip壓縮 && 檔案加密加密
- Ashampoo ZIP Pro 4,解壓縮
- ZipArchive解壓縮zip檔案Hive
- Linux常用的壓縮命令Linux
- Linux常用命令(壓縮命令)Linux