The cal command displays a formatted calendar in the terminal. If no options are specified, cal displays the current month, with the current day highlighted.
Specify a year to display. For example, -y 1970 displays the entire calendar of the year 1970.
[root@academy /]# cal -y 19701970JanuaryFebruaryMarchSuMoTuWeThFrSaSuMoTuWeThFrSaSuMoTuWeThFrSa123123456712345674567891089101112131489101112131411121314151617151617181920211516171819202118192021222324222324252627282223242526272825262728293031293031AprilMayJuneSuMoTuWeThFrSaSuMoTuWeThFrSaSuMoTuWeThFrSa12341212345656789101134567897891011121312131415161718101112131415161415161718192019202122232425171819202122232122232425262726272829302425262728293028293031JulyAugustSeptemberSuMoTuWeThFrSaSuMoTuWeThFrSaSuMoTuWeThFrSa1234112345567891011234567867891011121213141516171891011121314151314151617181919202122232425161718192021222021222324252626272829303123242526272829272829303031OctoberNovemberDecemberSuMoTuWeThFrSaSuMoTuWeThFrSaSuMoTuWeThFrSa1231234567123454567891089101112131467891011121112131415161715161718192021131415161718191819202122232422232425262728202122232425262526272829303129302728293031[root@academy /]#
Display last month, this month, and next month.
[root@academy /]# cal -3November2023December2023January2024SuMoTuWeThFrSaSuMoTuWeThFrSaSuMoTuWeThFrSa1234121234565678910113456789789101112131213141516171810111213141516141516171819201920212223242517181920212223212223242526272627282930242526272829302829303131[root@academy /]#