Back to the command reference

bunzip2

ArchivesFundamentalsReference only

Decompress .bz2 files

Name: bunzip2 = bzip2 unzip

This command is outside what the site lets you practise (mostly distribution-specific or rarely used tools). This page describes how to use it; try it on your own Linux system.

Description

bunzip2 decompresses .bz2 files, like bzip2 -d.

Syntax

bunzip2 [OPTION]... FILE...

Common options

-k / --keepKeep the compressed file
-c / --stdoutDecompress to standard output

Examples

  • $ bunzip2 data.csv.bz2

    Restore the file

    Explain

Related