From ffb8cec72eed9df533f60e3e6a51adf47f626d33 Mon Sep 17 00:00:00 2001 From: nick Date: Sat, 2 Jun 2018 14:37:31 +0800 Subject: [PATCH] add --- tar-zip-gzip-bzip2-xz.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tar-zip-gzip-bzip2-xz.md b/tar-zip-gzip-bzip2-xz.md index fd12249..2787272 100644 --- a/tar-zip-gzip-bzip2-xz.md +++ b/tar-zip-gzip-bzip2-xz.md @@ -1,6 +1,10 @@ #### tar 打包压缩命令 ``` +tar -cf php.tar php-7.2.6 #打包目录不压缩 + +tar -xf php.tar #解压目录 + tar -czvf filename.tar.gz test #打包 test 目录并使用 gzip 压缩并显示文件信息 tar -xzvf filename.tar.gz #解压 gzip 文件并输出文件信息