cal
Quick Reference
Command Name:
cal
Category:
date time
Platform:
linux
Basic Usage:
Common Use Cases
- 1
Calendar display
Display calendar for current month or specified date range
- 2
Date planning
Plan events and appointments using calendar view
- 3
System administration
Check dates for system maintenance and scheduling
- 4
Script automation
Use calendar data in automated scripts and workflows
Syntax
cal [options] [[[day] month] year]
Options
| Option | Description |
|---|---|
| -1, --one | Display single month (default) |
| -3, --three | Display previous, current and next month |
| -s, --sunday | Display Sunday as the first day of the week |
| -m, --monday | Display Monday as the first day of the week |
| -j, --julian | Display Julian dates (day of year, 1-365) |
| -y, --year | Display a whole year calendar |
| -w, --week[=number] | Display week numbers (optional start day for week) |
| -b, --iso | Display ISO week numbers (equivalent to --week=1) |
| --color[=when] | Colorize the output (auto, always, or never) |
| -h, --help | Display help text and exit |
| -V, --version | Display version information and exit |
Examples
How to Use These Examples
The examples below show common ways to use the cal command. Try them in your terminal to see the results. You can copy any example by clicking on the code block.
Basic Examples:
cal
cal 7 2023
cal 2023
cal 4 7 2023