Session and utilities
The bzcat command
Shows the contents of a .bz2 file without decompressing it to disk.
Syntax
bzcat archivo.bz2Copy-ready examples
$ printf 'hola\n' > f.txt && bzip2 -k f.txt && bzcat f.txt.bz2Read a .bz2You can try them in the browser terminal: it does not touch your computer.
Typical mistakes
- It only works with .bz2.
FAQ
And for .xz?
Use xzcat.
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