tar 增加配出文件/夹参数.
Signed-off-by: chen.yang <chen.yang@yuzhen-iot.com>
This commit is contained in:
parent
5cfa9aa58a
commit
68fbe703b5
|
@ -22,6 +22,8 @@
|
|||
tar -cvzf <tar file name>.tar.gz <file or folder>
|
||||
# bz2:bz2 是 Linux 下常见的压缩文件格式,是由具有高压缩率的压缩工具 bzip2 生成,以后缀为 .bz2 结尾的压缩文件。
|
||||
tar -cvjf <tar file name>.tar.bz2 <file or folder>
|
||||
# 排除文件/文件夹
|
||||
tar -cvzf <tar file name>.tar.gz --exclude=<exclude file> --exclude=<exclude dir> <file or folder>
|
||||
```
|
||||
|
||||
## 解压缩
|
||||
|
|
Loading…
Reference in New Issue