• 欢迎访问速搜资源吧,如果在网站上找不到你需要的资源,可以在留言板上留言,管理员会尽量满足你!

【速搜问答】bz2是什么

问答 admin 2年前 (2020-09-02) 426次浏览 已收录 0个评论

汉英对照:
Chinese-English Translation:

bzip2(简称bz2) 是数据压缩算法及程序,也是linux下常见压缩文件格式,以后缀为.bz2 结尾的压缩文件。bzip2比传统的gzip或者ZIP的压缩效率更高,但是它的压缩速度较慢。

Bzip2 (bz2 for short) is a data compression algorithm and program. It is also a common compressed file format under Linux. It ends with. Bz2 suffix. Bzip2 is more efficient than traditional gzip or zip, but its compression speed is slower.

bzip2(简称 bz2) 是 Julian Seward 开发并按照自由软件/开源软件协议发布的数据压缩算法及程序。Seward 在 1996 年 7 月第一次公开发布了 bzip2 0.15 版,在随后几年中这个压缩工具稳定性得到改善并且日渐流行,Seward 在 2000 年晚些时候发布了 1.0 版。

Bzip2 (bz2 for short) is a data compression algorithm and program developed by Julian Seward and released according to the free software / open source software protocol. Seward released bzip2 0.15 for the first time in July 1996. In the following years, the stability of the compression tool improved and became more popular. Seward released version 1.0 in late 2000.

简介

brief introduction

linux 下常见的压缩文件格式,是由具有高压缩率的压缩工具 bzip2 生成,以后缀为.bz2 结尾的压缩文件。

The common compressed file format in Linux is generated by bzip2, a compression tool with high compression rate, and ends with. Bz2 suffix.

对应的解压程序是 bunzip2。

The corresponding decompression program is bunzip2.

在 windows 下,可以使用 WinMount、winrar 等来打开 bz2 文件。

In windows, you can use winmount, WinRAR and so on to open bz2 file.

压缩工具

Compression tools

bzip2 是一个基于 Burrows-Wheeler 变换的无损压缩软件,压缩效果比传统的 LZ77/LZ78 压缩演算法来得好。它免费提供,具有高质量的数据压缩能力。bzip2 利用先进的压缩技术,能够把文件压缩到 10%至 15%,压缩的速度和解压的效率都非常高!支持大多数压缩格式,包括 tar、gzip 等等。

Bzip2 is a lossless compression software based on burrows Wheeler transform. The compression effect is better than the traditional LZ77 / LZ78 compression algorithm. It is free of charge and has high quality data compression capability. Bzip2 uses advanced compression technology, can compress the file to 10% to 15%, the compression speed and decompression efficiency are very high! Supports most compression formats, including tar, gzip, and so on.

当前最新的版本是 1.0.5 ,公布 2008 年 4 月 17 日。

The current latest version is 1.0.5, released on April 17, 2008.

优点

advantage

1、能够很好的进行文件压缩。这样你就可以把硬盘中冗余繁多的文件,打包压缩整理。在网络上传送文件的时候,可以用 bzip2 打包压缩文件,以减少传送时间,提高效率。虽然 bzip2 不是最快的压缩工具,但是它已经足够的快且足够的好用。

1. Can be very good for file compression. In this way, you can pack and compress the redundant files in the hard disk. When transferring files on the network, bzip2 can be used to pack and compress files to reduce the transmission time and improve the efficiency. Although bzip2 is not the fastest compression tool, it is fast enough and easy to use.

2、它开放源码,且无需付费使用。

2. It’s open source and doesn’t have to pay for it.

3、支持修复介质错误。当你需要从包含了一些错误数据的备份磁盘上,修复或者获得含有错误数据的压缩文件中的数据时,bzip2 仍能完美的解压出没有被破坏的部分。

3. Supports repairing media errors. When you need to repair or obtain the data in the compressed file containing the wrong data from the backup disk containing some wrong data, bzip2 can still extract the undamaged part perfectly.

4、和 gzip 的用法类似

4. Similar to gzip

5、这是一款轻量级的工具。 它可以运行在任何含有 ANSI C 编译器的 32 位或者 64 位的主机上。

5. This is a lightweight tool. It can run on any 32-bit or 64 bit host with an ANSI C compiler.

压缩效率

Compression efficiency

bzip2 比传统的 gzip 或者 ZIP 的压缩效率更高,但是它的压缩速度较慢。从这点来说,它非常类似于出现的其它一些压缩算法。与 RAR 或者 ZIP 等其它不同的是,bzip2 只是一个数据压缩工具,而不是归档工具,在这一点上它与 gzip 类似。程序本身不包含用于多个文件、加密或者文档切分的工具,相反按照 UNIX 的传统需要使用如 tar 或者 GnuPG 这样的外部工具。

Bzip2 is more efficient than traditional gzip or zip, but its compression speed is slower. From this point of view, it is very similar to some other compression algorithms. Unlike rar or zip, bzip2 is just a data compression tool, not an archive tool, which is similar to gzip in this respect. The program itself does not contain tools for multiple files, encryption or document segmentation. Instead, according to the traditional UNIX needs, external tools such as tar or gnupg are used.

在有些情况下,按照绝对压缩效率来讲 bzip2 不如 7z 和 RAR 格式。根据摩尔定律的持续效应,计算时间越来越少并且也变得越来越不重要,所以类似的压缩方法变得越来越流行。根据作者的说法,在所有已知的压缩算法中,bzip2 可以排到百分之十到十五这样最好的一类算法中(PPM),尽管它在压缩速度时大致快两倍,而解压速度有六倍快。

In some cases, bzip2 is not as efficient as 7z and RAR formats in terms of absolute compression efficiency. According to the continuous effect of Moore’s law, the calculation time is less and less important, so similar compression methods become more and more popular. According to the author, of all known compression algorithms, bzip2 ranks among the best of 10-15 percent (PPM), although it is roughly twice as fast at compression and six times faster at decompression.

bzip2 使用 Burrows-Wheeler transform 将重复出现的字符序列转换成同样字母的字符串,然后用 move-to-front transform 进行处理,最后使用哈夫曼编码进行压缩。在 bzip2 中所有的数据块都是大小一样的纯文本数据块,它们可以用命令行变量进行选择,然后用从π的十进制表示得到的一个任意位序列标识成压缩文本。

Bzip2 uses burrows Wheeler transform to convert the repeated character sequence into the same letter string, then uses the move to front transform to process, and finally uses Huffman coding for compression. In bzip2, all data blocks are plain text blocks of the same size. They can be selected with command line variables, and then identified as compressed text by an arbitrary bit sequence obtained from the decimal representation of π.

起初,bzip2 的前一代bzip在数据块排列之后使用算术编码进行压缩,由于软件专利的限制已经不再使用算术编码。

At first, bzip2’s previous generation bZIP used arithmetic coding for compression after data block arrangement. Due to the limitation of software patent, arithmetic coding was no longer used.


速搜资源网 , 版权所有丨如未注明 , 均为原创丨转载请注明原文链接:【速搜问答】bz2是什么
喜欢 (0)
[361009623@qq.com]
分享 (0)
发表我的评论
取消评论
表情 贴图 加粗 删除线 居中 斜体 签到

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址