Calendar (cal) on Linux command line - Comment Page: 1

Sometimes it feels that many of the excellent and convenient command-line tools is forgotten, when they are replaced by graphical tools. A good example is the cal program, which is a command-line calendar to Linux and UNIX. It displays a simple calendar in text format. Cal usage: Displays current month calendar on console: cal Output: October 2009 Su Mo Tu We Th Fr Sa 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Displays selected month and year calendar on console: cal 11 2012 Output: November 2012 Su Mo Tu We Th Fr Sa 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16...

7 comments on “Calendar (cal) on Linux command line - Comment Page: 1

    1. thanks for this, its a nice tool

      Reply
    2. cal -m -y does not working…..yyy…whats wrong with that

      Reply
      • Hi chinnu,

        Try following instead:

        
        cal -y 2012
        

        cal -m -y 2012 works with older versions of cal. I update this guide too.

        Reply
    3. i wnted to display only the last 6 months of the calender
      is there any command for that please help…??

      Reply
      • Late response, and this is sort of cheating, but it’s not horribly complicated to just run it in a loop in your shell like so:

        for m in 7 8 9 10 11 12; do cal $m 2013; done

        Reply
    4. i want to use only business days in a script to check for files availability on every month on BD-11

      plz help is any command for this ?

      Reply

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Close