GNU/Linux Command – BZIP2

bzip2 — A Block-sorting file (de)compressor.

Summary:

bzip2 compresses files using the Burrows-Wheeler block sorting text compression algorithm, and Huffman coding. Compression is generally considerably better than the conventional compressors, and approaches the performance of the PPM family of statistical compressors.

Example:
$ bzip2 myfile -- Compress and save it in myfile.bz2. Anddelete the input file. $ bzip2 -k myfile -- Same as above. But it won't delete the input file. $ bzip2 -d myfile.bz2 -- Decompress and save it in myfile. And delete the input file. $ bzip2 -kd myfile.bz2 -- Same as above. But it won't delete the input file. $ bzip2 -fd myfile.bz2 -- Force overwrite of output files (by default it will not overwrite existing files). $ bzip2 -t myfile.bz2 -- Check the integrity of the compressed file. $ bzip2 -v myfile -- Show the detailed operation status info. $ bzip2 -q myfile -- Suppress non-essential warning messages.  $ tar -cjvf myfile.tar.bz2 mydir -- BZip2 thru TAR command.  $ tar -xjvf myfile.tar.bz2 -- BUnZip2 thru TAR command.
Read: man bzip2

Advertisements
Tagged with: ,
Posted in Uncategorized

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: