bzippin’

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!

SO EASY:

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:

bzip2 superfile.foo

Unzipping is easy too:

bunzip2 superfile.foo.bz2 or bzip2 -d superfile.foo.bz2.

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 to Ian Witham Cancel reply

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