Display a calendar in UNIX

Contributor Icon Contributed by qmchenry Date Icon September 16, 2003  
Tag Icon Tagged: UNIX


To display the current month’s calendar, just use:

cal

to display three months starting with last month, try:

cal -3

To display the calendar for a whole year, specify the year on the command line like:

cal 2003

Previous recipe | Next recipe |
 
  • Michilimackinac
    an interesting calendar to look at is september 1752 when they fixed things to account for leap days...
blog comments powered by Disqus