CmdID

CmdID / Commands

cal

Print a calendar. toybox

On Linux, macOS, FreeBSD, NetBSD, OpenBSD

Opens CmdID with your command. It is read in your browser and sent nowhere.

Linux

from the toybox, 0BSD

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 today

Several platforms

from tldr-pages, CC BY 4.0

Display a calendar with the current day highlighted.

Display a calendar for the current month

Display a calendar for a specific year

cal yearIdentify

Display a calendar for a specific month and year

cal month yearIdentify

Display a calendar with the current day highlighted.

Display a calendar for the current month

Display 3 months spanning the date

cal --threeIdentify

Display the whole calendar for the current year

cal --yearIdentify

Display the next twelve months

cal --twelveIdentify

Use Monday as the first day of the week

cal --mondayIdentify

Display a calendar for a specific year (4 digits)

cal yearIdentify

Display a calendar for a specific month and year

cal month yearIdentify

Print calendar information.

Display a calendar for the current month

Display previous, current, and next month

cal -3Identify

Display a calendar for a specific month (1-12 or name)

cal -m monthIdentify

Display a calendar for the current year

cal -yIdentify

Display a calendar for a specific year (4 digits)

cal yearIdentify

Display a calendar for a specific month and year

cal month yearIdentify

Display date of Easter (Western Christian churches) in a given year

ncal -e year

FreeBSD

from tldr-pages, CC BY 4.0

Display a calendar with the current day highlighted.

Display a calendar for the current month

Display a calendar for a specific year

cal yearIdentify

Display a calendar for a specific month and year

cal month yearIdentify

Display the whole calendar for the current year

cal -yIdentify

Don't highlight today and display 3 months spanning the date

cal -h -3 month yearIdentify
-hDon't highlight today toybox

Display the 2 months Before and 3 After a specific month of the current year

cal -A 3 -B 2 monthIdentify

Display julian days (starting from one, numbered from January 1)

cal -jIdentify

NetBSD

from tldr-pages, CC BY 4.0

Display a calendar.

Display a calendar for the current month

Display a calendar for a specific year

cal yearIdentify

Display a calendar for a specific month and year

cal month yearIdentify

Display the whole calendar for the current year using julian days (one-based, numbered from January 1)

cal -y -jIdentify

highlight today and display 3 months spanning the date

cal -h -3 month yearIdentify
-hDon't highlight today toybox

Display the 2 months Before and 3 After a specific month of the current year

cal -A 3 -B 2 monthIdentify

Display a specific number of months before and after (Context) the specified month

cal -C months monthIdentify

Specify the starting day of the week (0: Sunday, 1: Monday, ..., 6: Saturday)

cal -d 0..6Identify

OpenBSD

from tldr-pages, CC BY 4.0

Display a calendar with the current day highlighted.

Display a calendar for the current month

Display a calendar for a specific year

cal yearIdentify

Display a calendar for a specific month and year

cal month yearIdentify

Display a calendar for the current year

cal -yIdentify

Display julian days (starting from one, numbered from January 1)

cal -jIdentify

Use monday as week start instead of Sunday

cal -mIdentify

Number week numbers (incompatible with -j)

cal -wIdentify