From 01e2e24375a077a9d407235ab9e06cfe7f06719c Mon Sep 17 00:00:00 2001 From: "chen.yang" Date: Sat, 13 Nov 2021 16:14:07 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A5=E5=85=85=20zip=20=E5=A4=84=E7=90=86?= =?UTF-8?q?=E6=8C=87=E4=BB=A4.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: chen.yang --- .../Zip/Linux_系统下压缩和解压_Zip_文件.md | 28 ++++++++++++++++--- 1 file changed, 24 insertions(+), 4 deletions(-) diff --git a/Software/Applications/Zip/Linux_系统下压缩和解压_Zip_文件.md b/Software/Applications/Zip/Linux_系统下压缩和解压_Zip_文件.md index 57e6f54..a49d725 100644 --- a/Software/Applications/Zip/Linux_系统下压缩和解压_Zip_文件.md +++ b/Software/Applications/Zip/Linux_系统下压缩和解压_Zip_文件.md @@ -4,17 +4,37 @@ 安装指令如下: - sudo apt-get install zip unzip - sudo pacman -S zip unzip +```bash +sudo apt-get install zip unzip +sudo pacman -S zip unzip +``` ## 压缩 使用 zip 对多个文件或文件夹进行压缩如下: - zip ... +```bash +zip ... +# 递归 +zip -r ... +``` ## 解压 使用 unzip 将压缩包解压到指定目录下: - unzip -d +```bash +unzip -d +``` + +## 查看压缩包内容 + +```bash +zip -sf +``` + +## 删除压缩包中的内容 + +```bash +zip -dv +```