Linux bzip2

Education is not limited to just classrooms. It can be gained anytime, anywhere... - Ravi Ranjan (M.Tech-NIT)

Linux bzip2

The command bzip2 is also used to compress a file like gzip command but takes a little more time but compresses better. Its extension will be (.bz2).

Syntax:

bzip2 <fileName> 

Example:

  1. bzip2 acb  

Linux bzip and bunzip1

Look at the above snapshot, bzip2 command has compressed file 'acb' with extension (.bz2).


bunzip2

The command bunzip2 decompress a file like gunzip command.

Syntax:

  1. bunzip2 <fileName>  

Example:

bunzip2 acb.bz2 

Linux bzip and bunzip2

Look at the above snapshot, bunzip2 command has decompressed file 'acb.bz2'.