1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-05 10:35:23 +02:00
tldr/pages/common/bzip2.md
Kristopher 075d0b0ca8
bzip2: adding variants to description (#16895)
Co-authored-by: Machiavelli <145562237+MachiavelliII@users.noreply.github.com>
2025-06-19 22:13:53 +03:00

798 B

bzip2

A block-sorting file compressor. See also: bzcat, bunzip2, bzip2recover. More information: https://manned.org/bzip2.

  • Compress a file:

bzip2 {{path/to/file_to_compress}}

  • Decompress a file:

bzip2 {{[-d|--decompress]}} {{path/to/compressed_file.bz2}}

  • Decompress a file to stdout:

bzip2 {{[-dc|--decompress --stdout]}} {{path/to/compressed_file.bz2}}

  • Test the integrity of each file inside the archive file:

bzip2 {{[-t|--test]}} {{path/to/compressed_file.bz2}}

  • Show the compression ratio for each file processed with detailed information:

bzip2 {{[-v|--verbose]}} {{path/to/compressed_files.bz2}}

  • Decompress a file overwriting existing files:

bzip2 {{[-f|--force]}} {{path/to/compressed_file.bz2}}

  • Display help:

bzip2 {{[-h|--help]}}