cal command is used in Linux to display the calender for a specific month or for a whole year in the terminal.
Syntax of cal command
cal [Month[Year]]
Installing cal command
cal
sudo apt install ncal
cal command
cal
cal command for displaying current year
cal -y
cal command for displaying a particular month of the current year
cal -m August
cal command for displaying any particular month and year
cal 11 2022
cal command for displaying whole year calender
cal 2023
cal command for displaying previous month, current month and next month
cal -3
display the current month in Julian’s calendar
cal -j
Display current year in Julian Calender
cal -jy