Skip to content


January 5, 2010

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 Comments leave one →
  1. January 6, 2010 12:18 pm

    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)


    • michellejw permalink*
      January 6, 2010 1:42 pm

      Ooh, that’s a good point. I totally should have read the man file instead.

Leave a Reply

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

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

Google+ photo

You are commenting using your Google+ 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 )


Connecting to %s

%d bloggers like this: