From ddc131962dbe7fe58a6f0ab4653b9a9609f814a0 Mon Sep 17 00:00:00 2001 From: nick Date: Wed, 13 May 2020 17:04:31 +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 ad604f0..0ccf4bc 100644 --- a/tar-zip-gzip-bzip2-xz.md +++ b/tar-zip-gzip-bzip2-xz.md @@ -32,6 +32,8 @@ 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/index.py" #压缩目录,排除指定文件 + zip -r test_python.zip test_python -x "/test_python/venv/*" -x "/test_python/lib/__pycache__/*" #压缩目录,排除多个指定目录 ```