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 filenamePractical example
bzip2 largefile.txtRelated Compression Commands
gunzipDecompresses a .gz file back to its original form.
bunzip2Decompresses a .bz2 file back to its original form.
gzipCompresses a single file using the gzip algorithm (replaces original with .gz).
zipCreates a compressed ZIP archive of files and directories.
tarArchives multiple files into a single tarball. Use -czf to compress with gzip.
unzipExtracts files from a ZIP archive.