LinuxCommandLibrary

cal

TLDR

Display calendar for the current month

$ cal
copy
Display 3 months spanning the current date
$ cal -3
copy
Display the whole year
$ cal -y
copy
Display the next twelve months
$ cal -Y
copy
Use Monday as the first day of the week
$ cal -m
copy
Display a calendar for a specific year
$ cal [year]
copy
Display a calendar for a specific month and year
$ cal [month] [year]
copy

SYNOPSIS

cal [options] [[month] year]

DESCRIPTION

cal displays a calendar in the terminal with the current day highlighted. It can show single months, multiple months, or entire years.
By default, Sunday is shown as the first day of the week. Use -m to start weeks on Monday.

PARAMETERS

-3, --three

Display previous, current, and next month
-y, --year
Display calendar for the current year
-Y, --twelve
Display the next twelve months
-m, --monday
Use Monday as the first day of the week
-s, --sunday
Use Sunday as the first day of the week (default)
-j, --julian
Display Julian days (day of year)
-n num
Display num months starting from current

SEE ALSO

ncal(1), date(1), calcurse(1)

Copied to clipboard