How Do I Bzip2 a Directory in Linux?
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...
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.
Must Read
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.