Linux bzip2命令详解

Linux bzip/bunzip2命令是.bz2文件的解压缩程序。

bunzip2可解压缩.bz2格式的压缩文件。bunzip2实际上是bzip2的符号连接,执行bunzip2与bzip2 -d的效果相同。

bzip常见命令参数

usage: bzip2 [flags and input files in any order]

-h --help           print this message
-d --decompress     force decompression
-z --compress       force compression
-k --keep           keep (don't delete) input files
-f --force          overwrite existing output files
-t --test           test compressed file integrity
-c --stdout         output to standard out
-q --quiet          suppress noncritical error messages
-v --verbose        be verbose (a 2nd -v gives more)
-L --license        display software version & license
-V --version        display software version & license
-s --small          use less memory (at most 2500k)
-1 .. -9            set block size to 100k .. 900k
--fast              alias for -1
--best              alias for –9

常用的命令展示

压缩文件: bzip2 -k messages 

解压文件: bunzip2 messages.bz2 

image

猜你喜欢

转载自www.cnblogs.com/ftl1012/p/9255955.html
今日推荐