How do I compress a folder in bzip2?
Answer
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.
Answer
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.