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 :

 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

 photo cal_2.png

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


 photo year_cal.png

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

 photo ncal.png

No comments:

Post a Comment

Follow by Email