Compress Files using bzip

Folder Compression

The “.bz2” file extension is commonly used by the compression program bzip2, which is the counter part of bunzip2. You can use the “-r” option to recursively compress all the files under the specified directory. For example:

Keeping the original uncompressed Files after compression

In order to keep the uncompressed version, you can use the -c option, which writes to standard out, and then re-direct ( “>” ) standard out to a file.

> bzip2 –help

About Gugulethu Ncube

IT enthusiast getting things done.