The Linux Newbie Guide  ⇒    Fundamentals     Advanced     Supplement   Command Index   ENG⇒中
All rights reserved, please indicate the source when citing
 

bunzip2 decompresses bz2 files

:The Bunzip2 command is used in Unix-like operating systems to decompress files compressed with the bzip2 format (.bz2). Its functionality is similar to using bzip2 -d. with a higher compression ratio compared to formats like gzip.

Commonly used options include "-c" for output to standard output, and "-k" or "--keep" to preserve the original compressed file after decompression. By default, bunzip2 deletes the input file after successful decompression.

Example:
$ bunzip2 * ← Decompresses all '.bz2' files in the current working directory

For more examples of using bunzip2, refer to the provided link.