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:

Example

 # 默认显示当月日历cal

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

 # 显示当年的日历cal -y

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

This article is reprinted from https://xugaoxiang.com/2022/09/22/linux-cmds-102-cal/
This site is for inclusion only, and the copyright belongs to the original author.