Display A Calendar in the Terminal With This Command

For those command line lovers, you can easily display a calendar in the terminal with this command:


This will work in both Linux and Mac OS X.

The default “cal” command will show the calendar for the current month. If you want it to show other month, say January 2012, just type:

cal 01 2012


If you want it to show a yearly calendar instead, use the command:

cal -y 2013