6

Linux常用命令-102:cal

 1 year ago
source link: https://xugaoxiang.com/2022/09/22/linux-cmds-102-cal/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

cal 命令用来显示当前日历,是 calendar 的缩写。

语法格式:cal [参数] [月份] [年份]

常用参数:

9d0360c52345ac86.png
# 默认显示当月日历
cal
e65870e1dadf236c.png
# 显示最近三个月的日历
cal -3
78079be32e43ae03.png
# 显示当年的日历
cal -y
17edcbd89a9c3051.png
# 显示特定年月的日历,如2011年11月
cal 11 2021
fa0770bd754ca044.png

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK