From 25471a281a96dbe0d2594eef17f078884fd67d19 Mon Sep 17 00:00:00 2001 From: nick Date: Wed, 13 May 2020 16:47:30 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20zip=20=E5=91=BD=E4=BB=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tar-zip-gzip-bzip2-xz.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tar-zip-gzip-bzip2-xz.md b/tar-zip-gzip-bzip2-xz.md index 2787272..ad604f0 100644 --- a/tar-zip-gzip-bzip2-xz.md +++ b/tar-zip-gzip-bzip2-xz.md @@ -31,6 +31,8 @@ unzip html.zip #解压在当前目录 unzip -o html.zip -d /usr/local/ #解压 html.zip 文件到 /usr/local/ 下 zip -qr html.zip ./html #将当前html目录递归压缩为 html.zip + +zip -r test_python.zip test_python -x "/test_python/venv/*" -x "/test_python/lib/__pycache__/*" #压缩目录,排除多个指定目录 ``` #### gzip 压缩命令,文件后缀.gz