cal command

(print calendar)

The cal command displays a simple calendar.

If no options are given it displays the current month, with weeks starting on Sunday.

>cal
       July
 S  M  T  W  T  F  S  
             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
>

Line 1 shows the cal command
Lines 2-8 are the output of the cal command showing us the current months calendar
Line 9 is the prompt again

Some options include...

cal -3 shows the output format as prev/current/next
cal -m shows the weeks starting on Monday
cal -y shows the current year

Back to command index