HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

pbzip2 — A parallel implementation of the `bzip2` file compressor. See also: `bzip2`, `tar`. More information

Submitted by: @import:tldr-pages··
0
Viewed 0 times
thecommandparallelbzip2clifilepbzip2implementation

Problem

How to use the pbzip2 command: A parallel implementation of the bzip2 file compressor. See also: bzip2, tar. More information: <https://manned.org/pbzip2>.

Solution

pbzip2 — A parallel implementation of the bzip2 file compressor. See also: bzip2, tar. More information: <https://manned.org/pbzip2>.

Compress a file:
pbzip2 {{path/to/file}}


Compress a file using the specified number of processors:
pbzip2 -p{{4}} {{path/to/file}}


Compress in combination with tar (options can be passed to pbzip2):
tar -cf {{path/to/compressed_file}}.tar.bz2 {{[-I|--use-compress-program]}} "pbzip2 {{-option1 -option2 ...}}" {{path/to/file}}


Decompress a file:
pbzip2 {{[-d|--decompress]}} {{path/to/compressed_file.bz2}}


Display help:
pbzip2 {{[-h|--help]}}

Code Snippets

Compress a file

pbzip2 {{path/to/file}}

Compress a file using the specified number of processors

pbzip2 -p{{4}} {{path/to/file}}

Compress in combination with tar (options can be passed to `pbzip2`)

tar -cf {{path/to/compressed_file}}.tar.bz2 {{[-I|--use-compress-program]}} "pbzip2 {{-option1 -option2 ...}}" {{path/to/file}}

Decompress a file

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

Display help

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

Context

tldr-pages: common/pbzip2

Revisions (0)

No revisions yet.