解压命令
This commit is contained in:
parent
caaea48b2f
commit
e0f1e9f947
12
SUMMARY.md
12
SUMMARY.md
@ -1,12 +1,6 @@
|
||||
# Summary
|
||||
|
||||
* [一](一.md)
|
||||
* [1.1](1.1.md)
|
||||
* [1.2](1.2.md)
|
||||
* [二](二.md)
|
||||
* [2.1](2.1.md)
|
||||
* [2.2](2.2.md)
|
||||
* [三](三.md)
|
||||
* [3.1](3.1.md)
|
||||
* [3.2](3.2.md)
|
||||
* 打包压缩相关
|
||||
* [tar-zip-gzip-bzip2](tar-zip-gzip-bzip2.md)
|
||||
|
||||
|
||||
|
23
tar-zip-gzip-bzip2.md
Normal file
23
tar-zip-gzip-bzip2.md
Normal file
@ -0,0 +1,23 @@
|
||||
### tar 打包压缩命令
|
||||
|
||||
```
|
||||
tar -cxvf filename.tar #打包压缩并显示文件信息`
|
||||
|
||||
tar -zxvf filename.tar #解压并输出文件信息
|
||||
```
|
||||
|
||||
### zip 压缩命令
|
||||
|
||||
```
|
||||
zip -qr html.zip ./html #将当前html目录递归压缩保存文件名为html.zip
|
||||
|
||||
unzip -v html.zip #查看压缩文件信息
|
||||
|
||||
unzip html.zip #解压在当前目录
|
||||
|
||||
unzip -o html.zip -d /usr/local/ #解压html.zip文件到/usr/loca/下
|
||||
|
||||
zip -qr html.zip ./html #将当前html目录递归压缩为html.zip
|
||||
```
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user