the cal
command is used to show the calendar
cal [OPTION] [MONTH] [YEAR]
this command will show the calendar of July 2018:
cal 08 2018
this command will show the whole calendar of the year 2018:
cal 2018
Flag | Description |
---|---|
-1 |
Displays the calendar of one month (Default without using the flag) |
-3 |
Displays the calendar of the previous month, the current month and the next month |
-j |
Displays the calendar in Julian format, which uses Day-of-Year numbering |
-y |
Displays the calendar of the whole year |