# http://www.ijingxuan.com/ 当使用-C参数指定目录时,被打包的文件名貌似不能使用通配,必须全部写出来 tar zcvf abc.tar.gz -C ~/data a.txt b.txt c.txt tar zxvf abc.tar.gz -C /opt