cal
Quick Reference
Command Name:
cal
Category:
date time
Platform:
linux
Basic Usage:
Common Use Cases
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:
# Display current month calendar cal
Advanced Examples:
# Display calendar for 3 months (current, previous, next) cal -3