# 当使用-C参数指定目录时,被打包的文件名貌似不能使用通配,必须全部写出来tar zcvf abc.tar.gz -C ~/data a.txt b.txt c.txt tar zxvf abc.tar.gz -C /opt//该片段来自于http://www.codesnippet.cn/detail/150520133365.html
来源: http://www.codesnippet.cn/detail/150520133365.html