Bash bzip2
- Compress files
Using the bzip2
Command
The bzip2
command is used to compress files using the Burrows-Wheeler block-sorting text compression algorithm, and Huffman coding.
Basic Usage
To compress a file, use bzip2 filename
:
Options
The bzip2
command supports various options to customize its behavior:
-d
- Decompress a file-k
- Keep the original file-v
- Verbose mode