bzip2, bzcat 压缩指令

来源:互联网 发布:网络病毒感染途径 编辑:程序博客网 时间:2024/06/10 05:55

bzip2, bzcat

[root@linux ~]# bzip2 [-cdz-] file

[root@linux ~]# bzcat file.bz2

-c  :将压缩数据输出到指定设备,不改变原文件,用重导向功能

-d  :解压缩

-z  :强制压缩

--  :压缩等级,同gzip

[root@linux tmp]# bzip2 -z man.config

[root@linux tmp]# bzcat man.config.bz2

[root@linux tmp]# bzip2 -d man.config.bz2

[root@linux tmp]# bzip2 -9 -c man.config > man.config.bz2