Linux common commands-102: cal

The cal command is used to display the current calendar, which is an abbreviation for calendar .

Syntax format: cal [parameter] [month] [year]

Common parameters:


 # 默认显示当月日历cal

 # 显示最近三个月的日历cal -3

 # 显示当年的日历cal -y

 # 显示特定年月的日历,如2011年11月cal 11 2021

This article is reprinted from
This site is for inclusion only, and the copyright belongs to the original author.