commands.sh

bzip2

all

A block-sorting file compressor. See also: `bzcat`, `bunzip2`, `bzip2recover`.

More info →

Options (6)

-d, --decompressboolean

Decompress a file

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

Decompress a file to `stdout`

Example: bzip2 {{[-dc|--decompress --stdout]}} {{path/to/compressed_file.bz2}}
-t, --testboolean

Test the integrity of each file inside the archive file

Example: bzip2 {{[-t|--test]}} {{path/to/compressed_file.bz2}}
-v, --verboseboolean

Show the compression ratio for each file processed with detailed information

Example: bzip2 {{[-v|--verbose]}} {{path/to/compressed_files.bz2}}
-f, --forceboolean

Decompress a file overwriting existing files

Example: bzip2 {{[-f|--force]}} {{path/to/compressed_file.bz2}}
-h, --helpboolean

Display help

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

Examples (7)

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]
made by @shridhargupta | data from tldr-pages