Session and utilities
The bunzip2 command
Decompresses .bz2 files.
Syntax
bunzip2 [-k] archivo.bz2Most useful options
-kKeeps the .bz2Copy-ready examples
$ printf 'texto\n' > f.txt && bzip2 -k f.txt && bunzip2 -k f.txt.bz2 && lsDecompress .bz2You can try them in the browser terminal: it does not touch your computer.
Typical mistakes
- It is the same as bzip2 -d.
FAQ
Does it delete the original?
Yes, unless you use -k.
Learn to actually use it
The basic Linux course takes you from zero to console fluency with 24 self-grading lessons.
Start the free course