bzip2
ArchivesFundamentalsReference onlyCompress with bzip2 (smaller but slower than gzip)
Name: bzip2: a Burrows–Wheeler compressor (version 2)
This command is outside what the site lets you practise (mostly distribution-specific or rarely used tools). This page describes how to use it; try it on your own Linux system.
Description
bzip2 compresses with the Burrows–Wheeler transform into .bz2 files, usually smaller than gzip but slower.
Syntax
bzip2 [OPTION]... FILE...Common options
| -d / --decompress | Decompress |
| -k / --keep | Keep the original |
| -c / --stdout | Write to standard output |
| -9 / --best | Best compression (the default) |
| -t / --test | Check that the file is intact |
| -f / --force | Overwrite existing files |
| -v / --verbose | Show the ratio |
Examples
$ bzip2 -k data.csv
Produces data.csv.bz2
Explain