E-Mail:
Get our new Windows 7 eBook (PDF) for $7 with 70+ Tips. Download Now!

Quick Calendars

  • No Related Post

Quick Calendars

Sometimes when you’re working away, you find yourself with a need for a calendar. While most Linux distros have pretty and useful GUI calendar programs, they take a bit to fire up and render. Wouldn’t it be nice to have just a plain text calendar at your disposal anytime?

There is such a tool in Linux. Launched with the cal command, you can view a single calendar of the current month, multiple calendars, or calendars for the current year. You can even choose a Julian or Gregorian calendar. Here are some command line tweaks to the calendar command:

Option Action
-1 displays single month output (default)
-3 displays previous/current/next month output
-m displays Monday as first day of week
-j displays Julian dates
-y displays calendar for current year

So, for example, if you need a quick look at a 3-month calendar using Monday as the first day of the week, your command would be:

    cal -3m

The cal command is one of those hidden tweakable tools that makes Linux a truly different and useful OS.

What Do You Think?

 
35 queries / 0.323 seconds.