Commands

cal

[-jy] [month [year]]

Display a calendar, by default the current month.

Example: To display a calendar of the current month, type

cal

Example: To display a calendar for the current year (this example valid until 1/1/2000), type

cal 1999

Example: To display a calendar for the month of August in the year 3053, type

cal 8 3053

When first using cal, everyone makes the same mistake: 98, 99, 00 refer to years in the first century A.D., not recent times. For information on more recent years, be sure to include the two-digit century. The options are as follows:

-j Display Julian calendar dates (days one-based, numbered from January 1). ...

Get Linux® Desk Reference, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.