tar -czvf test.tar.gz <源文件> tar -xzvf test.tar.gz -C <目标文件夹> zip -r XXX.zip <源文件> unzip XXX.zip -d <目标文件夹>