Contents
How bzip2 file in Linux?
bzip2 command in Linux with Examples
- -z : This option forces compression. …
- -k: This option does compression but does not deletes the original file. …
- -d : This option is used for decompression of compressed files. …
- -t : This option does the integrity check of the file and does not decompresses the file.
How do I compress a folder in bzip2?
Compress a directory
This example creates a compressed etc. tar. bz2 file of the entire /etc/ directory. The tar flags are as follows, ‘c’ creates a new tar archive, ‘j‘ specifies that we want to compress with bzip2, ‘v’ provides verbose information, and ‘f’ specifies the file to create.