3.4.3 bzip2

使用bzip2压缩文件时,默认会产生以.bz2扩展名结尾的文件,这里使用-z参数进行压缩,使用-d参数进行解压缩。


  1. [root@localhost ~]# bzip2 install.log [root@localhost ~]# ls -l install.log.bz2

  2. -rw-r--r-- 1 root root 3588 Dec 10 03:08 install.log.bz2

  3. [root@localhost ~]# bzip2 -d install.log.bz2