Archiving
bzip2
File compression with bzip2
Ubuntu
CentOS
Debian
SUSE
Fedora
RHEL
Arch
Alpine
macOS
Verified: 2026-03-04
Syntax
$bzip2 [options] [file]
Optionen
-d
-k
-1
-9
-c
Examples
$bzip2 file.txt
$bzip2 -d file.txt.bz2
$bzip2 -k file.txt
$bzip2 -9 file.txt
Typical use cases
?
Standard usage
bzip2 --help
Note
Compresses files using the bzip2 algorithm (better compression than gzip).
Export