[ Previous | Next | Table of Contents | Index | 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, type 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, type:

cal 2 1984

Press Enter.

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

cal 1984 | qprt

Press Enter.

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

cal 84

Press Enter.

See the cal command in the AIX 5L Version 5.1 Commands Reference for the exact syntax.


[ Previous | Next | Table of Contents | Index | Library Home | Legal | Search ]