cal
Print a calendar. toybox
On Linux, macOS, FreeBSD, NetBSD, OpenBSD
Linux
Print a calendar. With one argument, prints all months of the specified year. With two arguments, prints calendar for month and year. With three arguments, highlights day within month and year.
cal [-h] [[[DAY] MONTH] YEAR]
-hDon't highlight todaySeveral platforms
Linux
Display a calendar with the current day highlighted.
Display a calendar for the current month
calIdentifyDisplay 3 months spanning the date
cal --threeIdentifyDisplay the whole calendar for the current year
cal --yearIdentifyDisplay the next twelve months
cal --twelveIdentifyUse Monday as the first day of the week
cal --mondayIdentifyDisplay a calendar for a specific year (4 digits)
cal yearIdentifyDisplay a calendar for a specific month and year
cal month yearIdentifymacOS
Print calendar information.
Display a calendar for the current month
calIdentifyDisplay previous, current, and next month
cal -3IdentifyDisplay a calendar for a specific month (1-12 or name)
cal -m monthIdentifyDisplay a calendar for the current year
cal -yIdentifyDisplay a calendar for a specific year (4 digits)
cal yearIdentifyDisplay a calendar for a specific month and year
cal month yearIdentifyDisplay date of Easter (Western Christian churches) in a given year
ncal -e yearFreeBSD
Display a calendar with the current day highlighted.
Display a calendar for the current month
calIdentifyDisplay a calendar for a specific year
cal yearIdentifyDisplay a calendar for a specific month and year
cal month yearIdentifyDisplay the whole calendar for the current year
cal -yIdentifyDon't highlight today and display 3 months spanning the date
cal -h -3 month yearIdentify-hDon't highlight today toyboxDisplay the 2 months Before and 3 After a specific month of the current year
cal -A 3 -B 2 monthIdentifyDisplay julian days (starting from one, numbered from January 1)
cal -jIdentifyNetBSD
Display a calendar.
Display a calendar for the current month
calIdentifyDisplay a calendar for a specific year
cal yearIdentifyDisplay a calendar for a specific month and year
cal month yearIdentifyDisplay the whole calendar for the current year using julian days (one-based, numbered from January 1)
cal -y -jIdentifyhighlight today and display 3 months spanning the date
cal -h -3 month yearIdentify-hDon't highlight today toyboxDisplay the 2 months Before and 3 After a specific month of the current year
cal -A 3 -B 2 monthIdentifyDisplay a specific number of months before and after (Context) the specified month
cal -C months monthIdentifySpecify the starting day of the week (0: Sunday, 1: Monday, ..., 6: Saturday)
cal -d 0..6IdentifyOpenBSD
Display a calendar with the current day highlighted.
Display a calendar for the current month
calIdentifyDisplay a calendar for a specific year
cal yearIdentifyDisplay a calendar for a specific month and year
cal month yearIdentifyDisplay a calendar for the current year
cal -yIdentifyDisplay julian days (starting from one, numbered from January 1)
cal -jIdentifyUse monday as week start instead of Sunday
cal -mIdentifyNumber week numbers (incompatible with -j)
cal -wIdentify