tar打包–exclude参数注意事项 正确的使用方法,排除掉.aa文件 tar -cjvf ../tmp.dir --exclude=.aa . 错误的使用方法,忽略–exclude参数 tar -cjvf ../tmp.dir . --exclude=.aa tar打包* 和 .的区别 tar -cjvf ../tmp.dir . #打包所有文件,包括隐藏文件和目录 tar -cjvf ../tmp.dir * #不包括隐藏文件和目录