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
复制代码

 

posted @   小鲨鱼2018  阅读(1975)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 震惊!C++程序真的从main开始吗?99%的程序员都答错了
· 【硬核科普】Trae如何「偷看」你的代码?零基础破解AI编程运行原理
· 单元测试从入门到精通
· 上周热点回顾(3.3-3.9)
· winform 绘制太阳,地球,月球 运作规律
历史上的今天:
2021-07-21 R语言批量提取指定列数据
2021-07-21 linux 中awk, split的应用
2021-07-21 linux系统中批量提取指定列的数据
2021-07-21 linux系统中批量提取指定行的数据
2021-07-21 linux系统中nl命令
2021-07-21 linux系统中shell脚本计算平方根 bc命令的使用
2021-07-21 linux 系统中pgrep命令
点击右上角即可分享
微信分享提示