[ Next Article | Previous Article | Book Contents | Library Home | Legal | Search ]
System User's Guide: Operating System and Devices

Displaying a Calendar (cal Command)

The cal command writes to standard output a calendar for the specified year or month.

The Month parameter names the month for which you want the calendar. It can be a number from 1 through 12 for January through December, respectively. If no Month is specified, the cal command defaults to the current month.

The Year parameter names the year for which you want the calendar. Because the cal command can display a calendar for any year from 1 through 9999, enter the full year rather than just the last two digits. If no Year is specified, the cal command defaults to the present year.

For example, to display a calendar for February 1984 at your workstation, enter:

cal 2 1984

For example, to print a calendar for 1984, enter:

cal 1984 | qprt

For example, to display a calendar for the year 84 A.D., enter:

cal 84

See the cal command in the AIX Version 4.3 Commands Reference for the exact syntax.


[ Next Article | Previous Article | Book Contents | Library Home | Legal | Search ]