Bzip2

From LQWiki
Jump to navigation Jump to search

bzip2 uses a sophisticated algorithm to compress files that is up to 30 percent faster than that used by gzip.

Usage

bzip2 [option] filename

By default, bzip2 does not overwrite existing output files. Use the --force option to override this setting. However, the program deletes input files by default. Use the --keep option to override this setting. The default file extension is .bz2.


Examples

bzip2 test.dat - Compresses the specified file

bzip2 --keep test.dat - Compresses the specified file without overwriting the input file.

See also