Linux cal Guide - ryzendew/Linux-Tips-and-Tricks GitHub Wiki
Linux cal Guide
Complete beginner-friendly guide to cal on Linux, covering Arch Linux, CachyOS, and other distributions including calendar display, date viewing, and calendar navigation.
Table of Contents
cal Basics
Current Month
Basic usage:
# Show current month
cal
# Displays current month calendar
Specific Month
Month and year:
# Specific month
cal 12 2024
# Shows December 2024
Calendar Display
Three Months
Three month view:
# Three months
cal -3
# Shows previous, current, next month
Monday First
Week starts Monday:
# Monday first
cal -m
# -m = Monday (week starts Monday)
Date Ranges
Year Calendar
Full year:
# Full year
cal 2024
# Shows entire year
Julian Calendar
Julian dates:
# Julian calendar
cal -j
# -j = Julian (shows day of year)
Year View
All Months
Year view:
# All 12 months
cal -y
# -y = year (shows all months)
Current Year
This year:
# Current year
cal -y
# Shows all months of current year
Troubleshooting
cal Not Found
Check installation:
# cal is part of util-linux
# Usually pre-installed
# Check cal
which cal
Summary
This guide covered cal usage, calendar display, and date viewing for Arch Linux, CachyOS, and other distributions.
Next Steps
- date Guide - Date and time commands
- timedatectl Guide - Time management
- cal Documentation:
man cal
This guide covers Arch Linux, CachyOS, and other Linux distributions. For distribution-specific details, refer to your distribution's documentation.