Linux bzip2命令詳解

Linux bzip/bunzip2命令是.bz2文件的解壓縮程序。html

bunzip2可解壓縮.bz2格式的壓縮文件。bunzip2其實是bzip2的符號鏈接,執行bunzip2與bzip2 -d的效果相同。shell

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

相關文章
相關標籤/搜索