添加 zip 命令

This commit is contained in:
nick 2020-05-13 17:04:31 +08:00
parent 25471a281a
commit ddc131962d

View File

@ -32,6 +32,8 @@ unzip -o html.zip -d /usr/local/ #解压 html.zip 文件到 /usr/local/ 下
zip -qr html.zip ./html #将当前html目录递归压缩为 html.zip 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__/*" #压缩目录,排除多个指定目录 zip -r test_python.zip test_python -x "/test_python/venv/*" -x "/test_python/lib/__pycache__/*" #压缩目录,排除多个指定目录
``` ```