0
点赞
收藏
分享

微信扫一扫

linux服务器解压 .gz压缩文件



linux服务器上有 .gz格式压缩文件,注意不是 .tar.gz



文章目录


  • ​​gzip解压​​
  • ​​gzip压缩​​
  • ​​.tar.gz压缩与解压​​


​​tar压缩​​​​tar解压​​



下面是例子

解压前

demo.txt.gz

gzip解压

gzip -d demo.txt.gz

解压后,ll 查看一下,只有demo.txt文件啦

压缩的话也简单鸭

压缩前 test.txt

gzip压缩

gzip -v test.txt

压缩后 test.txt.gz

.tar.gz压缩与解压

tar压缩

tar -zcvf demo.tar.gz demo

tar解压

tar -zxvf demo.tar.gz

你学会了没?



举报

相关推荐

0 条评论