O'Reilly logo

A Practical Guide to Red Hat® Linux® 8 by Mark G. Sobell

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

cal

Displays a calendar

cal [[month] year]

The cal utility displays a calendar for a month or year.

Arguments

The arguments specify the month and year for which cal displays a calendar. The month is a decimal integer from 1 to 12, and the year is a decimal integer. Without any arguments cal displays a calendar for the current month. When you specify a single argument, it is taken to be the year.

Options

-j

Julian Displays a Julian calendar: a calendar that numbers the days consecutively from January 1 (1) through December 31 (365 or 366). See the second example.

-m

Monday Makes Monday the first day of the week. Without this option, Sunday is the first day of the week.

-y

year Displays a calendar for the current year.

Notes

Do not abbreviate ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required