cal command in Linux with example

  cal command in Linux with example 


About cal

The cal command displays a simple, formatted calendar in your terminal.
If no options are specified, cal display the current month in your terminal, with the current day highlighted.

1.   To Print Current month calendar

cal 

2.   Display previous/current/next month calendar using single command 

cal -3

     3. To Display particular month of the year calendar

cal -m 12

4.   Print number of days in year using -j option

cal -m 12

5. Display the calendar for December of this year.


cal -m 12
       6. To Display specified year calendar

cal 2010

No comments:

Post a Comment