tar -cvf mytar.tar ./ 压缩当前文件夹到mytar.tar
tar -xvf mytar.tar 解压包中的内容到当前文件夹
echo ./images >> excludefiles 向文件中追加文字
tar -cvfX mytest.tar excludefiles ./* 排除excludefiles文件中路径压缩到mytest.tar
tar -xvf mytar.tar 解压包中的内容到当前文件夹
echo ./images >> excludefiles 向文件中追加文字
tar -cvfX mytest.tar excludefiles ./* 排除excludefiles文件中路径压缩到mytest.tar