sunnyyangwang

1、安装压缩文件
[root@prometheus ~]# yum provides "*bunzip2"
[root@prometheus ~]# yum install bzip2

 

2、压缩解压示例:

 

3、操作命令

[root@promethus ~]# du -sh 0629/
48M 0629/
[root@promethus ~]# tar -czf 0629.tar.bz2 0629
[root@promethus ~]# du -sh 0629*
48M 0629
11M 0629.tar.bz2
[root@promethus ~]# mkdir /tmp/te
[root@promethus ~]# cp 0629.tar.bz2 /tmp/te/
[root@promethus ~]# cd /tmp/te/
[root@promethus te]# ls
0629.tar.bz2
[root@promethus te]# tar -xf 0629.tar.bz2
[root@promethus te]# ls
0629 0629.tar.bz2
[root@promethus te]# du -sh ./*
48M ./0629
11M ./0629.tar.bz2

将48M的文件压缩成11M,压缩程度非常高。

分类:

技术点:

相关文章:

  • 2021-12-01
  • 2021-12-02
  • 2021-12-17
  • 2021-11-17
  • 2021-07-17
猜你喜欢
  • 2022-12-23
  • 2021-10-20
  • 2021-11-14
  • 2022-12-23
  • 2022-01-09
  • 2022-12-23
  • 2021-04-05
相关资源
相似解决方案