cal

Print a calendar (POSIX, toybox)

Syntax:

cal [[[day] month] year]

Runs on:

QNX OS

Options:

-h
Don't highlight today.
day
Display the specified day.
month
Display the specified month.
year
Display the specified year.

Description:

The cal utility displays a simple calendar. It can take a total of three arguments, as seen in the following table:

Arguments Output Example
year Prints all the months of the specified year cal 2023
month year Prints the calendar for the month and year cal 12 2023
day month year Highlights the day within the month and year cal 25 12 2023

This utility is provided as part of the toybox package. For information on how to enable it, see toybox.

Contributing author:

Rob Landley and the toybox project (see https://landley.net/toybox/).

Page updated: