linux常用命令之tar命令详解和使用实例(3)
代码如下: [root@localhost test]# tree scf scf |-- bin |-- doc |-- lib `-- service `-- deploy |-- info `-- product 7 directories, 0 files [root@localhost test]# tar --exclude scf/service -zcvf scf.
代码如下:
[root@localhost test]# tree scf
scf
|-- bin
|-- doc
|-- lib
`-- service
`-- deploy
|-- info
`-- product
7 directories, 0 files
[root@localhost test]# tar --exclude scf/service -zcvf scf.tar.gz scf/*
scf/bin/
scf/doc/
scf/lib/
[root@localhost test]#</p> <p>
精彩图集
精彩文章