Command Line Calendar

As you may have noticed, I’m a big fan of the command line. In fact the main reason I like Mac OSX over Windows is because it is BSD (Unix) based and has a proper terminal.

One cool thing you can do is get the calendar for the current month from the command line like so:

$ cal

     June 2012
Su Mo Tu We Th Fr Sa
                1  2
 3  4  5  6  7  8  9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30

You can also grab the calendar for the whole year like this:

$ cal 2012