bunzip2
Quick Reference
Command Name:
bunzip2
Category:
file compression
Platform:
Linux
Basic Usage:
Common Use Cases
- 1
File decompression
Decompress bzip2 compressed files
- 2
Archive extraction
Extract files from bzip2 compressed archives
- 3
Data recovery
Recover data from compressed backups
- 4
File processing
Process compressed files in automated workflows
Syntax
bunzip2 [OPTIONS] [FILE...]
Options
Option | Description |
---|---|
-c, --stdout |
Decompress to standard output |
-d, --decompress |
Force decompression mode |
-f, --force |
Force overwrite of output files |
-k, --keep |
Keep input files after decompression |
-s, --small |
Use less memory (at the expense of speed) |
-t, --test |
Test compressed file integrity |
-v, --verbose |
Show verbose output |
-L, --license |
Display software license |
-V, --version |
Display version information |
-q, --quiet |
Suppress all warnings |
Examples
How to Use These Examples
The examples below show common ways to use the bunzip2
command. Try them in your terminal to see the results. You can copy any example by clicking on the code block.
Basic Examples:
bunzip2 file.bz2
bunzip2 -k file.bz2
bunzip2 -v file1.bz2 file2.bz2
Advanced Examples:
bunzip2 -t archive.bz2