Update `tar.md` (#439)

This commit is contained in:
小弟调调™ 2022-10-28 08:41:03 +08:00 committed by GitHub
parent ce53d4aaf5
commit f682765936
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -473,11 +473,16 @@ tar -jcvf log.tar.bz2 log2012.log 打包后,以 bzip2 压缩
```shell
tar -xvf portal-web-v2.0.0.tar --strip-components 1 -C 指定目录
```
示例
```shell
tar -xvf xxx.tar.gz -C /usr/src/a
/usr/src/a/xxxxx/src/opp/b.txt
```
```shell
tar -xvf xxx.tar.gz -strip-components=1 -C /usr/src/a
/usr/src/a/src/opp/b.txt
```