Name

cal

Synopsis

cal [options] [[[day] month] year]

Print a 12-month calendar (beginning with January) for the given year, or a one-month calendar of the given month and year. With a day specified as well, print the calendar for that month and year, with the day highlighted. month ranges from 1 to 12. year ranges from 1 to 9999. With no arguments, print a calendar for the current month.

Options

−3

Display the previous, current and next month.

-j

Display Julian dates (days numbered 1 to 365, starting from January 1).

-m

Display Monday as the first day of the week (the default is Sunday).

-y

Display entire year.

Examples

cal 12 2006
cal 2006 > year_file

Get Linux in a Nutshell, 6th 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.