Linux command cal, calendar
Hello colleagues.
In today's article, we will look at such a command in Linux like cal. The cal command is designed to allow you to view the yearly calendar or even narrow it down to a monthly calendar. cal is a great tool that displays a calendar for a specific year or month depending on the passed parameters.
Article content:
- Cal syntax.
- Examples.
1. Cal syntax.
cal [-mjy] [[month] year]
- -m - displays the current month.
- -j - displays the number of the current day
- -y - will display all months of the current year.
2. Examples.
2.1. Show the current month of the current year.
$. cal
2.2. Show all months of the current year.
$. cal -y
2.3. Show the last month of calendar in the current year.
$. cal 12 2022
Thank you all, I hope my article was of some help to you.