Saturday, March 9, 2013
10:45 PM

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.

Example:



 photo year_cal.png

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



 photo ncal.png


0 comments:

Post a Comment