Linux Commands Reference - Complete Linux Command Guide

Comprehensive Linux command reference with 150+ commands. Search, filter by category, and view detailed usage examples.

Share
Back to commands

bunzip2

Decompress bzip2 format files

Syntax

bunzip2 [OPTION]... [FILE]...

Common Options

-kKeep compressed file
-cWrite to stdout
-fForce decompress
-tTest integrity
-vVerbose output

Common Examples

bunzip2 file.txt.bz2

Decompress bzip2 file

bunzip2 -k file.txt.bz2

Decompress keeping .bz2

bunzip2 -c file.txt.bz2 > newfile.txt

Decompress to stdout

bunzip2 -f file.txt.bz2

Force decompress

bunzip2 -t file.txt.bz2

Test file integrity

Related Commands

Related Tools

More Code & Dev Tools