System and processes

The cal command

Shows a calendar of the month or the year in the terminal.

Syntax

cal [mes] [año]

Most useful options

-yCalendar for the whole year
-3Previous, current and next month

Copy-ready examples

$ calThis month's calendar
$ cal 3 2027March 2027

You can try them in the browser terminal: it does not touch your computer.

Typical mistakes

  • cal uses the locale: the first day of the week can change with the language.

Related commands

FAQ

Can I see several months?

Yes: cal -3 shows the previous, current and next.

Learn to actually use it

The basic Linux course takes you from zero to console fluency with 24 self-grading lessons.

Start the free course