系统相关
首页 > 系统相关> > linux 中 tar.lzma 文件的解压

linux 中 tar.lzma 文件的解压

作者:互联网

 

001、解压 .tar.lzma文件

root@PC1:/home/test2/test# ls
test_chr22.tar.lzma        ## 增加 -k 参数  保留源文件 unlzma -k test_chr22.tar.lzma
root@PC1:/home/test2/test# unlzma test_chr22.tar.lzma     ## 解压缩, 或者:lzma -d test_chr22.tar.lzma  
root@PC1:/home/test2/test# ls
test_chr22.tar
root@PC1:/home/test2/test# tar -xvf test_chr22.tar        ## 解包
test_chr22.map
root@PC1:/home/test2/test# ls
test_chr22.map  test_chr22.tar
root@PC1:/home/test2/test# head -n 5 test_chr22.map
22 1 0 16050408
22 2 0 16050612
22 3 0 16050678
22 4 0 16050984
22 5 0 16051107

 

002、压缩为tar.lzma

root@PC1:/home/test2/test# ls
test_chr22.map
root@PC1:/home/test2/test# tar -cvf test_chr22.map.tar test_chr22.map    ## 打包
test_chr22.map
root@PC1:/home/test2/test# ls
test_chr22.map  test_chr22.map.tar
root@PC1:/home/test2/test#
root@PC1:/home/test2/test# lzma -z test_chr22.map.tar                    ## 压缩
root@PC1:/home/test2/test# ls
test_chr22.map  test_chr22.map.tar.lzma

 

标签:lzma,map,test2,tar,chr22,linux,test,home
来源: https://www.cnblogs.com/liujiaxin2018/p/16539731.html