From 066a4fdc21d97bad5e6fe7c84fc0f0d0243c37d8 Mon Sep 17 00:00:00 2001 From: nick Date: Tue, 24 Apr 2018 23:41:31 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9tar=E5=91=BD=E4=BB=A4?= =?UTF-8?q?=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tar-zip-gzip-bzip2.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tar-zip-gzip-bzip2.md b/tar-zip-gzip-bzip2.md index 86a1db0..5b9558c 100644 --- a/tar-zip-gzip-bzip2.md +++ b/tar-zip-gzip-bzip2.md @@ -15,9 +15,11 @@ tar -xjvf filename.tar.bz2 #解压使用gzip2压缩并显示文件信息` ## zip 压缩命令 ``` -zip -qr html.zip ./html #将当前html目录递归压缩保存文件名为html.zip +zip html.zip./html #压缩当前目录下html目录或文件 -unzip -v html.zip #查看压缩文件信息 +unzip html.zip #解压在当前目录或文件 + +zip -qr html.zip ./html #将当前html目录递归压缩保存文件名为html.zip unzip html.zip #解压在当前目录