O'Reilly logo

Linux® Desk Reference, Second Edition by Scott Hawkins

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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). ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required