2016-04-21 15:44:40 +03:00
|
|
|
# bzip2
|
|
|
|
|
|
|
|
> A block-sorting file compressor.
|
2022-12-19 07:12:15 -03:00
|
|
|
> More information: <https://manned.org/bzip2>.
|
2016-04-21 15:44:40 +03:00
|
|
|
|
2019-05-28 18:10:20 +02:00
|
|
|
- Compress a file:
|
2016-04-21 15:44:40 +03:00
|
|
|
|
|
|
|
`bzip2 {{path/to/file_to_compress}}`
|
|
|
|
|
2025-03-28 05:26:23 +02:00
|
|
|
- Decompress a file:
|
2016-04-21 15:44:40 +03:00
|
|
|
|
2025-03-28 05:26:23 +02:00
|
|
|
`bzip2 {{[-d|--decompress]}} {{path/to/compressed_file.bz2}}`
|
2016-04-21 15:44:40 +03:00
|
|
|
|
2025-03-28 05:26:23 +02:00
|
|
|
- Decompress a file to `stdout`:
|
2016-04-21 15:44:40 +03:00
|
|
|
|
2025-03-28 05:26:23 +02:00
|
|
|
`bzip2 {{[-dc|--decompress --stdout]}} {{path/to/compressed_file.bz2}}`
|
2022-12-19 07:12:15 -03:00
|
|
|
|
|
|
|
- Test the integrity of each file inside the archive file:
|
|
|
|
|
2025-03-28 05:26:23 +02:00
|
|
|
`bzip2 {{[-t|--test]}} {{path/to/compressed_file.bz2}}`
|
2022-12-19 07:12:15 -03:00
|
|
|
|
|
|
|
- Show the compression ratio for each file processed with detailed information:
|
|
|
|
|
2025-03-28 05:26:23 +02:00
|
|
|
`bzip2 {{[-v|--verbose]}} {{path/to/compressed_files.bz2}}`
|
2022-12-19 07:12:15 -03:00
|
|
|
|
|
|
|
- Decompress a file overwriting existing files:
|
|
|
|
|
2025-03-28 05:26:23 +02:00
|
|
|
`bzip2 {{[-f|--force]}} {{path/to/compressed_file.bz2}}`
|
2022-12-19 07:12:15 -03:00
|
|
|
|
|
|
|
- Display help:
|
|
|
|
|
2025-03-28 05:26:23 +02:00
|
|
|
`bzip2 {{[-h|--help]}}`
|