snippetbashTip
cal — Print calendar information. More information: <https://keith.github.io/xcode-man-pages/cal.1.html>.
Viewed 0 times
commandcalendarcalcliprintinformationmore
macos
Problem
How to use the
cal command: Print calendar information. More information: <https://keith.github.io/xcode-man-pages/cal.1.html>.Solution
cal — Print calendar information. More information: <https://keith.github.io/xcode-man-pages/cal.1.html>.Display a calendar for the current month:
calDisplay previous, current, and next month:
cal -3Display a calendar for a specific month (1-12 or name):
cal -m {{month}}Display a calendar for the current year:
cal -yDisplay a calendar for a specific year (4 digits):
cal {{year}}Display a calendar for a specific month and year:
cal {{month}} {{year}}Display date of Easter (Western Christian churches) in a given year:
ncal -e {{year}}Code Snippets
Display a calendar for the current month
calDisplay previous, current, and next month
cal -3Display a calendar for a specific month (1-12 or name)
cal -m {{month}}Display a calendar for the current year
cal -yDisplay a calendar for a specific year (4 digits)
cal {{year}}Context
tldr-pages: osx/cal
Revisions (0)
No revisions yet.