2016-04-21 13:44:40 +01:00
|
|
|
# bzip2
|
|
|
|
|
|
|
|
> A block-sorting file compressor.
|
2022-12-19 10:12:15 +00:00
|
|
|
> More information: <https://manned.org/bzip2>.
|
2016-04-21 13:44:40 +01:00
|
|
|
|
2019-05-28 17:10:20 +01:00
|
|
|
- Compress a file:
|
2016-04-21 13:44:40 +01:00
|
|
|
|
|
|
|
`bzip2 {{path/to/file_to_compress}}`
|
|
|
|
|
2019-05-28 17:10:20 +01:00
|
|
|
- Decompress a file:
|
2016-04-21 13:44:40 +01:00
|
|
|
|
|
|
|
`bzip2 -d {{path/to/compressed_file.bz2}}`
|
|
|
|
|
2019-05-28 17:10:20 +01:00
|
|
|
- Decompress a file to standard output:
|
2016-04-21 13:44:40 +01:00
|
|
|
|
|
|
|
`bzip2 -dc {{path/to/compressed_file.bz2}}`
|
2022-12-19 10:12:15 +00:00
|
|
|
|
|
|
|
- Test the integrity of each file inside the archive file:
|
|
|
|
|
|
|
|
`bzip2 --test {{path/to/compressed_file.bz2}}`
|
|
|
|
|
|
|
|
- Show the compression ratio for each file processed with detailed information:
|
|
|
|
|
|
|
|
`bzip2 --verbose {{path/to/compressed_files.bz2}}`
|
|
|
|
|
|
|
|
- Decompress a file overwriting existing files:
|
|
|
|
|
|
|
|
`bzip2 --force {{path/to/compressed_file.bz2}}`
|
|
|
|
|
|
|
|
- Display help:
|
|
|
|
|
|
|
|
`bzip2 -h`
|