What are other cal command options?

0122

Here are some useful options for the cal command:

  1. Display a specific month and year:

    cal [month] [year]

    Example: cal 5 2023 shows May 2023.

  2. Show the entire year:

    cal [year]

    Example: cal 2023 displays the calendar for the entire year 2023.

  3. Display the previous, current, and next month:

    cal -3
  4. Highlight today's date:

    cal -h
  5. Display the week starting on Sunday:

    cal -s
  6. Show the Julian calendar:

    cal -j
  7. Display the calendar with the first day of the week as Monday:

    cal -m

You can always check the manual for more options:

man cal

These options can help you customize how you view the calendar in the terminal!

0 Comments

no data
Be the first to share your comment!