68 lines
2.7 KiB
Markdown
68 lines
2.7 KiB
Markdown
# pbzip2
|
||
|
||
#### 介绍
|
||
|
||
pbzip2是基于bzip2发行的多线程版本,压缩比与bzip2大致相同,但压缩时间上比bzip2减少了线程倍数,
|
||
这是因为bzip2是单线程工作,而bpzip2是多线程的
|
||
|
||
pbzip2的输出压缩文件兼容bzip2 v1.0.2以及更新的版本(pbzip2压缩的压缩包可用bzip2进行解压缩)
|
||
|
||
#### 软件架构
|
||
软件架构说明
|
||
|
||
|
||
#### 安装教程
|
||
|
||
1.在欧拉操作系统下,可通过运行如下命令进行安装:
|
||
> dnf install pbzip2
|
||
|
||
|
||
#### 使用说明
|
||
|
||
````
|
||
Usage: pbzip2 [-1 .. -9] [-b#cdfhklm#p#qrS#tVz] <filename> <filename2> <filenameN>
|
||
-1 .. -9 set BWT block size to 100k .. 900k (default 900k)
|
||
-b# Block size in 100k steps (default 9 = 900k)
|
||
-c,--stdout Output to standard out (stdout)
|
||
-d,--decompress Decompress file
|
||
-f,--force Overwrite existing output file
|
||
-h,--help Print this help message
|
||
-k,--keep Keep input file, don't delete
|
||
-l,--loadavg Load average determines max number processors to use
|
||
-m# Maximum memory usage in 1MB steps (default 100 = 100MB)
|
||
-p# Number of processors to use (default: autodetect [1])
|
||
-q,--quiet Quiet mode (default)
|
||
-r,--read Read entire input file into RAM and split between processors
|
||
-S# Child thread stack size in 1KB steps (default stack size if unspecified)
|
||
-t,--test Test compressed file integrity
|
||
-v,--verbose Verbose mode
|
||
-V,--version Display version info for pbzip2 then exit
|
||
-z,--compress Compress file (default)
|
||
--ignore-trailing-garbage=# Ignore trailing garbage flag (1 - ignored; 0 - forbidden)
|
||
|
||
If no file names are given, pbzip2 compresses or decompresses from standard input to standard output.
|
||
|
||
Example: pbzip2 -b15vk myfile.tar
|
||
Example: pbzip2 -p4 -r -5 myfile.tar second*.txt
|
||
Example: tar cf myfile.tar.bz2 --use-compress-prog=pbzip2 dir_to_compress/
|
||
Example: pbzip2 -d -m500 myfile.tar.bz2
|
||
Example: pbzip2 -dc myfile.tar.bz2 | tar x
|
||
Example: pbzip2 -c < myfile.txt > myfile.txt.bz2
|
||
````
|
||
|
||
#### 参与贡献
|
||
|
||
1. Fork 本仓库
|
||
2. 新建 Feat_xxx 分支
|
||
3. 提交代码
|
||
4. 新建 Pull Request
|
||
|
||
|
||
#### 码云特技
|
||
|
||
1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md
|
||
2. 码云官方博客 [blog.gitee.com](https://blog.gitee.com)
|
||
3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解码云上的优秀开源项目
|
||
4. [GVP](https://gitee.com/gvp) 全称是码云最有价值开源项目,是码云综合评定出的优秀开源项目
|
||
5. 码云官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help)
|
||
6. 码云封面人物是一档用来展示码云会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/) |