Name
cal
Synopsis
cal [-jy] [[month] year]
Description
Print a 12-month calendar (beginning with January) for the given year or a one-month calendar of the given month and year. month ranges from 1 to 12. year ranges from 1 to 9999. With no arguments, print a calendar for the current month.
Options
- -j
Display Julian dates (days numbered 1 to 365, starting from January 1).
- -m
Display Monday as the first day of the week.
- -y
Display entire year.
Examples
cal 12 1995
cal 1994 > year_file
Get Linux in a Nutshell, Third 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.