Skip to content

Commit

Permalink
Update tar.md (#439)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove authored Oct 28, 2022
1 parent ce53d4a commit f682765
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions command/tar.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
Expand Down

0 comments on commit f682765

Please sign in to comment.