Easy Tutorial
❮ Linux Comm Ppp Off Linux Comm Eject ❯

Linux bzip2 Command

Linux Command Manual

The Linux bzip2 command is a compression program for .bz2 files.

bzip2 employs a new compression algorithm that provides better compression results than traditional LZ77/LZ78 algorithms. Without any parameters, bzip2 compresses files into .bz2 files and deletes the original files.

Syntax

bzip2 [-cdfhkLstvVz][--repetitive-best][--repetitive-fast][-compression level][files to compress]

Parameters:

Examples

Decompress .bz2 file

[[email protected] ~]# bzip2 -v temp.bz2 // Decompress file and display detailed processing information

Compress files

[[email protected] ~]# bzip2 -c a.c b.c c.c

Check file integrity

[[email protected] ~]# bzip2 -t temp.bz2

Linux Command Manual

❮ Linux Comm Ppp Off Linux Comm Eject ❯