Linux Commands Reference - Complete Linux Command Guide

Comprehensive Linux command reference with 150+ commands. Search, filter by category, and view detailed usage examples.

Share
Back to commands

cal

Display calendar

Syntax

cal [OPTION]... [[MONTH] YEAR]

Common Options

-3Show previous/current/next month
-yShow whole year calendar
-mWeek starts on Monday
-sWeek starts on Sunday (default)
-jShow Julian day of year
-A NShow N months after
-B NShow N months before
-hNo highlight on today

Common Examples

cal

Show current month calendar

cal 2025

Show 2025 calendar

cal -3

Show 3-month calendar

cal -y

Show whole year

cal -m

Week starts Monday

cal 6 2025

Show June 2025

cal -j

Show Julian dates

cal -A 2 -B 1

Show 1 before and 2 after

Related Commands

Related Tools

More Code & Dev Tools