GO KALI FREE
Compression Commands

bzip2 Linux Command

Compresses files using the bzip2 algorithm (better compression than gzip, slower).

What does bzip2 do?

Compresses files using the bzip2 algorithm (better compression than gzip, slower).

Syntax

bzip2 filename

Practical example

bzip2 largefile.txt

Related Compression Commands

gunzip

Decompresses a .gz file back to its original form.

bunzip2

Decompresses a .bz2 file back to its original form.

gzip

Compresses a single file using the gzip algorithm (replaces original with .gz).

zip

Creates a compressed ZIP archive of files and directories.

tar

Archives multiple files into a single tarball. Use -czf to compress with gzip.

unzip

Extracts files from a ZIP archive.