Published on January 4, 2017 by ProgrammingKnowledge

cal, ncal — displays a calendar and the date of Easter

cal [-3hjy] [-A number] [-B number] [[month] year]
cal [-3hj] [-A number] [-B number] -m month [year]
ncal [-3bhjJpwySM] [-A number] [-B number] [-s country_code] [[month] year]
ncal [-3bhJeoSM] [-A number] [-B number] [year]
ncal [-CN] [-H yyyy-mm-dd] [-d yyyy-mm]

The cal utility displays a simple calendar in traditional format and ncal offers an alternative layout, more options and the date of Easter. The new format is a little cramped but it makes a year fit on a 25×80 terminal. If arguments are not specified, the current month is displayed.

Leave a Reply

1 Comment on "Linux Command Line Tutorial For Beginners 31 – cal command"

Notify of

Rishi Sharma
Rishi Sharma
1 year 5 months ago

you are sooo cool