So, here’s another one of my posts where I describe how to do a painfully easy thing, simply because it’s the first time I’ve ever done it. Today it’s How to Compress a File Using bzip2!


bzip2 [-options] [filename]

Options are described here. But if you are not worried about options and want to use the default, it’s this easy:


Unzipping is easy too:

bunzip2 or bzip2 -d

2 thoughts on “bzippin’

  1. Bonus point 1: Python’s standard library has the bz2 module for doing bzip2-like operations.
    Bonus point 2: Reading man files have more geek cred than reading online help (“man bzip2” at the bash prompt)


Leave a Reply

Your email address will not be published. Required fields are marked *