Linux压缩文件-高强度压缩

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,压缩程度非常高。

posted @ 2019-04-16 15:41  wang_wei123  阅读(650)  评论(0编辑  收藏  举报