tldr/pages/linux/cal.md
Nicolas Zachow 331400f964
cal: Add use case
For clarity I changed "-m" to "--monday".
Also, I've removed the "cal -y" for simplicity.
You could just user "cal {year}" to get the same information.
2017-11-19 00:59:51 -03:00

394 B

cal

Prints calendar information, with the current day highlighted.

  • Display a calendar for the current month:

cal

  • Display previous, current and next month:

cal --three

  • Use monday as the first day of the week:

cal --monday

  • Display a calendar for a specific year (4 digits):

cal {{year}}

  • Display a calendar for a specific month and year:

cal {{month}} {{year}}