How to open .BZ2 files on Linux

To open .BZ2 files on Linux, open a terminal in the folder containing the file.

Step-by-step instructions

  1. Open a terminal in the folder containing the file.
  2. Run: bzip2 -d filename.bz2 (this decompresses it and typically removes the .bz2 extension).

Common issues

It extracts to a single file (not a folder)

.bz2 usually compresses one file, so extraction often produces one output file rather than a multi-file archive layout.

  1. After extracting, check the output filename/extension (it may be a .tar that still needs unpacking).
  2. If you see a .tar file, open/extract the .tar with your archive tool to get the multiple files inside.

The extractor says the file is not a valid bzip2 file

The download may be incomplete/corrupted, or the file may have the wrong extension.

  1. Re-download the file and compare size/checksums if the publisher provides them.
  2. Try another tool that supports BZIP2 (for example, 7-Zip on Windows or the bzip2 tool on Linux) to rule out a tool-specific error.

No app on my system recognizes .bz2

File associations can be missing even when the format is known (on Linux desktops, associations commonly rely on the shared MIME-info database).

  1. Install or use a known .bz2-capable extractor (7-Zip on Windows; bzip2 on Linux).
  2. On Linux, ensure your desktop environment’s MIME database is up to date so application/x-bzip2 is correctly recognized.

Security note

A .bz2 file is compressed data; decompression itself can still be risky if the content is untrusted (for example, it may expand to an unexpectedly large file). Extract to a safe location with adequate disk space.

Back to .BZ2 extension page