Linux bzip2 Command
Linux bzip2 command .bz2 file compression program.
new bzip2 compression algorithms, compression than conventional LZ77 / LZ78 compression algorithms to well. If you do not add any parameters, bzip2 will produce .bz2 compressed files compress the file, and delete the original file.
grammar
bzip2 [-cdfhkLstvVz][--repetitive-best][--repetitive-fast][- 压缩等级][要压缩的文件]
Parameters:
- -c or --stdout the compression and decompression of the results to standard output.
- -d or --decompress decompress it.
- -f or --force bzip2 compression or decompression, if the output file with the same name as an existing file, the default will not overwrite existing files. To override, use this parameter.
- -h or --help displays help.
- -k or --keep bzip2 compression or decompression, it will delete the original files. To retain the original file, use this parameter.
- -s or --small reduce the amount of memory used during program execution.
- -t or --test test .bz2 compressed file integrity.
- When the -v or --verbose compress or decompress files to display detailed information.
- -z or --compress enforcement compression.
- -L, - License,
- -V Or --version display version information.
- --repetitive-best if the file has information on recurring, you can use this parameter to improve compression.
- --repetitive-fast file if there are recurring information, you can use this parameter faster execution.
- - Level compression block size when compressed.
Examples
Decompress .bz2 files
[[email protected] ~]# bzip2 -v temp.bz2 //解压文件显示详细处理信息
Compressed file
[[email protected] ~]# bzip2 -c a.c b.c c.c
Check the file integrity
[[email protected] ~]# bzip2 -t temp.bz2