How to Display Calendar in Linux Terminal

In this article I am going to show you how to print calendar in Linux terminal. In the Linux terminal, we can get the calendar using the cal command.

Open the Linux terminal and type cal, and you will get the calendar of the current month.

cal

If you use -3 option it will display the calendar of the previous and next month too.

cal -3

How to Display Calendar in Linux Terminal

Display a calendar for the whole year

The -y option of the cal command will print the calendar for the whole year.

cal -y

Display a calendar for the whole year

To get the calendar of a specific year, provide the year with the -y option. For example, following command will display the calendar of the year 2000.

cal -y 2000

Linux Print calendar of a specific year in terminal

So that is how we can print the calendar in Linux terminal using the cal command, I Hope you enjoyed.