Miscellaneous
cal
Display a calendar in the terminal.
Synopsis
syntax
cal [OPTION]... [[MONTH] YEAR]
Examples
Show current month
cal
Show entire current year
cal -y
Show three months (prev, current, next)
cal -3
Show December 2025
cal 12 2025
Common options
| Flag | Description |
|---|---|
| -y | Display current year calendar |
| -3 | Show prev/current/next month |
| -m | Start week on Monday |
| -j | Show Julian day numbers |
About cal
The `cal` command display a calendar in the terminal. Utility commands cover a broad range of everyday tasks from date manipulation and arithmetic to terminal control and system documentation.
These tools fill in the gaps between major categories and are frequently used in shell scripts, cron jobs, and interactive sessions. The command accepts 4 commonly used flags shown above, though the full set of options is available in the man page (`man cal`).
The 4 examples on this page cover typical real-world usage patterns that you can copy and adapt for your own workflows.
Related commands
More Miscellaneous Commands
Other commands in the Miscellaneous category