Displaying calendar on linux terminal

We can use the cal command in the linux terminal to display the calendar of the month in the terminal itself.

Example :

$ cal

 photo cal.png

We can see the calendar of the month with the current date highlighted.

We can avoid highlighting of the current day using the the option -h $ cal -h

 photo cal_2.png

We can also display the calendar of any year we want by passing the option -y followed by the year.


$ cal -y 1980

 photo year_cal.png

We make the calendar weeks to appear in tow using the command ncal

$ ncal

 photo ncal.png

Tags: ,
Copyright 2017. All rights reserved.

Posted March 9, 2013 by Tux Think in category "Linux