Compression and Archives

bunzip2

Decompresses bzip2 files.

bunzip2 restores files compressed by bzip2, typically ending in .bz2.

Syntax
bunzip2 [options] file.bz2

Arguments explained

  • Options adjust output or behavior.
  • Arguments name the files, services, hosts, or values the command should work with.

Common examples

Decompress a file
bunzip2 data.log.bz2

Restores data.log.

Stream decompressed text
bunzip2 -c data.log.bz2 | less

Reads compressed text without writing an output file.

bunzip2 Command
FieldDetails
Commandbunzip2
CategoryCompression and Archives
Primary useDecompresses bzip2 files.
Syntaxbunzip2 [options] file.bz2