linux 中 tgz压缩文件的生成及解压
001、tgz文件的生成
root@DESKTOP-1N42TVH:/home/test5# ls outcome.map outcome.ped root@DESKTOP-1N42TVH:/home/test5# md5sum outcome.* 3512684a76436a00efbeda68cc83b7fc outcome.map 8e852472139a737798f0c7c7ae468d20 outcome.ped root@DESKTOP-1N42TVH:/home/test5# ls outcome.map outcome.ped root@DESKTOP-1N42TVH:/home/test5# tar -czvf test.tgz outcome.* outcome.map outcome.ped root@DESKTOP-1N42TVH:/home/test5# ls outcome.map outcome.ped test.tgz
002、tgz文件的解压缩
root@DESKTOP-1N42TVH:/home/test5/test# ls test.tgz root@DESKTOP-1N42TVH:/home/test5/test# tar -xzvf test.tgz outcome.map outcome.ped root@DESKTOP-1N42TVH:/home/test5/test# ls outcome.map outcome.ped test.tgz root@DESKTOP-1N42TVH:/home/test5/test# md5sum outcome.* 3512684a76436a00efbeda68cc83b7fc outcome.map 8e852472139a737798f0c7c7ae468d20 outcome.ped