LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

bunzip2

Decompress bzip2 compressed files

TLDR

Decompress a file (removes the .bz2 original)
$ bunzip2 [file.txt.bz2]
copy
Decompress keeping the compressed file
$ bunzip2 -k [file.txt.bz2]
copy
Decompress to stdout (useful for piping)
$ bunzip2 -c [file.txt.bz2] > [file.txt]
copy
Test file integrity without decompressing
$ bunzip2 -t [file.txt.bz2]
copy
Force overwrite of existing output files
$ bunzip2 -f [file.txt.bz2]
copy

SYNOPSIS

bunzip2 [options] [file...]

DESCRIPTION

bunzip2 decompresses files compressed with bzip2. It's equivalent to `bzip2 -d` and removes the .bz2 file after successful decompression.The tool is a companion to bzip2 for extracting compressed files.

PARAMETERS

-k, --keep

Keep compressed file
-f, --force
Overwrite existing files
-c, --stdout
Write to standard output
-t, --test
Test file integrity
-v, --verbose
Verbose mode
-q, --quiet
Suppress warnings
-s, --small
Reduce memory usage at the cost of speed (uses about 2.5 MB per file)

INSTALL

sudo apt install bzip2
copy
sudo dnf install bzip2
copy
sudo pacman -S bzip2
copy
sudo apk add bzip2
copy
sudo zypper install bzip2
copy
brew install bzip2
copy
nix profile install nixpkgs#bzip2
copy

CAVEATS

Removes original .bz2 file unless -k used. Requires memory proportional to compression block size. Cannot decompress corrupted files.

HISTORY

bunzip2 was included with bzip2 since its creation by Julian Seward in 1996.

SEE ALSO

bzip2(1), bzcat(1), gunzip(1), xz(1)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid