command2Linux reference manual
Linux Command大全
command2Linux bzip2command is .bz
bzip2file compression program.77/adopts a new compression algorithm, with better compression effects than traditional LZ78LZ2compression algorithm is better. If no parameters are added, bzip2After compressing the file, a .bz
compression file, and delete the original file.
bzip2 [-cdfhkLstvVz][--repetitive-best][--repetitive-fast][- Compression Level][File to be Compressed]
Parameters:
- -c or--stdout Send the result of compression and decompression to standard output.
- -d or--decompress Execute decompression.
- -f or--force bzip2By default, the existing file will not be overwritten during compression or decompression if the output file has the same name as the existing file. To overwrite, please use this parameter.
- -h or--help Display help.
- -k or--keep bzip2After compression or decompression, the original file will be deleted. To keep the original file, please use this parameter.
- -s or--small Reduce the amount of memory used by the program during execution.
- -t or--test Test .bz2Integrity of compressed files.
- -v or--verbose Display detailed information during compression or decompression.
- -z or--compress Force compression to be executed.
- -L,--license,
- -V or--version Display version information.
- --repetitive-best If there are repetitive data in the file, this parameter can be used to improve the compression effect.
- --repetitive-fast If there are repetitive data in the file, this parameter can be used to speed up the execution speed.
- -Compression Level Block size during compression.
Online Examples
Uncompress .bz2File
[[email protected] ~]# bzip2 -v temp.bz2 //Uncompress File and Display Detailed Processing Information
Compress File
[[email protected] ~]# bzip2 -c a.c b.c c.c
Check File Integrity
[[email protected] ~]# bzip2 -t temp.bz2
Linux Command大全