From 0d2ce1c474e4870aa821d670a594691bd7a2ae13 Mon Sep 17 00:00:00 2001 From: nick Date: Tue, 24 Apr 2018 23:47:50 +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 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tar-zip-gzip-bzip2.md b/tar-zip-gzip-bzip2.md index 5ec6525..9b59bb9 100644 --- a/tar-zip-gzip-bzip2.md +++ b/tar-zip-gzip-bzip2.md @@ -1,13 +1,13 @@ ## tar 打包压缩命令 ``` -tar -czvf filename.tar.gz test #打包test目录并使用gzip压缩并显示文件信息` +tar -czvf filename.tar.gz test #打包test目录并使用gzip压缩并显示文件信息 tar -xzvf filename.tar.gz #解压gzip文件并输出文件信息 -tar -cjvf filename.tar.bz2 test #打包test目录并使用gzip2压缩并显示文件信息` +tar -cjvf filename.tar.bz2 test #打包test目录并使用gzip2压缩并显示文件信息 -tar -xjvf filename.tar.bz2 #解压使用gzip2压缩并显示文件信息` +tar -xjvf filename.tar.bz2 #解压使用gzip2压缩并显示文件信息 ``` 补充:`-v` 为显示信息 @@ -23,7 +23,7 @@ zip -qr html.zip ./html #将当前html目录递归压缩保存文件名为html. unzip html.zip #解压在当前目录 -unzip -o html.zip -d /usr/local/ #解压html.zip文件到/usr/loca/下 +unzip -o html.zip -d /usr/local/ #解压html.zip文件到/usr/local/下 zip -qr html.zip ./html #将当前html目录递归压缩为html.zip ```